SlideShare une entreprise Scribd logo
1  sur  20
Module 5 - RaspberryPi Programming using Python
1
RaspberryPi:
 Raspberry Pi is the name of a series of single-board computers made by the
Raspberry Pi Foundation, a UK charity that aims to educate people in
computing and create easier access to computing education.
 The Raspberry Pi launched in 2012, and there have been several iterations and
variations released since then. The original Pi had a single-core 700MHz CPU
and just 256MB RAM, and the latest model has a quad-core 1.4GHz CPU with
1GB RAM. The main price point for Raspberry Pi has always been $35 and all
models have been $35 or less, including the Pi Zero, which costs just $5.
Module 5 - RaspberryPi Programming using Python
2
Module 5 - RaspberryPi Programming using Python
3
Module 5 - RaspberryPi Programming using Python
4
Module 5 - RaspberryPi Programming using Python
5
Hardware Layout:
raspi-config
• The Raspberry Pi configuration tool in Raspbian, allowing you to easily enable features such as the
camera, and to change your specific settings such as keyboard layout
config.txt
• The Raspberry Pi configuration
file Wireless networking
• Configuring your Pi to connect to a wireless network using the Raspberry Pi 3's or Pi Zero W's
inbuilt wireless
connectivity, or a USB wireless dongle
Wireless access point
• Configuring your Pi as a wireless accesspoint using the Raspberry Pi 3 and Pi Zero W's
inbuilt wireless connectivity, or a USB wireless dongle
Module 5 - RaspberryPi Programming using Python
6
Using a proxy
• Setting up your Pi to accessthe internet via a proxy server
HDMI Config
• Guide to setting up your HDMI device, including custom settings
Audio config
• Switch your audio output between HDMI and the 3.5mm jack Camera config
• Installing and setting up the Raspberry Pi camera board
External storage config
• Mounting and setting up external storage on a Raspberry Pi
Module 5 - RaspberryPi Programming using Python
7
Localisation
• Setting up your Pi to work in your local language/time zone Default pin configuration
• Changing the default pin states. Device Trees config
• Device Trees, overlays, and parameters Kernel command line
• How to set options in the kernel command line UART configuration
• How to set up the on-board UARTS.
Firmware warning icons
• Description of warning icons displayed if the firmware detects issues
Module 5 RaspberryPi Programming using Python
8
LED warning flash codes
• Description of the meaning of LED warning flashes that are shown if aPi
fails to boot or has to shut down
Securing your Raspberry Pi
• Some basic advice for making your Raspberry Pi more secure
Screensaver
• How to configure screen blanking/screen saver
The boot folder
• What it's for and what's in it
Operating Systems on Raspberry Pi:
9
• You have a few options when it comes to interacting with the Raspberry Pi. The
first and most common is to use it like you would a full desktop computer (just
smaller).
• This involves connecting a keyboard, mouse, and monitor. With this setup, you
are likely best served by installing Raspbian with Desktop, whichgives you a
full graphical user interface(GUI) to work with.
• This is the best option if you want an experience similar to working with other
operating systems (OS), such as Windows, macOS, or other popular Linux
flavors, like Ubuntu.
Module 5 - RaspberryPi Programming using Python
10
Programming RaspberryPi with Python:
The Raspberry Pi is an amazing single board computer (SBC) capable of running
Linux and a whole host of applications. Python is a beginner-friendly programming
language that is used in schools, web development, scientific research, and inmany
other industries.
Module 5 - RaspberryPi Programming using Python
11
Wireless Temperature Monitoring System Using Pi:
• Raspberry Pi which having inbuilt wi-fi, which makes Raspberry Pi to suitable for IoT applications, so
that by using IoT technology this monitoring system works by uploading the temperature value to the
Thingspeak cloud by this project you can able to learn to how to handle cloud-based application using
API keys.
• In this monitoring system, we used Thingspeak cloud, the cloud which is suitable to view the sensor
logs in the form of graph plots. Here we created one field to monitor the temperature value, that can be
reconfigurable to monitor a number of sensor values in various fields.
• This basic will teach you to how to work with a cloud by using LM35 as a temperature sensor, to detect
the temperature and to upload those values into the cloud.
Module 5 - RaspberryPi Programming using Python
12
HARDWARE REQUIRED
• Raspberry Pi
• SD card
• Power supply
• VGA to HDMI converter (Optional)
• MCP3008 (ADC IC)
• A temperature sensor(LM35)
SOFTWARE REQUIRED
• Raspbian Stretch OS
• SD card Formatter
• Win32DiskImager (or) Etcher
PYTHON LIBRARIES USED
• RPi.GPIO as GPIO (To access the
GPIO Pins of
Raspberry Pi)
• Time library (For Time delay)
• Urllib2 to handle URL
using Python
programming
Module 5 - RaspberryPi Programming using Python
MRB,ISE 13
DS18B20 Temperature Sensor
The DS18B20 is a 1-wire programmable Temperature sensor from maxim integrated. It is widely
used to measure temperature in hard environments like in chemical solutions, mines or soil
etc.
The constriction of the sensor is rugged and also can be purchased with a waterproof option
making the mounting process easy. It can measure a wide range of temperature from -55°C to
+125° with a decent accuracy of ±5°C.
Each sensor has a unique address and requires only one pin of the MCU to transfer data so it
a very good choice for measuring temperature at multiple points without compromising much
of your digital pins on the microcontroller.
Module 5 - RaspberryPi Programming using Python
DS18B20 Temperature Sensor
Applications:
Measuring temperature at hard environments
Liquid temperature measurement
Applications where temperature has to be measured at multiple points
Pin Configuration:
MRB,ISE 54
No Pin
Name
Description
1 Ground Connecttothegroundof thecircuit
2 V
c
c PowerstheSensor,canbe3.3Vor5V
3 Data Thispingivesoutputthetemperaturevaluewhichcanbereadusing1-wire method
Module 5 - RaspberryPi Programming using Python
DS18B20 Temperature Sensor Pinout
15
DS18B20 Temperature Sensor
Module 5 - RaspberryPi Programming using Python
16
Connecting Raspberry Pi via SSH:
You can access the command line of a Raspberry Pi remotely from another computer or
device on the same network using SSH.The Raspberry Pi will act as a remote device: you
can connect to it using a client on another machine.
1. Set up your local network and wireless connectivity
2. Enable SSH
3. Enable SSH on a headless Raspberry Pi (add file to SD card on another machine)
4. Set up your client
Module 5 - RaspberryPi Programming using Python
17
Accessing Temperature from DS18B20 sensors:
The DS18B20 is a digital thermometer that allows to get 9-bit to 12-bit Celsius temperature measurements
(programmable resolution). The temperature conversion time depends on the resolution used. For a 9-bit
resolution it takes at most 93.75 ms and for a 12-bit resolution it takes at most 750 ms.The device is able
to measure temperatures from -55°C to +125°C and has a ±0.5°C accuracy in the range from -10°C
to +85°C.
• Additionally, it has an alarm functionality with programmable upper and lower temperature
trigger points. These thresholds are stored internally in non-volatile memory, which
means they are kept even if the device is powered off .
• The sensor communicates using the OneWire protocol, which means it only requires a pin
from a microcontroller to be connected to it. Furthermore, each sensor has a unique 64-bit
serial code, allowing multiple DS18B20 devices to function on the same OneWire bus.In
terms of power supply, the device can operate with a voltage between 3.0 V and 5.5 V,
which means it can operate with the same voltage of the ESP32 without the need for level
conversion.
Module 5 - RaspberryPi Programming using Python
18
Remote accessto RaspberryPi:
To access a Raspberry Pi (or any home computer for that matter) from outside your home network, you’d
usually need to jump through a lot of hoops, get an IP address, and tweak a few settings on your home
router. If you just need to control a few simple things on your Raspberry Pi, that’s overkill. We’re going to
outline two methods that skip all of that.
The first thing you need to do is get your Raspberry Pi set up and connected to your home network. Since
you’re exposing your Raspberry Pi to the internet, be sure you change your default password during the set
up process. Once that’s done, come back here to set up everything else.
Remote Log Into Your Raspberry Pi’s Full Operating System Using VNC Connect:
VNC has long been the best way to access any computer remotely on the same network. Recently, VNC
Connect came out to make it easy to access your Raspberry Pi from anywhere using a cloud connection.
Once it’s set up, you can access your Raspberry Pi’s graphic interface from any other computer or
smartphone using the VNC Viewer app.
Module 5 - RaspberryPi Programming using Python
RaspberryPi Interface:
19
Module 5 - RaspberryPi Programming using Python
20
RaspberryPi OS: (Not
linux)
RaspberryPi OS:
(Linux based)
RaspberryPi OS:
(Media center based)
RaspberryPi OS:
(Audio based)
1. RISCOS Pi 1. Xbean 1. OSMC 1. Volumio
2. Free BSD 2. Open SUSE 2. OpenELEC 2. Pimusixbox
3. NetBSD 3. Arc OS 3. LitreELEC 3. Runeaudio
4. Plan 9 4. Kano OS 4. Xbian
5. Haiku 5. Nard SDX 5. Rasplex

Contenu connexe

Similaire à 5 IOT MODULE 5 RaspberryPi Programming using Python.pdf

Indoor Comfort Index Monitoring System using KNN algorithm
Indoor Comfort Index Monitoring System using KNN algorithmIndoor Comfort Index Monitoring System using KNN algorithm
Indoor Comfort Index Monitoring System using KNN algorithm
Faisal Mehmood
 
ch4-Software is Everywhere
ch4-Software is Everywherech4-Software is Everywhere
ch4-Software is Everywhere
ssuser06ea42
 
Raspberry Pi 5 Made Easy For Beginners : A beginner to pro guide to DIY proje...
Raspberry Pi 5 Made Easy For Beginners : A beginner to pro guide to DIY proje...Raspberry Pi 5 Made Easy For Beginners : A beginner to pro guide to DIY proje...
Raspberry Pi 5 Made Easy For Beginners : A beginner to pro guide to DIY proje...
Lucky Gods
 
Raspberry pi robotics
Raspberry pi roboticsRaspberry pi robotics
Raspberry pi robotics
LloydMoore
 
Raspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreRaspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMoore
Benjamin Moore
 
Internet of things aktu lab file
Internet of things  aktu lab fileInternet of things  aktu lab file
Internet of things aktu lab file
Nitesh Dubey
 

Similaire à 5 IOT MODULE 5 RaspberryPi Programming using Python.pdf (20)

My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry pi
 
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
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Amity Raspberry Jam
Amity Raspberry JamAmity Raspberry Jam
Amity Raspberry Jam
 
Video conferincing
Video conferincingVideo conferincing
Video conferincing
 
Indoor Comfort Index Monitoring System using KNN algorithm
Indoor Comfort Index Monitoring System using KNN algorithmIndoor Comfort Index Monitoring System using KNN algorithm
Indoor Comfort Index Monitoring System using KNN algorithm
 
ch4-Software is Everywhere
ch4-Software is Everywherech4-Software is Everywhere
ch4-Software is Everywhere
 
Up and running with Raspberry Pi
Up and running with Raspberry PiUp and running with Raspberry Pi
Up and running with Raspberry Pi
 
Unit 3 Complete.pptx
Unit 3 Complete.pptxUnit 3 Complete.pptx
Unit 3 Complete.pptx
 
Raspberry Pi 5 Made Easy For Beginners : A beginner to pro guide to DIY proje...
Raspberry Pi 5 Made Easy For Beginners : A beginner to pro guide to DIY proje...Raspberry Pi 5 Made Easy For Beginners : A beginner to pro guide to DIY proje...
Raspberry Pi 5 Made Easy For Beginners : A beginner to pro guide to DIY proje...
 
Raspberry pi robotics
Raspberry pi roboticsRaspberry pi robotics
Raspberry pi robotics
 
Using raspberry pi to sense temperature and relative humidity
Using raspberry pi to sense temperature and relative humidityUsing raspberry pi to sense temperature and relative humidity
Using raspberry pi to sense temperature and relative humidity
 
Capstone_Project.ppt
Capstone_Project.pptCapstone_Project.ppt
Capstone_Project.ppt
 
Raspberry-Pi
Raspberry-PiRaspberry-Pi
Raspberry-Pi
 
Raspberry pi course syllabus
Raspberry pi course syllabusRaspberry pi course syllabus
Raspberry pi course syllabus
 
Raspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreRaspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMoore
 
Raspberry pi home automation idea
Raspberry pi home automation ideaRaspberry pi home automation idea
Raspberry pi home automation idea
 
Internet of things aktu lab file
Internet of things  aktu lab fileInternet of things  aktu lab file
Internet of things aktu lab file
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Build your first android things application
Build your first android things applicationBuild your first android things application
Build your first android things application
 

Plus de Jayanthi Kannan MK

Unit 2 Smart Objects _IOT by Dr.M.K.Jayanthi.pdf
Unit 2 Smart Objects _IOT  by Dr.M.K.Jayanthi.pdfUnit 2 Smart Objects _IOT  by Dr.M.K.Jayanthi.pdf
Unit 2 Smart Objects _IOT by Dr.M.K.Jayanthi.pdf
Jayanthi Kannan MK
 
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
4 IOT 18ISDE712  MODULE 4 IoT Physical Devices and End Point-Aurdino  Uno.pdf4 IOT 18ISDE712  MODULE 4 IoT Physical Devices and End Point-Aurdino  Uno.pdf
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
Jayanthi Kannan MK
 
3 IOT Part 3 IP as the IoT Network Layer Access Technologies.pdf
3 IOT Part 3 IP as the IoT Network Layer Access Technologies.pdf3 IOT Part 3 IP as the IoT Network Layer Access Technologies.pdf
3 IOT Part 3 IP as the IoT Network Layer Access Technologies.pdf
Jayanthi Kannan MK
 

Plus de Jayanthi Kannan MK (11)

1 18CS54 _Software Engineering and Testing _Introduction to CO PO _Syllabus ...
1  18CS54 _Software Engineering and Testing _Introduction to CO PO _Syllabus ...1  18CS54 _Software Engineering and Testing _Introduction to CO PO _Syllabus ...
1 18CS54 _Software Engineering and Testing _Introduction to CO PO _Syllabus ...
 
MODULE 1 Software Product and Process_ SW ENGG 22CSE141.pdf
MODULE 1 Software Product and Process_ SW ENGG  22CSE141.pdfMODULE 1 Software Product and Process_ SW ENGG  22CSE141.pdf
MODULE 1 Software Product and Process_ SW ENGG 22CSE141.pdf
 
2nd MODULE Software Requirements _ SW ENGG 22CSE141.pdf
2nd MODULE  Software Requirements   _ SW ENGG  22CSE141.pdf2nd MODULE  Software Requirements   _ SW ENGG  22CSE141.pdf
2nd MODULE Software Requirements _ SW ENGG 22CSE141.pdf
 
Unit 2 Smart Objects _IOT by Dr.M.K.Jayanthi.pdf
Unit 2 Smart Objects _IOT  by Dr.M.K.Jayanthi.pdfUnit 2 Smart Objects _IOT  by Dr.M.K.Jayanthi.pdf
Unit 2 Smart Objects _IOT by Dr.M.K.Jayanthi.pdf
 
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
4 IOT 18ISDE712  MODULE 4 IoT Physical Devices and End Point-Aurdino  Uno.pdf4 IOT 18ISDE712  MODULE 4 IoT Physical Devices and End Point-Aurdino  Uno.pdf
4 IOT 18ISDE712 MODULE 4 IoT Physical Devices and End Point-Aurdino Uno.pdf
 
3 IOT Part 3 IP as the IoT Network Layer Access Technologies.pdf
3 IOT Part 3 IP as the IoT Network Layer Access Technologies.pdf3 IOT Part 3 IP as the IoT Network Layer Access Technologies.pdf
3 IOT Part 3 IP as the IoT Network Layer Access Technologies.pdf
 
1 Unit 1 Introduction _IOT by Dr.M.K.Jayanthi Kannan (1).pdf
1 Unit 1  Introduction _IOT  by Dr.M.K.Jayanthi Kannan (1).pdf1 Unit 1  Introduction _IOT  by Dr.M.K.Jayanthi Kannan (1).pdf
1 Unit 1 Introduction _IOT by Dr.M.K.Jayanthi Kannan (1).pdf
 
ARUDINO UNO and RasberryPi with Python
 ARUDINO UNO and RasberryPi with Python ARUDINO UNO and RasberryPi with Python
ARUDINO UNO and RasberryPi with Python
 
IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...
IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...
IoT Arduino UNO, RaspberryPi with Python, RaspberryPi Programming using Pytho...
 
Introduction to Internet of Things
 Introduction to Internet of Things Introduction to Internet of Things
Introduction to Internet of Things
 
ADBMS Object and Object Relational Databases
ADBMS  Object  and Object Relational Databases ADBMS  Object  and Object Relational Databases
ADBMS Object and Object Relational Databases
 

Dernier

Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
Diya Sharma
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
imonikaupta
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 

Dernier (20)

Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOG
 
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
 

5 IOT MODULE 5 RaspberryPi Programming using Python.pdf

  • 1. Module 5 - RaspberryPi Programming using Python 1 RaspberryPi:  Raspberry Pi is the name of a series of single-board computers made by the Raspberry Pi Foundation, a UK charity that aims to educate people in computing and create easier access to computing education.  The Raspberry Pi launched in 2012, and there have been several iterations and variations released since then. The original Pi had a single-core 700MHz CPU and just 256MB RAM, and the latest model has a quad-core 1.4GHz CPU with 1GB RAM. The main price point for Raspberry Pi has always been $35 and all models have been $35 or less, including the Pi Zero, which costs just $5.
  • 2. Module 5 - RaspberryPi Programming using Python 2
  • 3. Module 5 - RaspberryPi Programming using Python 3
  • 4. Module 5 - RaspberryPi Programming using Python 4
  • 5. Module 5 - RaspberryPi Programming using Python 5 Hardware Layout: raspi-config • The Raspberry Pi configuration tool in Raspbian, allowing you to easily enable features such as the camera, and to change your specific settings such as keyboard layout config.txt • The Raspberry Pi configuration file Wireless networking • Configuring your Pi to connect to a wireless network using the Raspberry Pi 3's or Pi Zero W's inbuilt wireless connectivity, or a USB wireless dongle Wireless access point • Configuring your Pi as a wireless accesspoint using the Raspberry Pi 3 and Pi Zero W's inbuilt wireless connectivity, or a USB wireless dongle
  • 6. Module 5 - RaspberryPi Programming using Python 6 Using a proxy • Setting up your Pi to accessthe internet via a proxy server HDMI Config • Guide to setting up your HDMI device, including custom settings Audio config • Switch your audio output between HDMI and the 3.5mm jack Camera config • Installing and setting up the Raspberry Pi camera board External storage config • Mounting and setting up external storage on a Raspberry Pi
  • 7. Module 5 - RaspberryPi Programming using Python 7 Localisation • Setting up your Pi to work in your local language/time zone Default pin configuration • Changing the default pin states. Device Trees config • Device Trees, overlays, and parameters Kernel command line • How to set options in the kernel command line UART configuration • How to set up the on-board UARTS. Firmware warning icons • Description of warning icons displayed if the firmware detects issues
  • 8. Module 5 RaspberryPi Programming using Python 8 LED warning flash codes • Description of the meaning of LED warning flashes that are shown if aPi fails to boot or has to shut down Securing your Raspberry Pi • Some basic advice for making your Raspberry Pi more secure Screensaver • How to configure screen blanking/screen saver The boot folder • What it's for and what's in it
  • 9. Operating Systems on Raspberry Pi: 9 • You have a few options when it comes to interacting with the Raspberry Pi. The first and most common is to use it like you would a full desktop computer (just smaller). • This involves connecting a keyboard, mouse, and monitor. With this setup, you are likely best served by installing Raspbian with Desktop, whichgives you a full graphical user interface(GUI) to work with. • This is the best option if you want an experience similar to working with other operating systems (OS), such as Windows, macOS, or other popular Linux flavors, like Ubuntu.
  • 10. Module 5 - RaspberryPi Programming using Python 10 Programming RaspberryPi with Python: The Raspberry Pi is an amazing single board computer (SBC) capable of running Linux and a whole host of applications. Python is a beginner-friendly programming language that is used in schools, web development, scientific research, and inmany other industries.
  • 11. Module 5 - RaspberryPi Programming using Python 11 Wireless Temperature Monitoring System Using Pi: • Raspberry Pi which having inbuilt wi-fi, which makes Raspberry Pi to suitable for IoT applications, so that by using IoT technology this monitoring system works by uploading the temperature value to the Thingspeak cloud by this project you can able to learn to how to handle cloud-based application using API keys. • In this monitoring system, we used Thingspeak cloud, the cloud which is suitable to view the sensor logs in the form of graph plots. Here we created one field to monitor the temperature value, that can be reconfigurable to monitor a number of sensor values in various fields. • This basic will teach you to how to work with a cloud by using LM35 as a temperature sensor, to detect the temperature and to upload those values into the cloud.
  • 12. Module 5 - RaspberryPi Programming using Python 12 HARDWARE REQUIRED • Raspberry Pi • SD card • Power supply • VGA to HDMI converter (Optional) • MCP3008 (ADC IC) • A temperature sensor(LM35) SOFTWARE REQUIRED • Raspbian Stretch OS • SD card Formatter • Win32DiskImager (or) Etcher PYTHON LIBRARIES USED • RPi.GPIO as GPIO (To access the GPIO Pins of Raspberry Pi) • Time library (For Time delay) • Urllib2 to handle URL using Python programming
  • 13. Module 5 - RaspberryPi Programming using Python MRB,ISE 13 DS18B20 Temperature Sensor The DS18B20 is a 1-wire programmable Temperature sensor from maxim integrated. It is widely used to measure temperature in hard environments like in chemical solutions, mines or soil etc. The constriction of the sensor is rugged and also can be purchased with a waterproof option making the mounting process easy. It can measure a wide range of temperature from -55°C to +125° with a decent accuracy of ±5°C. Each sensor has a unique address and requires only one pin of the MCU to transfer data so it a very good choice for measuring temperature at multiple points without compromising much of your digital pins on the microcontroller.
  • 14. Module 5 - RaspberryPi Programming using Python DS18B20 Temperature Sensor Applications: Measuring temperature at hard environments Liquid temperature measurement Applications where temperature has to be measured at multiple points Pin Configuration: MRB,ISE 54 No Pin Name Description 1 Ground Connecttothegroundof thecircuit 2 V c c PowerstheSensor,canbe3.3Vor5V 3 Data Thispingivesoutputthetemperaturevaluewhichcanbereadusing1-wire method
  • 15. Module 5 - RaspberryPi Programming using Python DS18B20 Temperature Sensor Pinout 15 DS18B20 Temperature Sensor
  • 16. Module 5 - RaspberryPi Programming using Python 16 Connecting Raspberry Pi via SSH: You can access the command line of a Raspberry Pi remotely from another computer or device on the same network using SSH.The Raspberry Pi will act as a remote device: you can connect to it using a client on another machine. 1. Set up your local network and wireless connectivity 2. Enable SSH 3. Enable SSH on a headless Raspberry Pi (add file to SD card on another machine) 4. Set up your client
  • 17. Module 5 - RaspberryPi Programming using Python 17 Accessing Temperature from DS18B20 sensors: The DS18B20 is a digital thermometer that allows to get 9-bit to 12-bit Celsius temperature measurements (programmable resolution). The temperature conversion time depends on the resolution used. For a 9-bit resolution it takes at most 93.75 ms and for a 12-bit resolution it takes at most 750 ms.The device is able to measure temperatures from -55°C to +125°C and has a ±0.5°C accuracy in the range from -10°C to +85°C. • Additionally, it has an alarm functionality with programmable upper and lower temperature trigger points. These thresholds are stored internally in non-volatile memory, which means they are kept even if the device is powered off . • The sensor communicates using the OneWire protocol, which means it only requires a pin from a microcontroller to be connected to it. Furthermore, each sensor has a unique 64-bit serial code, allowing multiple DS18B20 devices to function on the same OneWire bus.In terms of power supply, the device can operate with a voltage between 3.0 V and 5.5 V, which means it can operate with the same voltage of the ESP32 without the need for level conversion.
  • 18. Module 5 - RaspberryPi Programming using Python 18 Remote accessto RaspberryPi: To access a Raspberry Pi (or any home computer for that matter) from outside your home network, you’d usually need to jump through a lot of hoops, get an IP address, and tweak a few settings on your home router. If you just need to control a few simple things on your Raspberry Pi, that’s overkill. We’re going to outline two methods that skip all of that. The first thing you need to do is get your Raspberry Pi set up and connected to your home network. Since you’re exposing your Raspberry Pi to the internet, be sure you change your default password during the set up process. Once that’s done, come back here to set up everything else. Remote Log Into Your Raspberry Pi’s Full Operating System Using VNC Connect: VNC has long been the best way to access any computer remotely on the same network. Recently, VNC Connect came out to make it easy to access your Raspberry Pi from anywhere using a cloud connection. Once it’s set up, you can access your Raspberry Pi’s graphic interface from any other computer or smartphone using the VNC Viewer app.
  • 19. Module 5 - RaspberryPi Programming using Python RaspberryPi Interface: 19
  • 20. Module 5 - RaspberryPi Programming using Python 20 RaspberryPi OS: (Not linux) RaspberryPi OS: (Linux based) RaspberryPi OS: (Media center based) RaspberryPi OS: (Audio based) 1. RISCOS Pi 1. Xbean 1. OSMC 1. Volumio 2. Free BSD 2. Open SUSE 2. OpenELEC 2. Pimusixbox 3. NetBSD 3. Arc OS 3. LitreELEC 3. Runeaudio 4. Plan 9 4. Kano OS 4. Xbian 5. Haiku 5. Nard SDX 5. Rasplex