Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

2018-MC-

EXPERIMENT NO. 11
OBJECTIVE:
To study Internet of Things (IOT) using Esp8266 Wifi module and Cayenne IOT platform.

APPARATUS:
1. IOT & Smart Home trainer
2. 9v Adapter
3. Laptop
4. Mobile Phone
5. Wifi Internet

Internet of things (IOT):

The internet of things, or IoT, is a system of interrelated computing devices, mechanical and digital
machines, objects, animals or people that are provided with unique identifiers (UIDs) and the ability to
transfer data over a network without requiring human-to-human or human-to-computer interaction.
A thing in the internet of things can be a person with a heart monitor implant, a farm animal with
a biochip transponder, an automobile that has built-in sensors to alert the driver when tire pressure is low
or any other natural or man-made object that can be assigned an IP address and is able to transfer data
over a network.

An IoT ecosystem consists of web-enabled smart devices that use embedded processors, sensors and
communication hardware to collect, send and act on data they acquire from their environments. IoT
devices share the sensor data they collect by connecting to an IoT gateway or other edge device where
data is either sent to the cloud to be analyzed or analyzed locally. Sometimes, these devices
communicate with other related devices and act on the information they get from one another.

IoT frameworks include:

AWS IoT, a cloud platform for IoT released by Amazon.


Microsoft’s Azure IoT Suite
IBM Watson IoT
Google cloud IoT
Blynk IOT
Cayenne myDevies
Thingspeak

https://dzone.com/articles/12-iot-platforms-for-building-iot-projects

Words of wisdom from Aristotle

Educating the _______ without educating the _______ is no an education at all…


2018-MC-

Wiring Configuration:

Components GPIO
1 LDR A0
2 LAMP 4
3 BUZZER 5
4 Humidity & Temp Sensor 2
5 Fan 12
6 Motion Detector 13
2018-MC-

Part I: Getting started with sensor and actuators from IoT & Smart Home Trainer
Draw wiring schematic of IoT & Smart Home Trainer.

In-Lab
1. Power up trainer with dc adapter before connecting USB to PC.
2. Write a program to perform following
3. Turn on/off the lamp with 3 seconds delay
4. Turn on the fan for 5s when light intensity reaches greater than 800
5. Print out the temperature, humidity, light intensity parameters on Serial
6. Turn on the buzzer when any motion is detected

Code:   

1. // include suitable libraries  


2.   
3.
4.
5. // actuators (FAN, LAMP, ALARM) pin initialization
6.
7.
8.
9.
10. // sensors (LDR, temp&Hum, motion) pin Initialization
11.
12.
13.
2018-MC-
14.
15.
16. void setup() {  
17.   // Define pinModes and other setups:  
18.   
19.
20.
21.
22.
23.
24.
25. }
26. void loop() {  
27.   // read the value from the sensor:  
28.   
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57. }

Instructor’s Remarks:

You might also like