Workshop on Raspberry Pi 3 Indraneel Mukhopadhyay Skill Level: Beginner Dates: 11th January, 2017 Time: 2:00pm to 5:30pm
Raspberry Pi 3 Model B
The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. Little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python. It’s capable of doing everything a desktop computer to do, from browsing the internet and playing high- definition video, to making spreadsheets, word- processing, and playing games. What is Raspberry Pi
The Raspberry Pi has the ability to interact with the outside world, and has been used in a wide array of digital maker projects, from music machines and parent detectors to weather stations etc Raspberry Pi hails from the United Kingdom. Inventor Eben Upton and his colleagues at the University of Cambridge’s Computer Laboratory. Raspberry Pi was designed to be a cheap, hackable computer for improving tinkering skills. The first shipment of Pis became available in April 2012. What is Raspberry Pi
Raspberry Pi Family
Components of a Raspberry Pi3 Board Broadcom 64 bit Quad Core 1.2 GHz 1 Gb RAM RJ 45 Ethernet port 4 USB slots 40 GPIO pins HDMI connecting port 3.5 mm Headphone port Bluetooth and Wi-Fi in-built LCD screen can be attached Raspberry Camera can be attached Micro USB Powering port Components of a Raspberry Pi3 Board
Purpose of Raspberry Pi Raspberry can be used for domestic DIY projects as well as for Industrial application. Being an independent platform easy to integrate with other available devices like PC. Small and affordable for student projects. Purpose of Raspberry Pi
Lets Start !! Components needed for Starting HDMI Supported Screen USB Keyboard USB Mouse OR Laptop Ethernet Cable Micro USB Power Adaptor (5 Volt 2Amp Rating) Internet Connection Lets Start !!
How to load OS into Memory Card Loading OS into memory card Memory card will be used as Hard disk for Booting Operating System. We Use Win 32 Disk imager to burn Raspbian OS into the SD-Card. How to load OS into Memory Card ∏
Software Required to work with Raspberry Pi3 The preferred Operating System is Windows with Network Adapter i.e. RJ45 port The software's that are required to be installed are as follows: Putty (http://www.putty.org/) VNC for Windows (https://nettest.realvnc.com/download/) Win32 Disk Imager (https://sourceforge.net/projects/win32diskimager/) Raspbian Operating System (https://www.raspberrypi.org/downloads/raspbian/) Software Required to work with Raspberry Pi3
RaspberryPi Login & Password Plug the booted SD-Card into the Raspberry-Pi SD- Card slot and attach the Pi with a HDMI supported screen. Login and Password is needed For Raspbian OS Login : pi Password : raspberry RaspberryPi Login & Password
When you don’t have any screen available with you No keyboard or screen available for your Raspberry Pi, but you have a laptop? When a HDMI monitor is not available in those circumstances it can be very useful to remote connect using a nearby network and a laptop. So how can we make use of a laptop screen and keyboard when there is no network? There is also a option of using a (console) TTL-serial cable, but it provides rather slow access. The serial connection won’t support X11, and you won’t be able use VNC or shared folders if you have them setup. When you don’t have any screen available with you
Software needed to configure Pi to be used from Laptop Putty (Using SSH connection) Putty is used to redirect the IP of Raspberry to the laptop. Putty is used to redirect the keyboard and mouse of laptop to control the Raspberry mouse pointer. VNC Client (Real VNC, Ultra VNC) VNC client is used to project the Raspberry desktop in the laptop screen . Software needed to configure Pi to be used from Laptop
Graphical Representa-tion
Network Connection Configuration Check Required (Check Once) (1 of 4) Click on Ethernet tab
Network Connection Configuration Check Required (Check Once) (2 of 4) Click on Change Adapter Options
Network Connection Configuration Check Required (Check Once) (3 of 4) Click on Ethernet 2 Properties Then click on TCP/IPv4 properties.
Network Connection Configuration Check Required (Check Once) (4 of 4) The Settings page should look like this.
Raspberry Pi Settings IMPORTANT Setting the Raspberry Pi’s IP address Ensure the Raspberry Pi is powered off, and remove the SD-Card. Insert the SD-Card into a card reader and plug it into your laptop. Find the drive and you should find several files on the Card (note it a lot smaller than you’d expect since it is only the boot section of the Card (the rest is hidden)). Make a copy of cmdline.txt and rename it to cmdline.normal Raspberry Pi Settings IMPORTANT
Raspberry Pi Settings IMPORTANT Setting the Raspberry Pi’s IP address Edit cmdline.txt and add the IP address at the end (be sure you don’t add any extra lines). For network settings where the IP address is obtained automatically, use an address in the range 169.254.X.X (169.254.0.0 – 169.254.255.255): Ensure you take note of this IP address (you will need it every time you want to directly connect to the Raspberry Pi). Raspberry Pi Settings IMPORTANT
Raspberry Pi Settings IMPORTANT In case you are not sure of the IP address – Please follow the steps: 1. Please connect the Raspberry Pi with the Laptop via the RJ45 2. In command prompt type: ipconfig 3. Note down Ethernet IPv4 address 4. To the Raspberry Pi assign an IP address in the same class as on our computer. For example is your computer IP = 169.254.123.21 then give your Raspberry Pi IP address = 169.254.123.23 Raspberry Pi Settings IMPORTANT
How to Configure Putty How to configure Putty Install and run a X-Windows server on your computer Ensure your SSH program (Putty) has X-11 enabled. Enter the Raspberry Pi’s IP Address How to Configure Putty
How to Configure Putty (Slide 1 of 2)
How to Configure Putty (Slide 2 of 2)
The first screen of Raspberry Pi after login.
When the Raspberry boots for the first time – use raspi-config command to configure it
How to setup the Pi internet connectivity for the First Time. To get internet for the first time. Attach your Mobile in USB Tethering Mode and get connected to the internet for the first time. After the internet connection has been established download the following software. Install VNC Server in the raspberry pi terminal sudo apt-get install tightvncserver After the software has been installed you do not require the USB tethering as Raspberry Pi3 comes with Wi-Fi support and you are good to go. How to setup the Pi internet connectivity for the First Time. Video Tutorial
Set up VNC Server in Raspberry To start VNC Server in-order to connect Raspberry Pi to Laptop using RJ45 cable. Start VNC Server in the raspberry pi terminal vncserver :1 Output Response will be New ‘X’ Desktop is raspberrypi :1 Set up VNC Server in Raspberry
Set up VNC Server in Raspberry
Use the IP Address of the Raspberry you have set up previously to load the VNC Client. E.g. 169.254.42.203 :1 Loading the Desktop of Raspberry Pi using VNC Client in Windows (Step 1 of 2)
VNC Client asks for Authentication code please give the authentication code you gave while installing the VNC Client. Loading the Desktop of Raspberry Pi using VNC Client in Windows (Step 2 of 2)
Desktop Screen Loaded You are GO ! The Raspberry Pi is fully configured and is ready to be explored.
Questions ? End of Session 1