0% found this document useful (0 votes)
8 views22 pages

Unit 3 - Part 4 - RPi - SRD

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views22 pages

Unit 3 - Part 4 - RPi - SRD

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Introduction to Raspberry-PI

R-pi is very important in the development of ioT.


Features of R-Pi

➢Computer in your palm.(Micro size computer)


➢Single-board computer.
➢Low cost as compared with regular computer .
➢Easy to access.
Image of R-PI
Basic Architecture of R-PI
Market holder of R-Pi
• Raspberry pi 3 model B
• Raspberry pi 2 model B
• Raspberry pi zero
Specifications
Internal Architecture of R-Pi
Raspberry Pi pin configuration
Raspberry Pi GPIO

• Act as both digital output and digital input.


• Output: turn a GPIO pin high or low.
• Input: detect a GPIO pin high or low.
Raspberry Pi Basics
• To start up with we need to download
operating system(o.s) of R-pi from site and
upload it in memory card of R-pi .

• 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

• Write Raspbianin SD card :


– Install“Win32 Disk Imager” softwarein windows
machine .
– Run Win32 Disk Imager
– Plug SD card into your PC
– Select the “Device”
– Browsethe “Image File”(Raspbian image)
– Write
Raspberry Pi OS Setup
Basic Initial Configuration

• 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.

You might also like