Introduction: IOT Final Project

Final Project Video

A person's room/ home is his natural environment, where he can feel safe and free to be himself.

For people with ADHD, it can be very difficult to remember things, and they often forget to do some basic tasks such as leaving the lights and AC on when they leave the room.

We wanted to create a system that enabled those people to be the best versions of themselves.

Our system supports the following scenarios:

1. Turning off lights after leaving a room.

2. After leaving a room, switch off the fan.

3. The Blynk app lets users turn on and off their lights from the app, and it can be done while in a room as well, creating an elegant smart home experience.

4. The moment we leave the room and slam the door, a notification will be sent to the app that the lights are on, so we can turn them off again even if we did not notice.

5. In the event that the temperature sensor detects a temperature higher than the average temperature in the room, a notification will be sent to the application explaining to the user that the temperature is higher than normal, and whether he wants to turn on the fan.

Supplies

Our project based on the Adafruit Circuit Playground Express uses Blynk.

We will need:

  1. Circuit Playground Express
  2. Battery Holder
  3. 3 X AAA Batteries
  4. Cables
  5. Glue with double-sided adhesive
  6. Engine that controls the fan switch
  7. Engine that controls the fan switch

Step 1: Step 1: the Technologies

CPX - The Circuit Playground is a family of small microcontroller boards with LEDs, buttons, and sensors.
Blynk - An IoT platform for iOS or Android smartphones that allows you to control Arduino, Raspberry Pi, and NodeMCU remotely.

Step 2: Step 2: Before You Go...

  1. install Arduino software from the following link: https://www.arduino.cc/en/Main/Software
  2. Install adafruit driver from the following link: http://bit.ly/adafruit-windows-drivers (only for Windows)
  3. Install the board manager SAMD from the following link: http://bit.ly/adafruit-windows-drivers
  4. Create a user on Blynk from the following link: http://bit.ly/adafruit-windows-drivers
  5. Create new template, fill the details and choose "Arduino" in HARDWARE and WiFi in CONNECTION TYPE
  6. Create new device on the template you created before
  7. On Device Info you will find Template ID, Device Name and Auth Token.
  8. Download Blynk application to your mobile

Step 3: Step 3: Preperation of Hardware

1. The CPX should be attached straight to the door with the double-sided glue

2. Connect A3 and A2 to the light and fan engines, respectively

3. The "Plus" (+) of the engines connects to the VOUT and the GND

Step 4: Turning On/ Off Lights and Fan Scenario 

Blynk website - Open the Blynk website and enter the template that you have already created. Create a new virtual pin datastream with a double data type (we chose V0).

Blynk app - Open the app and enter the device that you have created before, Click on the settings symbol and then on the + button, Add Gauge display and fill in the title and appropriate datastream (we chose V0).

Step 5: Blynk Notifications

Step 6: Last Step: Code and CPX

To connect the CPX and the code that was written in Arduino you need to:

  1. Download the attached file (.ino file)
  2. Connect the CPX to your computer and upload the code
  3. Disconnect the CPX from the computer and connect it to the battery holder
  4. Place the CPX on the door