0% found this document useful (0 votes)
90 views11 pages

Iot Lab

The document reports on two experiments conducted in an Internet of Things laboratory. The first experiment involved using a Raspberry Pi to monitor temperature and humidity using a DHT11 sensor and displaying the results on a PC. The second experiment measured air pressure using an ESP32 microcontroller and BMP180 pressure sensor module. Both experiments logged sensor data to monitor various environmental parameters as part of learning about IoT systems and applications.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views11 pages

Iot Lab

The document reports on two experiments conducted in an Internet of Things laboratory. The first experiment involved using a Raspberry Pi to monitor temperature and humidity using a DHT11 sensor and displaying the results on a PC. The second experiment measured air pressure using an ESP32 microcontroller and BMP180 pressure sensor module. Both experiments logged sensor data to monitor various environmental parameters as part of learning about IoT systems and applications.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

BELAGAVI – 590018

An Internet of Things Laboratory Report


Submitted in partial fulfillment of the requirements for the degree
of BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE &
ENGINEERING Subject: INTERNET OF
THINGS [18CS81]
Submitted By
UNNATI K (4JK18CS061)

Under the guidance of


Mrs. Archana S
Assistant
Professor,
Department of Computer Science & Engineering

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING


A. J. INSTITUTE OF ENGINEERING &
TECHNOLOGY NH-66, KOTTARA CHOWKI,
MANGALURU – 575006
2021 - 2022
Internet of Things Lab Report

INDEX

1 Temperature and Humidity Monitoring with Raspberry Pi

2 Pressure sensor

Department of, AJIET, Mangaluru


Internet of Things Lab Report

HARDWARE LIST

SL.No Components

1 Arduino uno
2 HC-SR04 Ultrasonic Sensor
3 DHT22 Temperature Sensor
4 Bread Board
5 Connecting Wires
6 LCD display

Department of, AJIET, Mangaluru


Internet of Things Lab Report

Experiment No 1: Temperature and Humidity Monitoring with Raspberry Pi

Aim:
To display the temperature and humidity in pc screen.

Objective:
Raspberry Pi 3 Model B was released in February 2016 with a 1.2 GHz 64-bit quad core processor,
on-board 802.11n Wi-Fi, Bluetooth and USB boot capabilities. An SD card inserted into the slot on
the board acts as the hard drive for the Raspberry Pi. It is powered by USB and the video output can
be hooked up to a traditional RCA TV set, a more modern monitor, or even a TV using the HDMI
port. Raspbian comes preloaded with Python, the official programming language of the Raspberry Pi
and IDLE 3, a Python Integrated Development Environment.

Components required:
Sl. No Components Required QTY
1 Connecting wires 1

2 Micro USB cable 1


3 PC 1
4 DTH11 Sensor 1
5 Raspberry pi 1

Circuit diagram:

Department of, AJIET, Mangaluru


Internet of Things Lab Report

Procedure:

1. Make the connections as per the circuit diagram.


2. Check the ground connection precisely before switching on the power supply.
3. Connect Micro USB Cable to PC.

4. Write the Code in Python or C/C++ accordingly.


5. Run the code through Arduino IDE or uPycraft IDE and Observe the output.

Source Code:
import RPi.GPIO as GPIO
import dht11
import time

# initialize GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
#GPIO.cleanup()

# read data using Pin GPIO18


instance = dht11.DHT11(pin=12)
while True:
result = instance.read()
if result.is_valid():

Serial.print("Humidity: ");Serial.print(hum);
Serial.print(" %, Temp: "); Serial.print(temp);
Serial.println(" Celsius");
time.sleep(1)

Department of, AJIET, Mangaluru


Internet of Things Lab Report

Output:

Applications:
A humidity sensor (or hygrometer) senses, measures and reports both moisture and air temperature. Relative
humidity becomes an important factor, when looking for comfort. A sample humidity sensor.

Conclusion:
Successfully implemented & we can observe temperature and humidity on pc display.

Department of, AJIET, Mangaluru


Internet of Things Lab Report

Experiment No 2: PRESSURE SENSOR

Aim:
To know the amount pressure using BMP180 with the help of ESP32.

Objective:

In this project we will learn about amount of Pressure Using ESP32 & Pressure Sensor
Module(BMP180). The BMP180 is a digital pressure sensor and it measures the absolute pressure of
the air around it. It features a measuring range from 300 to 1100hPa with an accuracy down to 0.02
hPa. ESP32 is a series of low-cost, low-power system on a chip microcontrollers with integrated
Wi- Fi and dual-mode Bluetooth.

Components required:

Sl. No Components Required QTY


1 Breadboard 1
2 ESP32 1
3 Connecting wires 1
4 USB Cable 1

Circuit diagram:

Department of, AJIET, Mangaluru


Internet of Things Lab Report

Procedure:

1. Make the connections as per the circuit diagram.


2. Check the ground connection precisely before switching on the power supply.
3. Connect Micro USB Cable to PC .
4. Write the Code in Python or C/C++ accordingly.
5. Run the code through Arduino IDE or uPycraft IDE and Observe the output.
Source Code:
#include <Wire.h>
#include <Adafruit_BMP085.h>
Adafruit_BMP085 bmp;
void setup() {
Serial.begin(960
0);
if (!
bmp.begin()) {
Serial.println("Could not find a valid BMP085/BMP180 sensor, check
wiring!"); while (1) {}
}
}
void loop() {
Serial.print("Temperature = ");
Serial.print(bmp.readTemperatu
re()); Serial.println(" *C");
Serial.print("Pressure = ");
Serial.print(bmp.readPressure())
; Serial.println(" Pa");
Serial.print("Approx. Altitude =
");
Serial.print(bmp.readAltitude());
Serial.println(" Humidity ");
Serial.print("Pressure at sealevel (calculated) =
"); Serial.print(bmp.readSealevelPressure());

Serial.print(bmp.readAltitude(1020
00)); Serial.println();
Department of, AJIET, Mangaluru
Internet of Things Lab Report

delay(500);
}

Output:

Applications:
1 . We will measure the amount of pressure applied.

2. If the increases then the buzzer rings.


Conclusion:
Hence the pressure sensor calculates the amount of pressure using barometer(BMP180) with the
help of ESP32.

Department of, AJIET, Mangaluru


Internet of Things Lab Report

Department of, AJIET, Mangaluru


Internet of Things Lab Report

Department of, AJIET, Mangaluru

You might also like