RaspberryPi Boards
▪ To view the demo of various components of Raspberry Pi and Setting up Raspberry Pi Linux
environment , watch my lecture video at:
[Link] (1).mp4
and RaspberryPi_PhysicalDesign_IoT_Part2.mp4
Dr Sumalatha Aradhya, Dept of CSE, SIT,
1
Tumakuru
Linux On Raspberry
Flavors of Linux:
•Raspbian
•Arch
•Pidora
•RaspBMC
•OpenELEC
•RISC OS
Dr Sumalatha Aradhya, Dept of CSE, SIT,
2
Tumakuru
Raspberry Pi GPIO Headers
Dr Sumalatha Aradhya, Dept of CSE, SIT,
3
Tumakuru
RaspberryPi Interfaces
❑Serial : Receive (Rx) and Transmit(Tx) pins for communication with serial interface
❑ SPI: Synchronous serial data protocol.
❑ MISO, MOSI, SCK, CE0, CE1
❑ I2C: To connect to hardware modules.
❑Allows synchronous data transfer between SDA and SCL
Dr Sumalatha Aradhya, Dept of CSE, SIT,
4
Tumakuru
Programming RaspberryPi with Python
1. Controlling LED with Raspberry Pi:
Dr Sumalatha Aradhya, Dept of CSE, SIT,
Let’s look into example: 5
Tumakuru
Programming RaspberryPi with Python
1. Controlling LED with Raspberry Pi:
Dr Sumalatha Aradhya, Dept of CSE, SIT,
Let’s look into example: 6
Tumakuru
Programming RaspberryPi with Python
2. Switching LED On/Off from Raspberry Pi:
Let’s look into example:
3. Sending email when Button pressed
Let’s look into example:
Visit:
[Link]
and ProgrammingRPiWithPython_part4.mp4
Dr Sumalatha Aradhya, Dept of CSE, SIT,
7
Tumakuru
Programming RaspberryPi with Python
2. Switching LED On/Off from Raspberry Pi:
Dr Sumalatha Aradhya, Dept of CSE, SIT,
8
Tumakuru
Programming RaspberryPi with Python
3. Sending email when Button pressed
Dr Sumalatha Aradhya, Dept of CSE, SIT,
9
Tumakuru
Programming RaspberryPi with Python
4. Interfacing IR Sensor with Raspberry Pi, Let’s look into example:
Dr Sumalatha Aradhya, Dept of CSE, SIT,
10
Tumakuru
Programming RaspberryPi with Python
▪ An assignment / exercise for you all:
4. Interfacing Light Sensor with Raspberry Pi
Coming up Next: CLOUD STORAGE MODELS and COMMUNICATION APIs
1. WAMP – AutoBahn for IoT
2. Xively Cloud for IoT
3. Python Web Application Framework – Django
4. Designing RESTful web API
5. Amazon web services for IoT
6. SkyNet IoT Messaging Platform
Dr Sumalatha Aradhya, Dept of CSE, SIT,
11
Tumakuru