0% found this document useful (0 votes)
172 views21 pages

List of Lab Experiments: Department of Electronics & Telecommunication Engg. SUBJECT: Internet of Things

The document describes 8 experiments on Internet of Things (IoT) projects using Arduino Uno and Raspberry Pi boards. The experiments include studying different IoT boards and platforms, and implementing mini IoT projects for weather monitoring, light control, building automation, irrigation, and more. The aim is to familiarize students with hardware and software used in common IoT applications.

Uploaded by

Amit Sheoran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
172 views21 pages

List of Lab Experiments: Department of Electronics & Telecommunication Engg. SUBJECT: Internet of Things

The document describes 8 experiments on Internet of Things (IoT) projects using Arduino Uno and Raspberry Pi boards. The experiments include studying different IoT boards and platforms, and implementing mini IoT projects for weather monitoring, light control, building automation, irrigation, and more. The aim is to familiarize students with hardware and software used in common IoT applications.

Uploaded by

Amit Sheoran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION ENGG.

SUBJECT: Internet Of things

List of Lab Experiments

Expt. TITLE OF EXPERIMENT Date of Date of Remark Sign


No.. Performance Checking
1 Study of different boards used
in IoT.
2 Study of different platforms
used in IoT.
Implementation of a mini project
3 on IoT as Weather Monitoring
System using Arduino Uno board.
Implementation of a mini project
4 on IoT as Automated Light Control
system using Arduino Uno board.
Implementation of a mini project
5 on IoT as Building System using
Arduino Uno board.
Implementation of a mini project
6 on IoT as Smart Irrigation System
using Arduino Uno board.
Implementation of a mini project
7 on IoT as Water Flow Monitoring
System using Arduino Uno board.
Implementation of a mini project
8 on IoT as Weather Monitoring
System using Raspberry pi
module.

Faculty In charge

Army Institute of Technology, BE E&Tc, IoT 2020-21


ARMY INSTITUTE OF TECHNOLOGY, PUNE

DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION

SUBJECT: INTERNET OF THINGS

EXPERIMENT NO: 1

TITLE: Different Boards used in IoT


AIM: Study of different Boards used in IoT

Name of the Student Amit Kumar

Roll No 1408

THEORY:
I. Name of IoT Board: NodeMCU ESP8266 development board
➢ Introduction
The NodeMCU ESP8266 development board comes with the ESP-12E module
containing ESP8266 chip having Tensilica Xtensa 32-bit LX106 RISC microprocessor.
This microprocessor supports RTOS and operates at 80MHz to 160 MHz adjustable
clock frequency. NodeMCU has 128 KB RAM and 4MB of Flash memory to store data
and programs. Its high processing power with in-built Wi-Fi / Bluetooth and Deep
Sleep Operating features make it ideal for IoT projects.
NodeMCU can be powered using Micro USB jack and VIN pin (External Supply Pin). It
supports UART, SPI, and I2C interface.
➢ Features/Services
• 802.11 b / g / n
• Microcontroller: Tensilica 32-bit RISC CPU Xtensa LX106
• Operating Voltage: 3.3V
• Input Voltage: 7-12V
• Digital I/O Pins (DIO): 16
• Analog Input Pins (ADC): 1
• UARTs: 1
• SPIs: 1
• I2Cs: 1
• Flash Memory: 4 MB
Army Institute of Technology, BE E&Tc, IoT 2020-21
• SRAM: 64 KB
• Clock Speed: 80 MHz
• USB-TTL based on CP2102 is included onboard, Enabling Plug n Play
• PCB Antenna
• Small Sized module to fit smartly inside your IoT projects
➢ Cost - ₹ 399
➢ Pros & Cons
Cons-
• Does not have inbuilt Bluetooth
• Less flash memory
Pros-
• Cheaper than ESP32
• Easy to program
• Low power consumption
➢ Website- https://components101.com/development-boards/nodemcu-esp8266-
pinout-features-and-datasheet
➢ Applications-
• Home Automation
• Smart Plug and lights
• Mesh Network
• Industrial Wireless Control
• Baby Monitors
• IP Cameras
• Sensor Networks
• Wearable Electronics
II. Name of IoT Board: Raspberry Pi 4 Model B
➢ Introduction

Raspberry Pi 4 Model B is the latest product in the popular Raspberry Pi range of


computers. It offers ground-breaking increases in processor speed, multimedia
performance, memory, and connectivity compared to the prior-generation Raspberry
Pi 3 Model B+, while retaining backwards compatibility and similar power
consumption. For the end user, Raspberry Pi 4 Model B provides desktop performance
comparable to entry-level x86 PC systems. Key features include a high-performance
64-bit quad-core processor, dual-display support at resolutions up to 4K via a pair of
micro-HDMI ports, hardware video decode at up to 4Kp60, up to 8GB of RAM, dual-
Army Institute of Technology, BE E&Tc, IoT 2020-21
band 2.4/5.0 GHz wireless LAN, Bluetooth 5.0, Gigabit Ethernet, USB 3.0, and PoE
capability (via a separate PoE HAT add-on). The dual-band wireless LAN and Bluetooth
have modular compliance certification, allowing the board to be designed into end
products with significantly reduced compliance testing, improving both cost and time
to market

➢ Features/Services
• Processor: Broadcom BCM2711, quad-core Cortex-A72 (ARM v8) 64-bit SoC @
1.5GHz Memory: 2GB, 4GB or 8GB LPDDR4 (depending on model)
• Connectivity: 2.4 GHz and 5.0 GHz IEEE 802.11b/g/n/ac wireless LAN, Bluetooth
5.0, BLE Gigabit Ethernet 2 × USB 3.0 ports 2 × USB 2.0 ports.
• GPIO: Standard 40-pin GPIO header (fully backwards-compatible with previous
boards)
• Video & sound: 2 × micro-HDMI ports (up to 4Kp60 supported) 2-lane MIPI DSI
display port 2-lane MIPI CSI camera port 4-pole stereo audio and composite video
port
• Multimedia: H.265 (4Kp60 decode); H.264 (1080p60 decode, 1080p30 encode);
OpenGL ES, 3.0 graphics
• SD card support: Micro SD card slot for loading operating system and data storage
• Input power: 5V DC via USB-C connector (minimum 3A1 ) 5V DC via GPIO header
(minimum 3A1 ) Power over Ethernet (PoE)–enabled (requires separate PoE HAT)
• Environment: Operating temperature 0–50ºC

➢ Cost - ₹ 3,500 – 8,000 depending on variant


➢ Pros & Cons
Pros:
• Dual HDMI support
• Multiple input power sources
• Several wireless connectivity options

Cons:

• May overheat
• Connecting too many devices may cause overload
• Main design is that of a computer
➢ Website- https://www.raspberrypi.org/

Army Institute of Technology, BE E&Tc, IoT 2020-21


➢ Applications-
• can run servers
• can run several programming languages
• can carry out GPIO related tasks
• works as a development board
• can be used to test small circuits
• uses great raw processing power

CONCLUSION:
In this experiment, we have studied about different Wi-Fi modules and development boards.
We have also compared their features, costs, specifications, and applications.

Army Institute of Technology, BE E&Tc, IoT 2020-21


ARMY INSTITUTE OF TECHNOLOGY, PUNE

DEPARTMENT OF ELECTRONICS &TELECOMMUNICATION

SUBJECT: INTERNET OF THINGS

EXPERIMENT NO: 2

TITLE: Different Platforms used in IoT


AIM: Study of different Platforms used in IoT

Name of the Student Amit Kumar

Roll No 1408

THEORY:
I. Name of IoT Platform: Google Cloud IoT Core
➢ Introduction
Cloud IoT Core is a fully managed service that allows you to connect, manage, and
ingest data from millions of globally dispersed devices easily and securely. Cloud IoT
Core, in combination with other services on Google Cloud IoT platform, provides a
complete solution for collecting, processing, analysing, and visualising IoT data in real
time to support improved operational efficiency.
7 companies reportedly use Google Cloud IoT Core in their tech stacks, including
hacker. Works, DevicePilot, and ONKÖL.
➢ Features/Services
• End-to-end security
• Single global system
• Out-of-box data insights
• Device deployment at scale
• Role-level access control
• Fully managed and scalable
➢ Cost
Google Cloud Platform pricing is available in the following plans:
FREE TRIAL
QUOTE-BASED PLAN- Contact vendor
➢ Pros & Cons
Since GCP is built on the Google infrastructure, there are a few facilitations and
challenges that follow.

Army Institute of Technology, BE E&Tc, IoT 2020-21


Other than issues with data security raised by concerned audiences, the most
significant obstacle from the developer’s perspective would be the lack of elastic search
in GCP.
They are, however, compensating with user-friendly communication and interface, and
provide features to help manage mentioned challenges.
➢ Website- https://cloud.google.com/iot-core
➢ Applications
• Predictive Maintenance
• Real time tracking
• Logistics and supply chain management
• Smart cities and buildings
II. Name of IoT Platform: IBM Watson IOT
➢ Introduction
From chip to app to cloud, we may use Watson APIs, visual dashboards, rich developer
resources and industry-leading security to accelerate enterprise IoT insight.
➢ Features/Services
• AI and Analytics.
• Domain expertise.
• Provides flexible solutions.
• Provides security.
• Captures real-time data.
• Provides analytics service as an add-on.

➢ Cost
• Starts at $500 per instance/month.
➢ Pros & Cons
Pros:
• Vast set of resources and features available
• Processes unstructured data
Cons:
• Customer support has several issues
• Does not process structured data directly
• High switching costs
• Only supports English

Army Institute of Technology, BE E&Tc, IoT 2020-21


CONCLUSION:
In this experiment, we have studied about different IoT cloud Platforms. We have compared
their features, cost, advantages, disadvantages, and applications.

Army Institute of Technology, BE E&Tc, IoT 2020-21


ARMY INSTITUTE OF TECHNOLOGY, PUNE

DEPARTMENT OF ELECTRONICS &TELECOMMUNICATION

SUBJECT: INTERNET OF THINGS

EXPERIMENT NO: 3

TITLE: Smart Weather Monitoring System


AIM: Implementation of a mini project on IoT Smart Weather Monitoring system

Name of the Student Amit Kumar

Roll No 1408

HARDWARE REQUIREMENTS:
▪ Arduino Uno board
▪ Breadboard
▪ Connecting Wires
▪ Resistor
▪ LM35 temperature sensor
▪ Potentiometer
▪ 16x2 LCD

SOFTWARE:
• Tinkercad

PROCEDURE:
1. Open Tinkercad.
2. Connect temperature sensor LM35 to analogue pin A0.
3. Make all the connections of LCD as per the diagram.
4. Write the code and start the simulation.
5. Observe the change in temperature on LCD by manually varying the temperature of
LM35.

SIMULATION RESULTS:
Code:
#include <LiquidCrystal.h>

const int LM35 = A0;

LiquidCrystal lcd(2, 3, 4, 5, 6, 7);

void setup(){
Serial.begin(9600);
lcd.begin(16, 2);
delay(2000);
Army Institute of Technology, BE E&Tc, IoT 2020-21
lcd.clear();
lcd.print("Temp= ");
}

void loop() {

int value = analogRead(LM35);


float Temperature = value * 500.0 / 1023.0;
lcd.setCursor(6,0);
lcd.print(Temperature);
lcd.print(" degC");
lcd.setCursor(11,1);

Simulation Diagram:

CONCLUSION:
In this experiment, we have studied about the working of weather monitoring
system by simulating a temperature sensor and displaying the temperature on LCD.

Army Institute of Technology, BE E&Tc, IoT 2020-21


ARMY INSTITUTE OF TECHNOLOGY, PUNE

DEPARTMENT OF ELECTRONICS &TELECOMMUNICATION

SUBJECT: INTERNET OF THINGS

EXPERIMENT NO: 4

TITLE: Smart Automated Light Control System


AIM: Implementation of a mini project on IoT Smart Automated Light Control System

Name of the Student Amit Kumar

Roll No 1408

HARDWARE REQUIREMENTS:
▪ Arduino Uno board
▪ LED
▪ Resistors
▪ LDR Sensor
SOFTWARE:
• Tinkercad

PROCEDURE:
1. Open Tinkercad.
2. Connect positive pin of LED at pin number 10 of Arduino.
3. Make the connection of LDR as per the diagram.
4. Write the code and start the simulation.
5. Change the value of LDR and observe the Output.
6. After a certain threshold of LDR, the LED will start glowing.
SIMULATION RESULTS:
Code:
const int ledPin = 10;
const int ldrPin = A0;

void setup()
{
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
pinMode(ldrPin, INPUT);
}

Army Institute of Technology, BE E&Tc, IoT 2020-21


void loop()
{
int ldr = analogRead(ldrPin);
if (ldr <=500)
digitalWrite(ledPin, HIGH);
else
digitalWrite(ledPin, LOW);
Serial.println(ldr);
}

Simulation Diagram:

CONCLUSION
In this experiment, we have successfully implemented and tested Automated Light control
System using LDR sensor. The code was verified by successfully simulated in Tinkercad.

Army Institute of Technology, BE E&Tc, IoT 2020-21


ARMY INSTITUTE OF TECHNOLOGY,PUNE

DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION

SUBJECT: INTERNET OF THINGS

EXPERIMENT NO: 5
TITLE: Smart Building System
AIM: Implementation of a mini project on IoT Smart Building System

Name of the Student Amit Kumar

Roll No 1408

HARDWARE REQUIREMENTS:
▪ Arduino Uno board
▪ ESP8266 Wi-Fi Module
▪ Breadboard
▪ Connecting Wires
▪ 1K resistor,
▪ LDR sensor
▪ Ultrasonic sensor
▪ Two cables red and black colour
▪ LEDs
▪ L293D motor driver
▪ Servo Motor
▪ DC Motor
▪ LM35 temperature sensor
SOFTWARE:
• Tinkercad

PROCEDURE:
1. Open Tinkercad.
2. Temperature sensor is connected to analogue pin A0.
3. Ultrasonic sensor is connected to digital pin-7 of Arduino.
4. Servo motor is connected to digital pin-8 of Arduino.
5. LDR sensor is connected to digital pin-2 of Arduino.
6. The DC motor is controlled via motor driver L2930, which is controlled via digital
pin-11,12,13.
7. All these sensors coordinate with each other to automate the home.
8. Whenever someone comes close to the gate the ultrasonic sensor detects the distance
and opens the door (by moving servo motor).
9. Whenever there is any movement in front of the LDR sensor it makes all LEDs to
glow and signify some motion is detected in that area.
Army Institute of Technology, BE E&Tc, IoT 2020-21
10. The Temperature sensor data is used to control speed of fan (DC motor).

SIMULATION RESULTS:
Code:
#include<Servo.h>
const int pingPin = 7;
int servoPin = 8;

Servo servo1;

void setup() {
// initialise serial communication:
Serial.begin(9600);
servo1.attach(servoPin);
pinMode(2,INPUT);
pinMode(4,OUTPUT);
pinMode(11,OUTPUT);
pinMode(12,OUTPUT);
pinMode(13,OUTPUT);
pinMode(A0,INPUT);
digitalWrite(2,LOW);
digitalWrite(11,HIGH);

void loop() {

long duration, inches, cm;

pinMode(pingPin, OUTPUT);
digitalWrite(pingPin, LOW);
delayMicroseconds(2);
digitalWrite(pingPin, HIGH);
delayMicroseconds(5);
digitalWrite(pingPin, LOW);

// The same pin is used to read the signal from the PING))): a HIGH pulse
// whose duration is the time (in microseconds) from the sending of the ping
// to the reception of its echo off of an object.
pinMode(pingPin, INPUT);
duration = pulseIn(pingPin, HIGH);

// convert the time into a distance


inches = microsecondsToInches(duration);
cm = microsecondsToCentimeters(duration);

//Serial.print(inches);
//Serial.print("in, ");
//Serial.print(cm);
//Serial.print("cm");
//Serial.println();
//delay(100);

servo1.write(0);
Army Institute of Technology, BE E&Tc, IoT 2020-21
if(cm < 40)
{
servo1.write(90);
delay(2000);
}
else
{
servo1.write(0);
}

// PIR with LED starts


int pir = digitalRead(2);

if(pir == HIGH)
{
digitalWrite(4,HIGH);
delay(1000);
}
else if(pir == LOW)
{
digitalWrite(4,LOW);
}

//temp with fan


float value=analogRead(A0);
float temperature=value*0.48;

Serial.println("temperature");
Serial.println(temperature);

if(temperature > 20)


{
digitalWrite(12,HIGH);
digitalWrite(13,LOW);
}
else
{
digitalWrite(12,LOW);
digitalWrite(13,LOW);
}
}

long microsecondsToInches(long microseconds) {


return microseconds / 74 / 2;
}

long microsecondsToCentimeters(long microseconds) {


return microseconds / 29 / 2;
}

Army Institute of Technology, BE E&Tc, IoT 2020-21


Simulation Diagram:

CONCLUSION
Various sensors connected in the home network could communicate with each other and
hence coordinate the Smart Home Automation.

Army Institute of Technology, BE E&Tc, IoT 2020-21


ARMY INSTITUTE OF TECHNOLOGY,PUNE

DEPARTMENT OF ELECTRONICS &TELECOMMUNICATION

SUBJECT: INTERNET OF THINGS

EXPERIMENT NO: 6
TITLE: Smart Irrigation System
AIM: Implementation of a mini project on IoT Smart Irrigation System.

Name of the Student Amit Kumar

Roll No 1408

HARDWARE REQUIREMENTS:
▪ Arduino Uno board
▪ ESP8266 Wi-Fi Module
▪ Breadboard
▪ Connecting Wires
▪ Resistors
▪ 16x2 LCD Display
▪ Potentiometer
▪ LEDs
▪ NPN Transistor
▪ DC Motor
▪ LM35 temperature sensor
SOFTWARE:
• Tinkercad
PROCEDURE:
1. Open Tinkercad.
2. Connect temperature sensor i.e. LM35 to Analog pin A0 of Arduino.
3. Connect digital pins of LCD display to Digital pins 4,5,6 and 7 of Arduino.
4. Also connect the RS and Enable pin of LCD to pin 2 and 3 of Arduino, respectively.
5. Connect the positive pin of DC motor to pin 13 of Arduino through a NPN transistor
to supply sufficient current.
6. Connect 1 Red and 1 Green LED to pin 12 and 11 respectively for indicating the
current state of motor.
7. If the temperature is more than 50°C, then the Red LED will turn ON and the motor
will start rotating.
8. As soon as the temperature will drop down below 50°C, the Green LED will start
glowing and the motor will turn OFF.

Army Institute of Technology, BE E&Tc, IoT 2020-21


SIMULATION RESULTS:
Code:
#include <LiquidCrystal.h>
const int LM35 = A0;
const int motor = 13;
const int LedRed = 12;
const int LedGreen = 11;

LiquidCrystal lcd(2, 3, 4, 5, 6, 7);

void setup() {
Serial.begin(9600);
lcd.begin(16, 2);
lcd.print("Automated Plant");
lcd.setCursor(0,1);
lcd.print("Watering System!");
pinMode(motor, OUTPUT);
pinMode(LedRed, OUTPUT);
pinMode(LedGreen, OUTPUT);
delay(2000);
lcd.clear();
lcd.print("Temp= ");
lcd.setCursor(0,1);
lcd.print("WaterPump= ");
}

void loop() {

int value = analogRead(LM35);


float Temperature = value * 500.0 / 1023.0;
lcd.setCursor(6,0);
lcd.print(Temperature);
lcd.setCursor(11,1);

if (Temperature > 50){


digitalWrite(motor, HIGH);
digitalWrite(LedRed, HIGH);
digitalWrite(LedGreen, LOW);
lcd.print("ON ");
}
else {
digitalWrite(motor, LOW);
digitalWrite(LedRed, LOW);
digitalWrite(LedGreen, HIGH);
lcd.print("OFF");
}

Army Institute of Technology, BE E&Tc, IoT 2020-21


delay(1000);
}

Diagram:

CONCLUSION:
In this experiment, we have successfully designed, simulated, and verified the code of Smart
Irrigation system using Tinkercad. We have observed that as soon as the temperature goes
above 50°C, the motor starts rotating.

Army Institute of Technology, BE E&Tc, IoT 2020-21


ARMY INSTITUTE OF TECHNOLOGY,PUNE
DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION
SUBJECT: INTERNET OF THINGS

EXPERIMENT NO: 7

TITLE: Smart Water Flow Monitoring System


AIM: Implementation of a mini project on IoT Smart Water Flow Monitoring System

Name of the Student Amit Kumar

Roll No 1408

HARDWARE REQUIREMENTS:
▪ Arduino Uno board
▪ ESP8266 Wi-Fi Module
▪ Breadboard
▪ Connecting Wires
▪ 1K resistor,
▪ LDR sensor
▪ Ultrasonic sensor
▪ Two cables red and black colour
▪ LEDs
▪ L2930 motor driver
▪ Servo Motor
▪ LM35 temperature sensor
SOFTWARE:
• Tinkercad

PROCEDURE:
1. Open Tinkercad.
2. Connect potentiometer to analogue pin-A0.
3. Connect two LEDs to digital pin-9,10.
4. Potentiometer will act as water Flow meter, moving this we can specify flow of water.
5. When flow increases above a specific level red LED glows.
6. When flow decreases below a specific level green LED glows.

SIMULATION RESULTS:
Code:
void setup()
{
pinMode(A0, INPUT);
pinMode(10, OUTPUT);
pinMode(9, OUTPUT);
Serial.begin(9600);

Army Institute of Technology, BE E&Tc, IoT 2020-21


}

void loop()
{
if (analogRead(A0) < 100) {
digitalWrite(10, HIGH);
digitalWrite(9, LOW);
Serial.println(analogRead(A0));
} else {
digitalWrite(10, LOW);
digitalWrite(9, HIGH);
Serial.println(analogRead(A0));
}
delay(10); // Delay a little bit to improve simulation performance
}
Diagram:

Conclusion
The designed waterflow meter works perfectly and indicates the flow rate.

Army Institute of Technology, BE E&Tc, IoT 2020-21

You might also like