SlideShare una empresa de Scribd logo
1 de 26
An Introductory Session
on
Raspberry PI
By: Pravesh Sahu
Raspberry Pi
• An efficient and cost effective
series of small sized single-
board computer.
• developed in the United
Kingdom by the Raspberry Pi
foundation.
• It’s a capable little PC which
can be used for many of the
things that your desktop PC
does.
A Cost Effective, Small, Powerful Computer
What’s makes it so special?
• Open Source Operating System
• Low Power
• Cost Efficient
• Instant Start-up
• Easy to Use
• Plug and play
• Supported 1080p HD video
• Can act as single platform for extensive programming
experience
It can be plugged with your TV, can be used for many of the
things that your average desktop does.
Raspberry PI models
Your tiny, desktop computer
Raspberry
Pi
3
• RAM 512 MB,1GB
• USB 2.0
• 1.4GHz CPU Clock
• 40 pins GPIO
• WiFi 2.4GHz and
5GHz 802.11
b/g/n/ac
• Bluetooth 5.0
Raspberry PI models
Your tiny, desktop computer
Raspberry
Pi
4
• Your choice of RAM 1GB, 2GB, 4GB, or
8GB.
• USB 3
• 1.5GHz CPU Clock
• 2x USB3.0 + 2x USB2.0 + USB-C OTG
• 2x micro HDMI
• 40-pins GPIO
• microSD
• WiFi 2.4GHz and 5GHz 802.11
b/g/n/ac
• Bluetooth 5.0
Raspberry PI models
Your tiny, desktop computer
Raspberry
Pi
Zero
WH
• RAM 512 MB
• USB 2.0
• 1GHz CPU Clock
• 40 pins GPIO, WiFi,
Bluetooth 4.1
Operating System
Your tiny, desktop computer
Raspberry Pi OS
Your Raspberry Pi needs an operating system
to work. This is it. Raspberry Pi OS (previously
called Raspbian) is official supported
operating system.
Some Other
Operating systems
•Ubuntu MATE
•Pidora
•Linutop
•SARPi
•Arch Linux ARM
•Gentoo Linux
•FreeBSD
•Kali Linux
8 GB (or more) SD card:
That is the first and biggest pain. You must have a SD card
of at least 8 GB. Raspberry Pi boots only from a SD card
then you might use external USB storage, but it won’t
breathe without the SD card.
Things You Need To Get Your Raspberry
Pi Working
Power supply:
For the Raspberry Pi 4, you need a USB-C power
source that provides at least 3 amps / 5 volts,
but for other Raspberry Pis, you need a micro
USB connection that offers at least 2.5 amps
and the same 5 volts.
Things You Need To Get Your Raspberry
Pi Working
HDMI cable or Video RCA
The next thing you need is a display. You can
hook up the Raspberry Pi with a digital TV using
HDMI or to the older generation TV/monitor
using composite Video RCA to RCA connector.
There is absolutely no support for VGA.
Things You Need To Get Your Raspberry
Pi Working
Keyboard and Mouse
Now when you have Raspberry Pi powered, booted and
connected to a screen you definitely need mouse and
keyboard to interact. There is no support for PS2
keyboard and mouse and rightly so. No need to support
obsolete technology in a gen-next device.
Things You Need To Get Your Raspberry
Pi Working
Installation
With Raspberry PI OS
Go -> https://www.raspberrypi.org/software/
Installation
With Raspberry PI OS
Installation
With Raspberry PI OS
Installation
With Raspberry PI OS
Installation
With Raspberry PI OS
Put the microSD card in your RPi and boot
up
Once the disc image has been written to the microSD
card, you’re ready to go! Put that microSD card into your
Raspberry Pi, plug in the peripherals and power source,
and enjoy. The current edition to Raspberry PI OS will
boot directly to the desktop.
What is Python?
Python is a popular programming language. It was created by
Guido van Rossum, and released in 1991.
It is used for:
web development (server-side),
software development,
mathematics,
system scripting.
• Python can be used on a server to create web applications.
• Python can be used alongside software to create workflows.
• Python can connect to database systems. It can also read and
modify files.
•Python can be used to handle big data and perform complex
mathematics.
•Python can be used for rapid prototyping, or for production-
ready software development.
What can Python do?
•Python works on different platforms (Windows, Mac, Linux,
Raspberry Pi, etc).
•Python has a simple syntax similar to the English language.
•Python has syntax that allows developers to write programs
with fewer lines than some other programming languages.
•Python runs on an interpreter system, meaning that code
can be executed as soon as it is written. This means that
prototyping can be very quick.
•Python can be treated in a procedural way, an object-
oriented way or a functional way.
Why Python?
Writing the Python Code to blink the LED
Getting Started
With the circuit created we need to
write the Python script to blink the
LED. Before we start writing the
software we first need to install the
Raspberry Pi GPIO Python module.
This is a library that allows us to
access the GPIO port directly from
Python.
Writing the Python Code to blink the LED
Getting Started
To install the Python library open a terminal and execute
the following
$ sudo apt-get install python-rpi.gpio python3-
rpi.gpio
With the library installed now open your favorite Python IDE.
Writing the Python Code to blink the LED
Python Script
Our script needs to do the following:
•Initialize the GPIO ports
•Turn the LED on and off in 1 second intervals
To initialize the GPIO ports on the Raspberry Pi we need
to first import the Python library,
setup pin 8 as an output pin.
Writing the Python Code to blink the LED
Python Script
Next we need to turn the LED on and off in 1 second intervals by
setting the output pin to either high (on) or low (off). We do this
inside a infinite loop so our program keep executing until we
manually stop it.
Writing the Python Code to blink the LED
Python Script
Combining the initialization and the blink code should give
you the following full Python program:
Writing the Python Code to blink the LED
Python Script
$ python blinking_led.py
With our program finished, save it as blinking_led.py and run it
either inside your IDE or in the console with:
THANKYOU

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Rasp berry Pi
Rasp berry PiRasp berry Pi
Rasp berry Pi
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry Pi Presentation
Raspberry Pi PresentationRaspberry Pi Presentation
Raspberry Pi Presentation
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Rasberry pi
 Rasberry pi Rasberry pi
Rasberry pi
 
Presentation on Raspberry pi
Presentation on Raspberry piPresentation on Raspberry pi
Presentation on Raspberry pi
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Raspberrypi best ppt
Raspberrypi best ppt Raspberrypi best ppt
Raspberrypi best ppt
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014
 
Introduction to raspberry pi
Introduction to raspberry piIntroduction to raspberry pi
Introduction to raspberry pi
 
Raspberry pi ppt
Raspberry pi pptRaspberry pi ppt
Raspberry pi ppt
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry pi
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Introduction to Raspberry PI
Introduction to Raspberry PIIntroduction to Raspberry PI
Introduction to Raspberry PI
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
Introduction to raspberry pi
Introduction to raspberry piIntroduction to raspberry pi
Introduction to raspberry pi
 
Raspberry Pi Introduction
Raspberry Pi IntroductionRaspberry Pi Introduction
Raspberry Pi Introduction
 

Similar a Raspberry pi

Introduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlIntroduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlPradip Bhandari
 
Raspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your LibraryRaspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your LibraryBrian Pichman
 
Unit 6 - PART2.pptx
Unit 6 - PART2.pptxUnit 6 - PART2.pptx
Unit 6 - PART2.pptxBLACKSPAROW
 
Raspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureRaspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureSyed Umaid Ahmed
 
IoT for data science Module 5 - Raspberry Pi.pptx
IoT for data science Module 5 - Raspberry Pi.pptxIoT for data science Module 5 - Raspberry Pi.pptx
IoT for data science Module 5 - Raspberry Pi.pptxMadhurimaDas52
 
Raspbeery Pi : An Introduction
Raspbeery Pi : An IntroductionRaspbeery Pi : An Introduction
Raspbeery Pi : An IntroductionVatsal N Shah
 
Raspberry Pi training in Ludhiana
Raspberry Pi training in LudhianaRaspberry Pi training in Ludhiana
Raspberry Pi training in LudhianaE2MATRIX
 
Raspberry Pi Training in Mohali
Raspberry Pi Training in MohaliRaspberry Pi Training in Mohali
Raspberry Pi Training in MohaliE2MATRIX
 
Raspberry Pi Training in Chandigarh
Raspberry Pi Training in ChandigarhRaspberry Pi Training in Chandigarh
Raspberry Pi Training in ChandigarhE2MATRIX
 
Raspberry Pi Training in Phagwara
Raspberry Pi Training in PhagwaraRaspberry Pi Training in Phagwara
Raspberry Pi Training in PhagwaraE2MATRIX
 
Getting started with Raspberry Pi - By Ibrahim
Getting started with Raspberry Pi - By IbrahimGetting started with Raspberry Pi - By Ibrahim
Getting started with Raspberry Pi - By IbrahimMurugadoss Balasubramanian
 
Raspberry Pi Training in Jalandhar
Raspberry Pi Training in JalandharRaspberry Pi Training in Jalandhar
Raspberry Pi Training in JalandharE2MATRIX
 

Similar a Raspberry pi (20)

Introduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlIntroduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin Control
 
Raspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your LibraryRaspberry Pi - Unlocking New Ideas for Your Library
Raspberry Pi - Unlocking New Ideas for Your Library
 
Unit 6 - PART2.pptx
Unit 6 - PART2.pptxUnit 6 - PART2.pptx
Unit 6 - PART2.pptx
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureRaspberry Pi Introductory Lecture
Raspberry Pi Introductory Lecture
 
IoT for data science Module 5 - Raspberry Pi.pptx
IoT for data science Module 5 - Raspberry Pi.pptxIoT for data science Module 5 - Raspberry Pi.pptx
IoT for data science Module 5 - Raspberry Pi.pptx
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
Raspbeery Pi : An Introduction
Raspbeery Pi : An IntroductionRaspbeery Pi : An Introduction
Raspbeery Pi : An Introduction
 
Raaaaassspberry pi
Raaaaassspberry piRaaaaassspberry pi
Raaaaassspberry pi
 
RASPBERRY Pi.pptx
RASPBERRY Pi.pptxRASPBERRY Pi.pptx
RASPBERRY Pi.pptx
 
Raspberry Pi ppt.pptx
Raspberry Pi ppt.pptxRaspberry Pi ppt.pptx
Raspberry Pi ppt.pptx
 
Raspberry Pi ppt.pptx
Raspberry Pi ppt.pptxRaspberry Pi ppt.pptx
Raspberry Pi ppt.pptx
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
Raspberry Pi training in Ludhiana
Raspberry Pi training in LudhianaRaspberry Pi training in Ludhiana
Raspberry Pi training in Ludhiana
 
Raspberry Pi Training in Mohali
Raspberry Pi Training in MohaliRaspberry Pi Training in Mohali
Raspberry Pi Training in Mohali
 
Raspberry Pi Training in Chandigarh
Raspberry Pi Training in ChandigarhRaspberry Pi Training in Chandigarh
Raspberry Pi Training in Chandigarh
 
Raspberry Pi Training in Phagwara
Raspberry Pi Training in PhagwaraRaspberry Pi Training in Phagwara
Raspberry Pi Training in Phagwara
 
Getting started with Raspberry Pi - By Ibrahim
Getting started with Raspberry Pi - By IbrahimGetting started with Raspberry Pi - By Ibrahim
Getting started with Raspberry Pi - By Ibrahim
 
Raspberry Pi Training in Jalandhar
Raspberry Pi Training in JalandharRaspberry Pi Training in Jalandhar
Raspberry Pi Training in Jalandhar
 

Último

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 

Último (20)

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 

Raspberry pi

  • 2. Raspberry Pi • An efficient and cost effective series of small sized single- board computer. • developed in the United Kingdom by the Raspberry Pi foundation. • It’s a capable little PC which can be used for many of the things that your desktop PC does. A Cost Effective, Small, Powerful Computer
  • 3. What’s makes it so special? • Open Source Operating System • Low Power • Cost Efficient • Instant Start-up • Easy to Use • Plug and play • Supported 1080p HD video • Can act as single platform for extensive programming experience It can be plugged with your TV, can be used for many of the things that your average desktop does.
  • 4. Raspberry PI models Your tiny, desktop computer Raspberry Pi 3 • RAM 512 MB,1GB • USB 2.0 • 1.4GHz CPU Clock • 40 pins GPIO • WiFi 2.4GHz and 5GHz 802.11 b/g/n/ac • Bluetooth 5.0
  • 5. Raspberry PI models Your tiny, desktop computer Raspberry Pi 4 • Your choice of RAM 1GB, 2GB, 4GB, or 8GB. • USB 3 • 1.5GHz CPU Clock • 2x USB3.0 + 2x USB2.0 + USB-C OTG • 2x micro HDMI • 40-pins GPIO • microSD • WiFi 2.4GHz and 5GHz 802.11 b/g/n/ac • Bluetooth 5.0
  • 6. Raspberry PI models Your tiny, desktop computer Raspberry Pi Zero WH • RAM 512 MB • USB 2.0 • 1GHz CPU Clock • 40 pins GPIO, WiFi, Bluetooth 4.1
  • 7. Operating System Your tiny, desktop computer Raspberry Pi OS Your Raspberry Pi needs an operating system to work. This is it. Raspberry Pi OS (previously called Raspbian) is official supported operating system. Some Other Operating systems •Ubuntu MATE •Pidora •Linutop •SARPi •Arch Linux ARM •Gentoo Linux •FreeBSD •Kali Linux
  • 8. 8 GB (or more) SD card: That is the first and biggest pain. You must have a SD card of at least 8 GB. Raspberry Pi boots only from a SD card then you might use external USB storage, but it won’t breathe without the SD card. Things You Need To Get Your Raspberry Pi Working
  • 9. Power supply: For the Raspberry Pi 4, you need a USB-C power source that provides at least 3 amps / 5 volts, but for other Raspberry Pis, you need a micro USB connection that offers at least 2.5 amps and the same 5 volts. Things You Need To Get Your Raspberry Pi Working
  • 10. HDMI cable or Video RCA The next thing you need is a display. You can hook up the Raspberry Pi with a digital TV using HDMI or to the older generation TV/monitor using composite Video RCA to RCA connector. There is absolutely no support for VGA. Things You Need To Get Your Raspberry Pi Working
  • 11. Keyboard and Mouse Now when you have Raspberry Pi powered, booted and connected to a screen you definitely need mouse and keyboard to interact. There is no support for PS2 keyboard and mouse and rightly so. No need to support obsolete technology in a gen-next device. Things You Need To Get Your Raspberry Pi Working
  • 12. Installation With Raspberry PI OS Go -> https://www.raspberrypi.org/software/
  • 16. Installation With Raspberry PI OS Put the microSD card in your RPi and boot up Once the disc image has been written to the microSD card, you’re ready to go! Put that microSD card into your Raspberry Pi, plug in the peripherals and power source, and enjoy. The current edition to Raspberry PI OS will boot directly to the desktop.
  • 17. What is Python? Python is a popular programming language. It was created by Guido van Rossum, and released in 1991. It is used for: web development (server-side), software development, mathematics, system scripting.
  • 18. • Python can be used on a server to create web applications. • Python can be used alongside software to create workflows. • Python can connect to database systems. It can also read and modify files. •Python can be used to handle big data and perform complex mathematics. •Python can be used for rapid prototyping, or for production- ready software development. What can Python do?
  • 19. •Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc). •Python has a simple syntax similar to the English language. •Python has syntax that allows developers to write programs with fewer lines than some other programming languages. •Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick. •Python can be treated in a procedural way, an object- oriented way or a functional way. Why Python?
  • 20. Writing the Python Code to blink the LED Getting Started With the circuit created we need to write the Python script to blink the LED. Before we start writing the software we first need to install the Raspberry Pi GPIO Python module. This is a library that allows us to access the GPIO port directly from Python.
  • 21. Writing the Python Code to blink the LED Getting Started To install the Python library open a terminal and execute the following $ sudo apt-get install python-rpi.gpio python3- rpi.gpio With the library installed now open your favorite Python IDE.
  • 22. Writing the Python Code to blink the LED Python Script Our script needs to do the following: •Initialize the GPIO ports •Turn the LED on and off in 1 second intervals To initialize the GPIO ports on the Raspberry Pi we need to first import the Python library, setup pin 8 as an output pin.
  • 23. Writing the Python Code to blink the LED Python Script Next we need to turn the LED on and off in 1 second intervals by setting the output pin to either high (on) or low (off). We do this inside a infinite loop so our program keep executing until we manually stop it.
  • 24. Writing the Python Code to blink the LED Python Script Combining the initialization and the blink code should give you the following full Python program:
  • 25. Writing the Python Code to blink the LED Python Script $ python blinking_led.py With our program finished, save it as blinking_led.py and run it either inside your IDE or in the console with: