Practical 11 1
Practical 11 1
-----------------------------------------------------------------------------------------------------------------------------------------
Assignment No. 03 Date of Performance: ………………….………………
-----------------------------------------------------------------------------------------------------------------------------------------
Title: Open source prototype platform- Raspberry-Pi/Beagle board/Arduino - Simple program digital
read/write using LED and Switch - Analog read/write using sensor and actuators.
-----------------------------------------------------------------------------------------------------------------------------------------
Objective: To get knowledge for communicating with objects using sensors and actuators.
-----------------------------------------------------------------------------------------------------------------------------------------
Theory:
Requirements:
1. Raspberry Pi3 Kit
2. Breadboards
3. LEDs
4. Jumper wires
SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad Dist. Nashik (MS, India)
Department of Information Technology BE – Internet of Things Laboratory
Algorithm:
SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad Dist. Nashik (MS, India)
Department of Information Technology BE – Internet of Things Laboratory
1. Connect GPIO 18 (Pin No. 12) of Raspberry Pi to the Anode of the LED through connecting
jumper wires and Breadboard.
2. Connect Ground of Raspberry Pi to Cathode of the LED through connecting wires and
breadboard.
3. Now power up your Raspberry Pi and boot.
4. Open terminal and type nano blinkled.py
5. It will open the nano editor. Use following pseudo code in the python to blink LED and save
An application to read the environment temperature and humidity & display it.
In this assignment, we will learn how to find environment temperature and humidity using DHT11
sensor and Raspberry Pi.
SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad Dist. Nashik (MS, India)
Department of Information Technology BE – Internet of Things Laboratory
Requirements:
1. Raspberry Pi3 Kit
2. Breadboards
3. DHT11 Sensor
4. Jumper wires
Algorithm:
1. Connect GPIO 18 (Pin No. 12) of Raspberry Pi to the Data pin of DHT11 sensor through
connecting jumper wires and Breadboard.
2. Connect Power (5V) and Ground of Raspberry Pi to DHT11 sensor through connecting wires
and breadboard.
3. Now power up your Raspberry Pi and boot.
4. Download Adafruit_Python_DHT.tar.gz package
5. Open terminal and type tar -xvzf Adafruit_Python_DHT.tar.gz command to extract Adafruit
package.
6. In the same terminal, type nano temp.py
7. It will open the nano editor. Use following pseudo code in the python to blink LED and save
while True:
hum, temp = dht.read_retry(11,18)
print "Temp: ", temp
print "Hum: ", hum
time.sleep(1)
SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad Dist. Nashik (MS, India)
Department of Information Technology BE – Internet of Things Laboratory
-----------------------------------------------------------------------------------------------------------------------------------------
Conclusion: - Thus, we have studied how to monitor LEDs and measure temperature and humidity in
the environment using DHT11 sensor and Raspberry Pi 3.
-----------------------------------------------------------------------------------------------------------------------------------------
SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad Dist. Nashik (MS, India)