SlideShare a Scribd company logo
3
Most read
5
Most read
6
Most read
Raspberry pi
AGENDA
2
1
2
3
4
Raspberry pi
Detailed Specification
GPIO ports
Python for GPIO Programming
5 Code of Obstacle Avoidance using IR sensor
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. It is a capable 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 you’d expect a desktop computer to do, from browsing the internet and
playing high-definition video, to making spreadsheets, word-processing, and playing games.
The Raspberry Pi is a very cheap computer that runs Linux, but it also provides a set of GPIO
(general purpose input/output) pins, allowing you to control electronic components for physical
computing and explore the Internet of Things (IoT).
-:Raspberry pi:-
There have been many generations of the Raspberry Pi line: from Pi 1 to 4, and even a Pi 400.
There has generally been a Model A and a Model B of most generations. Model A has been a less
expensive variant, and tends to have reduced RAM and fewer ports (such as USB and Ethernet). The Pi
Zero is a spinoff of the original (Pi 1) generation, made even smaller and cheaper.
Product SoC Speed RAM USB Ports Ethernet Wireless Bluetooth
Raspberry Pi Model
A+
BCM2835 700MHz 512MB 1 No No No
Raspberry Pi Model
B+
BCM2835 700MHz 512MB 4 100Base-T No No
Raspberry Pi 2
Model B
BCM2836/7 900MHz 1GB 4 100Base-T No No
Raspberry Pi 3
Model B
BCM2837A0/B0 1200MHz 1GB 4 100Base-T 802.11n 4.1
Raspberry Pi 3
Model A+
BCM2837B0 1400MHz 512MB 1 No 802.11ac/n 4.2
Raspberry Pi 3
Model B+
BCM2837B0 1400MHz 1GB 4 1000Base-T 802.11ac/n 4.2
Raspberry Pi 4
Model B
BCM2711 1500MHz 2GB 2xUSB2, 2xUSB3 1000Base-T 802.11ac/n 5.0
Raspberry Pi 4
Model B
BCM2711 1500MHz 4GB 2xUSB2, 2xUSB3 1000Base-T 802.11ac/n 5.0
Raspberry Pi 4
Model B
BCM2711 1500MHz 8GB 2xUSB2, 2xUSB3 1000Base-T 802.11ac/n 5.0
Raspberry Pi Zero BCM2835 1000MHz 512MB 1 No No No
Raspberry Pi Zero W BCM2835 1000MHz 512MB 1 No 802.11n 4.1
Raspberry Pi Zero
WH
BCM2835 1000MHz 512MB 1 No 802.11n 4.1
Raspberry Pi 400 BCM2711 1800MHz 4GB 1xUSB2, 2xUSB3 1000Base-T 802.11ac/n 5.0
-:Raspberry Pi Version:-
-:Detailed Specification:-
The Raspberry Pi 3 Model B+ is an improved version of the Raspberry Pi 3 Model B. It is based
on the BCM2837B0 system-on-chip (SoC), which includes a 1.4 GHz quad-core ARMv8 64bit processor
and a powerful Video Core IV GPU. The Raspberry Pi can run a full range of ARM GNU/Linux
distributions, including Snappy Ubuntu Core, Raspbian, Fedora, and Arch Linux, as well as Microsoft
Windows 10 IoT Core.
 1GB LPDDR2 SDRAM (Low-Power Double-Data-Rate (LPDDR)-Synchronous Dynamic Random Access
Memory)
 2.4GHz and 5GHz IEEE 802.11.b/g/n/ac wireless LAN, Bluetooth 4.2, BLE
 Gigabit Ethernet over USB 2.0 (maximum throughput 300 Mbps)
 Extended 40-pin GPIO header
 Full-size HDMI (High-Definition Multimedia Interface) for interfacing external Display
 4 number of USB 2.0 ports
 CSI (Camera Serial Interface) camera port for connecting a Raspberry Pi camera
 DSI (Display Serial Interface) display port for connecting a Raspberry Pi touchscreen display
 4-pole stereo output and composite video port
 Micro SD port for loading your operating system and storing data
 5V/2.5A DC power input
Raspberry pi
-:SETUP Raspberry Pi:-
SD card: recommend a minimum of 8GB micro SD card.
Display and connectivity cable :Any HDMI/DVI monitor or TV should work as a display for the Pi. For best
results, use a display with HDMI input; other types of connection for older devices are also available.
Keyboard and mouse : Any standard USB keyboard and mouse will work with Raspberry Pi., Wireless
keyboards and mice will work if already paired.
Power supply: For Raspberry Pi 3 Model B+ models use the micro USB power supply Recomended PSU current
capacity 2.5A ,Maximum total peripheral current drawn 1.2A ,Typical bare-board active current
consuption500mA.
Raspberry Pi needs an operating system to work. This is it. Raspberry Pi OS OR called
Raspbian. It is a free operating system based on Debian optimized for the Raspberry Pi
hardware. Raspbian provides more than a pure OS: it comes with over 35,000 packages, pre-
compiled software bundled in a nice format for easy installation on
Raspberry Pi.
-:General Purpose I/O Ports (GPIO):-
GPIO (General Purpose Input Output) pins can be used as input or output and
allows raspberry pi to connect with general purpose I/O devices.
Voltages
Two 5V pins and two 3V3 pins are present on the board, as well as
a number of ground pins (0V), which are unconfigurable. The
remaining pins are all general purpose 3V3 pins, meaning outputs
are set to 3V3 and inputs are 3V3-tolerant.
Outputs
A GPIO pin designated as an output pin can be set to high (3V3) or
low (0V).
Inputs
A GPIO pin designated as an input pin can be read as high (3V3)
or low (0V). This is made easier with the use of internal pull-up or
pull-down resistors. Pins GPIO2 and GPIO3 have fixed pull-up
resistors, but for other pins this can be configured in software.
Raspberry-gpio-python or RPi.GPIO, is a Python module to control the GPIO interface on
the Raspberry Pi.
import RPi.GPIO as GPIO
That statement "includes" the RPi.GPIO module, and goes a step further by providing a local
name as GPIO
-:Python for GPIO Programming:-
Pin Numbering Declaration:-
GPIO.BOARD -- Board numbering scheme. The pin numbers follow the pin numbers on header P1.
GPIO.BCM -- Broadcom chip-specific pin numbers. These pin numbers follow the lower-level numbering system defined by the
Raspberry Pi's Broadcom-chip brain.
To specify in code which number-system is being used, use the GPIO.setmode()
GPIO.setmode(GPIO.BCM)
Setting a Pin Mode:-
GPIO.setup(5, GPIO.OUT)
GPIO.setup(1, GPIO.IN)
if we want to set pin 5 as an output
if we want to set pin 1 as an input
Input:-
If a pin is configured as an input, you can use the
GPIO.input([pin]) function to read its value.
if GPIO.input(17):
print("Pin 11 is HIGH")
else:
print("Pin 11 is LOW")
Outputs:-
To write a pin high or low, use the GPIO.output([pin], [GPIO.LOW, GPIO.HIGH])
GPIO.output(5, GPIO.HIGH)
-:Obstacle Avoidance using IR sensor:-
-:Conclusion:-
Raspberry Pi's are affordable, they are fun to use, and they can be put to very
serious uses too. The skills and principles that we learn in getting them to work
will serve we in good stead in today's world. For developing CS skills especially
for kids they should understand how they work and how to program them.
13
THANK YOU

More Related Content

PPTX
Raspberry pi
PPT
Raspberry-Pi
PPTX
Raspberry pi complete setup
PDF
Introduction to Raspberrypi
PPTX
Simple Presentation On Raspberry pi
PPT
Raspberry Pi Presentation
PPT
Raspberrypi best ppt
PPT
Raspberry Pi
Raspberry pi
Raspberry-Pi
Raspberry pi complete setup
Introduction to Raspberrypi
Simple Presentation On Raspberry pi
Raspberry Pi Presentation
Raspberrypi best ppt
Raspberry Pi

What's hot (20)

PPT
Rasp berry Pi
PPTX
Raspberry pi
PPTX
Raspberry Pi Session - 22_11_2014
PPT
Raspberry Pi Technology
PPT
Seminar Presentation on raspberry pi
PDF
My presentation raspberry pi
PPTX
Introduction to raspberry pi
PPTX
PPT
Raspberry pi : an introduction
PPTX
Raspberry pi
PPTX
Raspberry pi
PPTX
Raspberry pi
PPTX
Raspberry pi ppt
PDF
Exploring Raspberry Pi
PPTX
Raspberry pi
DOCX
A seminar report on Raspberry Pi
PPTX
Raspberry pi
PDF
Introduction to Raspberry PI
PPTX
Raspberry Pi
PPTX
Getting Started with Raspberry Pi
Rasp berry Pi
Raspberry pi
Raspberry Pi Session - 22_11_2014
Raspberry Pi Technology
Seminar Presentation on raspberry pi
My presentation raspberry pi
Introduction to raspberry pi
Raspberry pi : an introduction
Raspberry pi
Raspberry pi
Raspberry pi
Raspberry pi ppt
Exploring Raspberry Pi
Raspberry pi
A seminar report on Raspberry Pi
Raspberry pi
Introduction to Raspberry PI
Raspberry Pi
Getting Started with Raspberry Pi
Ad

Similar to Raspberry pi (20)

PDF
Intoduction to physical computing using Raspberry Pi, 18-02-2016
PPTX
Introduction To Raspberry Pi with Simple GPIO pin Control
PDF
Baking a Raspberry PI with Chef Rob
PPTX
Raspberry Pi ppt.pptx
PPTX
Raspberry Pi ppt.pptx
PDF
IoT Physical Devices and End Points.pdf
PDF
Introduction to Raspberry Pi
PPTX
Raspberry Pi Free Session - 20_09_2014
PPTX
Raspberry pi
PPTX
Raspberry Pi Introductory Lecture
PPTX
IoT for data science Module 5 - Raspberry Pi.pptx
PDF
Raspberry Pi 4 2020 Beginners Guide A Complete 2020 Manual To Get Started Wit...
PPTX
2_RaspberryPi presentation.pptx
PPTX
IOT Experiment-2.pptx --- Hands on Approach & Easy to learn IOT Basics...
PPTX
Internet of Things, refers to the network of interconnected devices that are ...
PPTX
M.Tech Internet of Things Unit - III.pptx
PPTX
Raspberry pi
PPTX
Unit 3 Complete.pptx
PDF
Raspberry Pi GPIO Tutorial - Make Your Own Game Console
PPTX
Up and running with Raspberry Pi
Intoduction to physical computing using Raspberry Pi, 18-02-2016
Introduction To Raspberry Pi with Simple GPIO pin Control
Baking a Raspberry PI with Chef Rob
Raspberry Pi ppt.pptx
Raspberry Pi ppt.pptx
IoT Physical Devices and End Points.pdf
Introduction to Raspberry Pi
Raspberry Pi Free Session - 20_09_2014
Raspberry pi
Raspberry Pi Introductory Lecture
IoT for data science Module 5 - Raspberry Pi.pptx
Raspberry Pi 4 2020 Beginners Guide A Complete 2020 Manual To Get Started Wit...
2_RaspberryPi presentation.pptx
IOT Experiment-2.pptx --- Hands on Approach & Easy to learn IOT Basics...
Internet of Things, refers to the network of interconnected devices that are ...
M.Tech Internet of Things Unit - III.pptx
Raspberry pi
Unit 3 Complete.pptx
Raspberry Pi GPIO Tutorial - Make Your Own Game Console
Up and running with Raspberry Pi
Ad

More from ABHIJITPATRA23 (8)

PPTX
packages java.pptx
PPTX
A report on application of probability to control the flow of traffic through...
PPTX
Operators in c++
DOCX
Home security system
PPTX
laplace transform of function of the 풕^풏f(t)
PPTX
(Project)study of fourier integrals
DOCX
Climate change impact on organization
PPTX
C++ student management system
packages java.pptx
A report on application of probability to control the flow of traffic through...
Operators in c++
Home security system
laplace transform of function of the 풕^풏f(t)
(Project)study of fourier integrals
Climate change impact on organization
C++ student management system

Recently uploaded (20)

PPTX
TE-AI-Unit VI notes using planning model
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
Ship’s Structural Components.pptx 7.7 Mb
PPTX
Internship_Presentation_Final engineering.pptx
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PDF
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
PDF
B.Tech (Electrical Engineering ) 2024 syllabus.pdf
PPTX
The-Looming-Shadow-How-AI-Poses-Dangers-to-Humanity.pptx
PDF
ETO & MEO Certificate of Competency Questions and Answers
PPTX
metal cuttingmechancial metalcutting.pptx
PPT
SCOPE_~1- technology of green house and poyhouse
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
PPTX
anatomy of limbus and anterior chamber .pptx
PPTX
436813905-LNG-Process-Overview-Short.pptx
PDF
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
PDF
Queuing formulas to evaluate throughputs and servers
PDF
Introduction to Data Science: data science process
PPTX
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
TE-AI-Unit VI notes using planning model
Lesson 3_Tessellation.pptx finite Mathematics
Ship’s Structural Components.pptx 7.7 Mb
Internship_Presentation_Final engineering.pptx
Strings in CPP - Strings in C++ are sequences of characters used to store and...
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
B.Tech (Electrical Engineering ) 2024 syllabus.pdf
The-Looming-Shadow-How-AI-Poses-Dangers-to-Humanity.pptx
ETO & MEO Certificate of Competency Questions and Answers
metal cuttingmechancial metalcutting.pptx
SCOPE_~1- technology of green house and poyhouse
dse_final_merit_2025_26 gtgfffffcjjjuuyy
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
24AI201_AI_Unit_4 (1).pptx Artificial intelligence
anatomy of limbus and anterior chamber .pptx
436813905-LNG-Process-Overview-Short.pptx
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
Queuing formulas to evaluate throughputs and servers
Introduction to Data Science: data science process
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd

Raspberry pi

  • 2. AGENDA 2 1 2 3 4 Raspberry pi Detailed Specification GPIO ports Python for GPIO Programming 5 Code of Obstacle Avoidance using IR sensor
  • 3. 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. It is a capable 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 you’d expect a desktop computer to do, from browsing the internet and playing high-definition video, to making spreadsheets, word-processing, and playing games. The Raspberry Pi is a very cheap computer that runs Linux, but it also provides a set of GPIO (general purpose input/output) pins, allowing you to control electronic components for physical computing and explore the Internet of Things (IoT). -:Raspberry pi:-
  • 4. There have been many generations of the Raspberry Pi line: from Pi 1 to 4, and even a Pi 400. There has generally been a Model A and a Model B of most generations. Model A has been a less expensive variant, and tends to have reduced RAM and fewer ports (such as USB and Ethernet). The Pi Zero is a spinoff of the original (Pi 1) generation, made even smaller and cheaper. Product SoC Speed RAM USB Ports Ethernet Wireless Bluetooth Raspberry Pi Model A+ BCM2835 700MHz 512MB 1 No No No Raspberry Pi Model B+ BCM2835 700MHz 512MB 4 100Base-T No No Raspberry Pi 2 Model B BCM2836/7 900MHz 1GB 4 100Base-T No No Raspberry Pi 3 Model B BCM2837A0/B0 1200MHz 1GB 4 100Base-T 802.11n 4.1 Raspberry Pi 3 Model A+ BCM2837B0 1400MHz 512MB 1 No 802.11ac/n 4.2 Raspberry Pi 3 Model B+ BCM2837B0 1400MHz 1GB 4 1000Base-T 802.11ac/n 4.2 Raspberry Pi 4 Model B BCM2711 1500MHz 2GB 2xUSB2, 2xUSB3 1000Base-T 802.11ac/n 5.0 Raspberry Pi 4 Model B BCM2711 1500MHz 4GB 2xUSB2, 2xUSB3 1000Base-T 802.11ac/n 5.0 Raspberry Pi 4 Model B BCM2711 1500MHz 8GB 2xUSB2, 2xUSB3 1000Base-T 802.11ac/n 5.0 Raspberry Pi Zero BCM2835 1000MHz 512MB 1 No No No Raspberry Pi Zero W BCM2835 1000MHz 512MB 1 No 802.11n 4.1 Raspberry Pi Zero WH BCM2835 1000MHz 512MB 1 No 802.11n 4.1 Raspberry Pi 400 BCM2711 1800MHz 4GB 1xUSB2, 2xUSB3 1000Base-T 802.11ac/n 5.0 -:Raspberry Pi Version:-
  • 5. -:Detailed Specification:- The Raspberry Pi 3 Model B+ is an improved version of the Raspberry Pi 3 Model B. It is based on the BCM2837B0 system-on-chip (SoC), which includes a 1.4 GHz quad-core ARMv8 64bit processor and a powerful Video Core IV GPU. The Raspberry Pi can run a full range of ARM GNU/Linux distributions, including Snappy Ubuntu Core, Raspbian, Fedora, and Arch Linux, as well as Microsoft Windows 10 IoT Core.  1GB LPDDR2 SDRAM (Low-Power Double-Data-Rate (LPDDR)-Synchronous Dynamic Random Access Memory)  2.4GHz and 5GHz IEEE 802.11.b/g/n/ac wireless LAN, Bluetooth 4.2, BLE  Gigabit Ethernet over USB 2.0 (maximum throughput 300 Mbps)  Extended 40-pin GPIO header  Full-size HDMI (High-Definition Multimedia Interface) for interfacing external Display  4 number of USB 2.0 ports  CSI (Camera Serial Interface) camera port for connecting a Raspberry Pi camera  DSI (Display Serial Interface) display port for connecting a Raspberry Pi touchscreen display  4-pole stereo output and composite video port  Micro SD port for loading your operating system and storing data  5V/2.5A DC power input
  • 7. -:SETUP Raspberry Pi:- SD card: recommend a minimum of 8GB micro SD card. Display and connectivity cable :Any HDMI/DVI monitor or TV should work as a display for the Pi. For best results, use a display with HDMI input; other types of connection for older devices are also available. Keyboard and mouse : Any standard USB keyboard and mouse will work with Raspberry Pi., Wireless keyboards and mice will work if already paired. Power supply: For Raspberry Pi 3 Model B+ models use the micro USB power supply Recomended PSU current capacity 2.5A ,Maximum total peripheral current drawn 1.2A ,Typical bare-board active current consuption500mA. Raspberry Pi needs an operating system to work. This is it. Raspberry Pi OS OR called Raspbian. It is a free operating system based on Debian optimized for the Raspberry Pi hardware. Raspbian provides more than a pure OS: it comes with over 35,000 packages, pre- compiled software bundled in a nice format for easy installation on Raspberry Pi.
  • 8. -:General Purpose I/O Ports (GPIO):- GPIO (General Purpose Input Output) pins can be used as input or output and allows raspberry pi to connect with general purpose I/O devices. Voltages Two 5V pins and two 3V3 pins are present on the board, as well as a number of ground pins (0V), which are unconfigurable. The remaining pins are all general purpose 3V3 pins, meaning outputs are set to 3V3 and inputs are 3V3-tolerant. Outputs A GPIO pin designated as an output pin can be set to high (3V3) or low (0V). Inputs A GPIO pin designated as an input pin can be read as high (3V3) or low (0V). This is made easier with the use of internal pull-up or pull-down resistors. Pins GPIO2 and GPIO3 have fixed pull-up resistors, but for other pins this can be configured in software.
  • 9. Raspberry-gpio-python or RPi.GPIO, is a Python module to control the GPIO interface on the Raspberry Pi. import RPi.GPIO as GPIO That statement "includes" the RPi.GPIO module, and goes a step further by providing a local name as GPIO -:Python for GPIO Programming:- Pin Numbering Declaration:- GPIO.BOARD -- Board numbering scheme. The pin numbers follow the pin numbers on header P1. GPIO.BCM -- Broadcom chip-specific pin numbers. These pin numbers follow the lower-level numbering system defined by the Raspberry Pi's Broadcom-chip brain. To specify in code which number-system is being used, use the GPIO.setmode() GPIO.setmode(GPIO.BCM) Setting a Pin Mode:- GPIO.setup(5, GPIO.OUT) GPIO.setup(1, GPIO.IN) if we want to set pin 5 as an output if we want to set pin 1 as an input
  • 10. Input:- If a pin is configured as an input, you can use the GPIO.input([pin]) function to read its value. if GPIO.input(17): print("Pin 11 is HIGH") else: print("Pin 11 is LOW") Outputs:- To write a pin high or low, use the GPIO.output([pin], [GPIO.LOW, GPIO.HIGH]) GPIO.output(5, GPIO.HIGH)
  • 12. -:Conclusion:- Raspberry Pi's are affordable, they are fun to use, and they can be put to very serious uses too. The skills and principles that we learn in getting them to work will serve we in good stead in today's world. For developing CS skills especially for kids they should understand how they work and how to program them.