0% found this document useful (0 votes)
2 views

Rpi

The document provides an overview of Raspberry Pi and its applications in embedded systems and the Internet of Things (IoT). It covers the features and functionalities of various Raspberry Pi models, GPIO usage, and practical programming examples using Python. Additionally, it includes hands-on sessions for projects like LED blinking and home automation using the Telegram app.

Uploaded by

archanabhide
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Rpi

The document provides an overview of Raspberry Pi and its applications in embedded systems and the Internet of Things (IoT). It covers the features and functionalities of various Raspberry Pi models, GPIO usage, and practical programming examples using Python. Additionally, it includes hands-on sessions for projects like LED blinking and home automation using the Telegram app.

Uploaded by

archanabhide
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

RASPBERRY PI Archana Bhide

CONTENTS
Brief about Embedded Systems
Introduction to “Internet of Things”
Raspberry Pi – Introduction to Rpi as SOC
Raspberry Pi – GPIO
Sensors and Actuators with Rpi
Python Programming
Hands ON sessions
 LED Blinking
 Home Automation using Telegram App
 RPi Oscilloscope
EMBEDDED SYSTEMS
Embedded systems –
 Combination of hardware and software designed to perform a dedicated task
 Components –
 Core – Processor / Controller
 Sensors – Input devices
 Actuators – Output devices
 Applications
 Examples
 Types –
 Domain specific (Partial functionality) - Automobile
 Application specific (Full Functionality) – Washing Machine
INTERNET OF THINGS
Connecting Embedded Systems to the Internet
Gathering real time data
Real Time Operating Systems
Use of data for analysis, prediction algorithms, in data analytics.
IOT and AI
Designing prototypes
RASPBERRY PI - INTRODUCTION
The Raspberry Pi is a series of small single-board computers developed in the United
Kingdom by the Raspberry Pi Foundation to promote teaching of basic computer
science in schools and in developing countries.

Rpi 4 Model B Rpi 3 Model B


RPI FUNCTIONING
Features
Operating system FreeBSD
Linux
NetBSD
OpenBSD
Plan 9
RISC OS
Windows 10 ARM64
[3]
Windows 10 IoT Core
System-on-chip used Broadcom BCM2711
CPU 1.5 GHz 64/32-bit quad-core ARM
Cortex-A72
Memory 1, 2, or 4 GB LPDDR4-3200 RAM
Storage MicroSDHC slot
Graphics Broadcom VideoCore VI 500 MHz
Power 5V 3A (for full power delivery to USB
devices)
Website raspberrypi.org
VERSIONS
Family Model Form Factor Ethernet Wireless GPIO Released Discontinued

B Standard(85. Yes 2012 Yes


26-pin
A 60 × No 2013 Yes
B+ 56.5 mm) Yes 2014
Raspberry Pi 1 No
Compact(65
A+ No 2014
× 56.5 mm)

Raspberry Pi 2 B Standard Yes No 2015

Raspberry Pi Zero Zero(65 × No 40-pin 2015


No
Zero W/WH 30 mm) Yes 2017
B Standard Yes 2016
Raspberry Pi 3 A+ Compact No Yes 2018
B+ Standard Yes 2018

Raspberry Pi 4 B (1GB) Standard Yes Yes 2019


GPIO
PYTHON PROGRAMMING
Python is an interpreted, high-level, general-purpose programming language.
Created by Guido van Rossum and first released in 1991,
Python's design philosophy emphasizes code readability with its notable use of
significant whitespace.
PRACTICAL 0 - INTRODUCTION
Introduction to Rpi – ABOUT
Rpi model 3 B
GPIO
Raspbian OS
Steps of installation of Rasbian OS on SD Card
Static IP given to Rpi – 169.254.219.240
Create a file without extension - SSH
PRACTICAL 1- LEDBLINK LED Positive

GPIO Pins 7 and 6 (GND)

Connections –
 Rasperry Pi GPIO (using pin 7) – LED (positive terminal)
 LED negative terminal – Resistance (current limiting) one
side
 Resistance other side – GND pin Rpi. (using Pin 6)

LED Negative
PYTHON CODE
import RPi.GPIO as GPIO

from time import sleep

GPIO.setwarnings(False)

GPIO.setmode(GPIO.BOARD)

GPIO.setup(7, GPIO.OUT, initial = GPIO.LOW

while True:
GPIO.output(GPIO.HIGH)
print(“LED on”)
sleep(1)
GPIO.output(GPIO.LOW)
print(“LED off”)
sleep(1)
PYTHON INTERFACE
OUTPUT ON PYTHON SHELL
ACTUAL OUTPUT
BLINK ALTERNATE LEDS
OUTPUT ON PYTHON SHELL
ACTUAL OUTPUT
USING PUSH BUTTON TO CONTROL LED
OUTPUT ON PYTHON SHELL
ACTUAL OUTPUT
TELEGRAM BOT TO CONTROL RASPBERRY PI
An Internet bot, web robot, robot or simply bot, is a software application that runs
automated tasks over the Internet. Typically, bots perform tasks that are simple and
repetitive much faster than a person could.
- wikiperia
share data (files/photos/videos/audios/text) between Raspberry Pi and our Mobile
phone through a popular chat application called Telegram.
Telegram is a chat based application available in play store for Android (also
available for Iphone and windows) that is very similar to Whatsapp.
RPI AS BOT
Telegram app
One special features of this application is that they support bots.
Meaning this smart phone application can not only be used by Humans but also by
machine.
In our case the machine will be Raspberry Pi. Once you train Raspberry Pi on how to
act as a bot, anyone (if you make it public) can chat with your Raspberry Pi like
chatting to any normal person and even share Photos Pictures Documents and Audio
files.
TO MAKE RPI TELEGRAM BOT
Components needed
 Raspberry Pi connected to Internet.
 A mobile with Telegram Application installed.
 Reference - circuitdigest

You might also like