Unit 3 - Part 4 - RPi - SRD
Unit 3 - Part 4 - RPi - SRD
• https://www.raspberrypi.org/downloads/
Raspberry Pi Set up
• Download Raspbian:
• Download latest Raspbianimage from
raspberry pi official site:
https://www.raspberrypi.org/downloads/
• Unzip the file and end up with an .imgfile.
Raspberry Pi OS Setup
• Enable SSH
• Step1 :Open command prompt and type sudo
raspi-config and press enter.
• Step2:Navigate to SSH in the Advance option.
• Step3:Enable SSH
Basic Initial Configuration
Basic Initial Configuration
Basic Initial Configuration…
• Expand file system :
• Step 1:Open command prompt and type sudo
raspi-config and press enter.
• Step 2:Navigate to Expand Filesystem
• Step 3:Press enter to expand it.
Basic Initial Configuration…
Programming languages with R-Pi
• Python
•C
• C++
• Java
• Scratch
• Ruby
• Note : Any language that will compile for ARMv6
can be used with raspberry pi.
Popular Applications
• Media streamer
•Home automation
•Controlling BOT
•VPN
•Light weight web server for IOT
•Tablet computer
• import RPi.GPIO as GPIO #GPIO library
• import time
• GPIO.setmode(GPIO.BOARD) # Set the type of board for pin numbering
• GPIO.setup(11, GPIO.OUT) # Set GPIO pin 11as output pin
• for i in range (0,5):
• GPIO.output(11,True) # Turn on GPIO pin 11 .
• time.sleep(1)
• GPIO.output(11,False)
• time.sleep(2)
• GPIO.output(11,True)
• GPIO.cleanup()
LED Blinking
Interfacing R-Pi with sensors and
Actuators
• Try :Temperature dependent auto cooling
system.