This is an old revision of the document!
Smart home
Introduction
Smart home is a automated house where different operations are driven by sensor data. Door switches, temperature and PIR sensors are just a few inputs for the system and switching lights, fans, heating on and off are few outputs what inputs can trigger. Smart home can have simple operation but also very complex and AI involved algorithms to make inhabitant lives comfort and convenient.
Task
You need to create a simple sensor system which monitors the front door and people presence in the rooms. Based on sensor data you need to switch lights on and off. It is important to deal also with delays that the switching lights off are not disturbing for persons in the rooms.
Hardware description
Remote lab instructions
-
From under “My site” go to “My devices”.
If you already have something booked then click on the “Book” link or icon.
Choose available IoT device.
Click on the “Book” link or icon.
Choose your preferred end date by clicking on the empty field and then clicking on a date. Press save when you are done.
Go back to “My devices” and choose the IoT device.
In the code editor window click on the “Select Files” and under “Example Files” choose “IoT_DHT_Example.cpp” and “IoT_Relay_Example.cpp”.
Start coding.
Running your code:
While having the code you want to run open click on “Compile”.
Wait for the compiler to finish and check for errors.
If the compiler was successful then click on “Execute”.
Saving your code:
While having the code you want to save open click on “Save file as..”.
Enter a name for your code and press “Ok”.
To open your code you can choose it from under “User files”.
Steps to solve the problem
Choose necessary sensors for your task
Find solution to switch lights
Study control hardware and messaging logic
Develop a smart home network concept
Connect hardware and interface them with remote programming lab
Make a software code for all nodes in the system
Run the code and validate the results