SlideShare a Scribd company logo
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

More Related Content

What's hot

Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
Naga Srinivas
 
Rasp berry Pi
Rasp berry PiRasp berry Pi
Rasp berry Pi
Atieq-ur -Rehman
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
ABHIJITPATRA23
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)
Mandeesh Singh
 
Raspberry Pi Technology
Raspberry Pi TechnologyRaspberry Pi Technology
Raspberry Pi Technology
Ravi Basil
 
Rasberry pi
 Rasberry pi Rasberry pi
Rasberry pi
GANESH GOVIND BHOR
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
Akash Kr Sinha
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014
Mandeesh Singh
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
Shubham singh
 
Raspberry PI
Raspberry PIRaspberry PI
Raspberry pi 3
Raspberry pi 3Raspberry pi 3
Raspberry pi 3
Inocentshuja Ahmad
 
Simple Presentation On Raspberry pi
Simple Presentation On Raspberry piSimple Presentation On Raspberry pi
Simple Presentation On Raspberry pi
Sakkar Chowdhury
 
Raspberry pi : an introduction
Raspberry pi : an introductionRaspberry pi : an introduction
Raspberry pi : an introduction
LTG Oxford
 
Raspberry pi complete setup
Raspberry pi complete setupRaspberry pi complete setup
Raspberry pi complete setup
Santosh Kumar Kar
 
Introduction to Raspberry PI
Introduction to Raspberry PIIntroduction to Raspberry PI
Introduction to Raspberry PI
Chandrashekar Babu
 
Introduction to Arduino & Raspberry Pi
Introduction to Arduino & Raspberry PiIntroduction to Arduino & Raspberry Pi
Introduction to Arduino & Raspberry Pi
Ahmad Hafeezi
 
Introduction to raspberry pi
Introduction to raspberry piIntroduction to raspberry pi
Introduction to raspberry pi
praveen_23
 
RASPBERRY PI
RASPBERRY PIRASPBERRY PI
RASPBERRY PI
VaishaliSrigadhi
 
Presentation on Raspberry pi
Presentation on Raspberry piPresentation on Raspberry pi
Presentation on Raspberry pi
OpenDev
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry pi
HusainBhaldar21
 

What's hot (20)

Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Rasp berry Pi
Rasp berry PiRasp berry Pi
Rasp berry Pi
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)
 
Raspberry Pi Technology
Raspberry Pi TechnologyRaspberry Pi Technology
Raspberry Pi Technology
 
Rasberry pi
 Rasberry pi Rasberry pi
Rasberry pi
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Raspberry PI
Raspberry PIRaspberry PI
Raspberry PI
 
Raspberry pi 3
Raspberry pi 3Raspberry pi 3
Raspberry pi 3
 
Simple Presentation On Raspberry pi
Simple Presentation On Raspberry piSimple Presentation On Raspberry pi
Simple Presentation On Raspberry pi
 
Raspberry pi : an introduction
Raspberry pi : an introductionRaspberry pi : an introduction
Raspberry pi : an introduction
 
Raspberry pi complete setup
Raspberry pi complete setupRaspberry pi complete setup
Raspberry pi complete setup
 
Introduction to Raspberry PI
Introduction to Raspberry PIIntroduction to Raspberry PI
Introduction to Raspberry PI
 
Introduction to Arduino & Raspberry Pi
Introduction to Arduino & Raspberry PiIntroduction to Arduino & Raspberry Pi
Introduction to Arduino & Raspberry Pi
 
Introduction to raspberry pi
Introduction to raspberry piIntroduction to raspberry pi
Introduction to raspberry pi
 
RASPBERRY PI
RASPBERRY PIRASPBERRY PI
RASPBERRY PI
 
Presentation on Raspberry pi
Presentation on Raspberry piPresentation on Raspberry pi
Presentation on Raspberry pi
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry pi
 

Similar to 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 Control
Pradip 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 Library
Brian Pichman
 
Unit 6 - PART2.pptx
Unit 6 - PART2.pptxUnit 6 - PART2.pptx
Unit 6 - PART2.pptx
BLACKSPAROW
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
MOUNIKA VINNAKOTA
 
Raspberry pi. mini computer networks science ppt
Raspberry pi. mini computer networks science pptRaspberry pi. mini computer networks science ppt
Raspberry pi. mini computer networks science ppt
harshit762481
 
Raspberry Pi Introductory Lecture
Raspberry Pi Introductory LectureRaspberry Pi Introductory Lecture
Raspberry Pi Introductory Lecture
Syed 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.pptx
MadhurimaDas52
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
vishal choudhary
 
Raspbeery Pi : An Introduction
Raspbeery Pi : An IntroductionRaspbeery Pi : An Introduction
Raspbeery Pi : An Introduction
Vatsal N Shah
 
Raaaaassspberry pi
Raaaaassspberry piRaaaaassspberry pi
Raaaaassspberry pi
Stephen Ahiante
 
RASPBERRY Pi.pptx
RASPBERRY Pi.pptxRASPBERRY Pi.pptx
RASPBERRY Pi.pptx
SameeUllaKhan1
 
Raspberry Pi ppt.pptx
Raspberry Pi ppt.pptxRaspberry Pi ppt.pptx
Raspberry Pi ppt.pptx
ushabharathisb1
 
Raspberry Pi ppt.pptx
Raspberry Pi ppt.pptxRaspberry Pi ppt.pptx
Raspberry Pi ppt.pptx
ushabharathisb1
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
Vijay Vishwakarma
 
Raspberry Pi training in Ludhiana
Raspberry Pi training in LudhianaRaspberry Pi training in Ludhiana
Raspberry Pi training in Ludhiana
E2MATRIX
 
Raspberry Pi Training in Mohali
Raspberry Pi Training in MohaliRaspberry Pi Training in Mohali
Raspberry Pi Training in Mohali
E2MATRIX
 
Raspberry Pi Training in Chandigarh
Raspberry Pi Training in ChandigarhRaspberry Pi Training in Chandigarh
Raspberry Pi Training in Chandigarh
E2MATRIX
 
Raspberry Pi Training in Phagwara
Raspberry Pi Training in PhagwaraRaspberry Pi Training in Phagwara
Raspberry Pi Training in Phagwara
E2MATRIX
 
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
Murugadoss Balasubramanian
 

Similar to 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. mini computer networks science ppt
Raspberry pi. mini computer networks science pptRaspberry pi. mini computer networks science ppt
Raspberry pi. mini computer networks science ppt
 
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
 

Recently uploaded

S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
christianmathematics
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 

Recently uploaded (20)

S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 

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: