Rpi
Rpi
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.
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
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
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