Introduction to Raspberry Pi
(Part 1)
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
• -There are 40 pin in GPIO Header in Raspberry Pi
• -These pins allow us to provide an interface between the Pi and the outside
world
• -UART=Serial Communication
• -GND=Ground
• -SPI=Serial Peripheral Interface
• -I2C=Inter-integrated Circuit
• -GPIO=General Purpose Input Output
• -Reserved=Do not Connect(Pins cant
• be Used)
Raspberry Pi GPIO PINS
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
What is a Raspberry Pi?
• Credit-Card sized computer
• Affordable
• Consumes very low power
• Has a Broadcom BCM2837 system on a chip (SoC)
• 1 GB RAM
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Operating System
• Raspbian – (We will be using this)
• Fedora
• Debian
• Windows 10 IOT
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Raspbian Stretch OS
• Official Supported Operating System for the Raspberry Pi
• Supports multiple programming such as Python, Scratch, Java,
Mathematica and more
• By default, Python is the language that is best used with Raspbian on
the Raspberry Pi
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Applications
• Iridis-Pi : Supercomputer using Raspberry Pi ( 64 Processors, 1TB of
Memory)
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Applications
• Raspberry Pi Wall Mounted Google Calendar(On Instructables)
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Applications
• PiPhone : Using Raspberry Pi
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Handle With Care
• The Raspberry Pi should be handled properly and should handle by
holding the edges of the board and not the components of the board
• Rough Handling may cause the soldiered pins to get damaged and
result in short circuit.
• Raspberry Pi GPIO’s are not 5V tolerant so please double check the
connections before Powering it Up.
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Raspberry Pi - Setup
• Raspberry Pi
• Power Source :5V2A DC Micro USB Adapter
• SD Card : Minimum 4GB(8GB recommended)
• Internet : WiFi/Ethernet
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Lets Start With Booting Up the Raspberry Pi
• 1) Go to [Link]
• - Go to Downloads
• - Click Raspbian and download the zip file
• 2) Insert Micro SD card into Slot
• - Use SD Card Formatter
• - Do a Quick Format
• 3) Use Win32DiskImager
• -Load the Raspbian Image then click write to the SD CARD
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Lets Start With Booting Up the Raspberry
Pi(Continue)
• 4) Once Complete Write
• - Create a blank “ssh” file with no extension and place it in the boot partition of the
SD CARD -> To enable ssh
• Open CMD-> type “E:”->type “echo.>E:\ssh”
• Without “ ”
• 5)Then Safely Remove the SD Card
• 6) Then load the SD Card, connect Ethernet Cable and connect micro usb
On the power for the Raspberry Pi and wait for 5-10 mins until
unidentified.
• 7) ON mobile hotspot with any name and any password(Remember
Name/Password)
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Lets Start With Booting Up the Raspberry
Pi(Continue)
• 8) Go to Control Panel ->Network and Internet ->Network and Sharing Center
• - Click Change Adapter Settings
• - Right click on Ethernet, Click Properties
• - Double Click Internet Protocol Version 4 (TCP/IPv4)
• -Tick Obtain an IP address automatically and Tick Obtain DNS server address automatically->Then Click OK-
>Close the page
• -Right click on Wi-Fi, Click Properties->Click Sharing->Tick Allow other network users to connect through this
computer internet connection and Tick Allow other network users to control or disable the shared internet
connection->Click Ok->Close the page
• -Right click on Ethernet again -> Click Properties-> Double Click Internet Protocol Version 4 (TCP/IPv4)->Copy
the IP address
• 9) Open Advanced IP Scanner(Installed on Desktop)
• - Paste the IP address-> Example : [Link] – [Link](this can be different based on your pc)
• - Wait until Raspberry Pi Comes out.
• - Copy the IP address for the Raspberry Pi
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Lets Start With Booting Up the Raspberry
Pi(Continue)
• 10) Open Putty
• At Host Name->Enter Raspberry Pi IP address and for port leave it at 22
• Make sure Connection Type is SSH, then press OPEN
• Click Yes if there is any security alert
• Username: pi Password: raspberry
• Type “sudo raspi-config” without “
• Click Interfacing Options
• Click on VNC
• Press Enter and Enable
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Lets Start With Booting Up the Raspberry
Pi(Continue)
• 12) Open VNC VIEWER
• Right-click and click New connection
• Enter the Raspberry Pi IP address in VNC Server
• Give any name and then press OK
• Click on the IP address and enter username and password
• Then press continue
13) Now you can use the GUI of the Raspberry Pi
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Connecting to WiFi
• Why?
• So next time don’t need to use the Ethernet Cable anymore
• Can straight power On the Raspberry Pi and then can use VNC VIEWER
• How?
• Go in VNC VIEWER
• Click the WiFi Signal button on top right and choose the WiFi connection that
you want to connect
• Then click OK
• Then repeat Steps 7 and 9 ONLY
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Change Hostname Of Raspberry Pi
• Why Do I Want to Do This?
• - Because in this class, so many of us are using the Raspberry Pi
• - All the Raspberry Pi have the same hostname so if lets say you want to connect to
your raspberry pi, you may accidentally connect to your friends raspberry pi
• How?
• Click Menu on Top Left, then click Preferences, then Click Raspberry Pi Configuration
• At System, Change Hostname to whatever you like(NO SPACE and NO
PUNCTUATION)( Example : firas1 (ALL LOWERCASE)->Click Ok
• Click Set Resolution->Change to DMT mode 85 1280x720 60Hz 16:9 ->Click Ok
• Click OK, then YES and reboot.
• Then Wait until the Raspberry Pi is Up again
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Changing time in Raspberry Pi
• 1) Click Menu->Preferences->Raspberry Pi Configuration
• 2)Click Localisation->Set Locale->Language->English
• ->Country->SG(Singapore)->Character Set->UTF-8->OK
• 3)Click Set Timezone->Area->Asia->Location->Kuala Lumpur->OK
• 4)Reboot
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Shutting Down the Raspberry Pi
• 1) Open VNC Viewer, Login
• 2) Top left click menu, then click shutdown
• 3) Wait until no LED is blinking(Only Red LED should be ON)
• 4) Then off the power and remove micro USB from Raspberry Pi
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
GNU/LINUX
• Raspbian is a free OS based on Debian but optimized for Raspberry Pi
hardware
• GNU/LINUX – Free, Open Source, UNIX like Operating System that
runs on diverse computing Hardware Platforms
• GNU: Provides the shell, library, compilers
• Linux: Provides the Kernel
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh
Embedded Linux
• Linux running on Embedded Systems
• Due to its low cost and ease of customization, Linux has been shipped
in many embedded devices
• Android is an example of Linux Based Operating System that is used in
Smartphones
• Other example are : Set Top Boxes(Astro), Wireless Routers, Smart
TV’s
Copyright © Sophicautomation [Link]. All rights reserved. |
by Theram Singh