You are on page 1of 2

2018-MC-

EXPERIMENT NO. 12
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

Part 2: Design Complete IoT system using Cayenne and IoT trainer

Pre-Lab
1. Go to the google drive link and follow instructions for pre lab installations for lab6.
2. Download the Arduino code file from google drive.

In-Lab 
1. Once you’re set up, go to link below and follow steps for connecting esp8266
https://developers.mydevices.com/cayenne/docs/getting-started/
2. Design a dashboard for following functions
Add a button to turn on/off Fan
Add a button to turn on/off Lamp
Add two gauges for temperature and humidity display
Add value gadget for light display
Add event trigger for alarm upon intruder detection
Add an alert to send email and message upon intruder detection

Words of Wisdom from Saadi Sherazi

Have patience, All things are _________ before they become ______.
2018-MC-

Code:

1. // Cayenne authentication info. This should be obtained


from the Cayenne Dashboard.
2.
3.
4.
5. // define virtual channels for actuators
6.
7.
8.
9. // define virtual channels for sensors
10.
11.
12.
13.
14. // code below to turn on LAMP
15.
16.
17.
18.
19.
20. // code to read temperature and send to Cayenne
21.
22.
23.
24.
25.
26.
27. // code to detect motion and turn on alarm once
28.
29.
30.
31.
32.

Instructor Remarks:

You might also like