ICP 11 & ICP 12 - Gnkhakimova/CS5590-IoT GitHub Wiki

ICP 11 & ICP 12

Motion Sensor Video

https://www.youtube.com/watch?v=kWm3zGTm_Fc&feature=youtu.be

Motion Sensor Sources Code

https://github.com/Gnkhakimova/CS5590-IoT/tree/master/ICPs/ICP-11/Source%20Code

Lie Detector Video

https://www.youtube.com/watch?v=D4WltevOb48&feature=youtu.be

Lie Detector Sources Code

https://github.com/Gnkhakimova/CS5590-IoT/tree/master/ICPs/ICP-12/Source%20Code

Introduction

Create an in class project (ICP 11/12). For the first portion of the in class project, it is to create a motion detector using a Motion Sensor to receive signal when an object passes by (detecting body heat) and when a signal occur send an output to a mobile phone via Bluetooth and make a led light turn on while object is in view. The component that were needed to complete this in class project portion were a Motion Sensor, LED light, Arduino, Bluetooth, android phone and App Inventor. The last portion for this in class project were to create a lie detector using a Heartbeat Sensor. When the user heartbeat goes above (the set limit) a blue LED light will turn on until the user's heartbeat drop below the set limit. While the user's heartbeat are lower the set limit a green LED light will be lit. To complete this in class project we used two LED green and blue, Arduino, and a Heartbeat Sensor.

Objective

The objective of this in class project (ICP 11/12) is to integrate what was learned in previous section and create something useful. The first objective were to create a motion detector that allow the user to be notify when someone is in range of the Sensor and is triggering the sensor. The second part deal with trying to catch a liar using a lie detector simulator.

Approach/Method

The approach we used to complete both portion of this in class project is first to complete one task before starting the other task. We started with creating a motion detector using the Motion Sensor and make the LED light turn on whenever we came close to the Motion Sensor. We added codes in Arduino to activate our LED light and Motion Sensor. Once we manage to successfully have the motion detector running, we than started to transmit data receiving from our Motion Sensor and passes it to our mobile application using MIT App Inventor. Once we had manage to successful complete the first portion we than moved on to the last portion which was the lie detector. The approach we took to complete our lie detector simulator were to look at previous assignment where we had used the Heartbeat Sensor. We used a similar method to create our lie detector. We activate our Heartbeat Sensor and LED lights using Arduino. In Arduino we set a limit value to a limit and when the user goes above the limit the blue LED turns on until the heartbeat of the user fall below the set limit.

Workflow

The workflow of the first portion of the in class project were straight forward. We started assembling the Motion Sensor and LED lights and activate them with Arudino code. Follow that, we used MIT App Inventor to allow us to transmit data from Arduino to our mobile phone. For the second portion of the in class project, we used a similar method of the previous assignment to connect our Heartbeat Sensor and LED lights. We used Arudino code to activate our sensor and lights.

MIT APP INVENTOR

MOBILE PHONE

HEARTBEAT

Circuit Diagram

Circuit Diagram for Motion Detector This is how we connect our Motion Sensor with Arudino This is how we connect our LED light and Bluetooth

LIE DETECTOR This is how we connect our pulse sensor This is how to connect our two LED

Parameter

The parameter we had to include in this in class project were the Motion Sensor, LED light, Arudino, Bluetooth, MIT App Inventor and mobile phone for our first portion of the assignment. For our second portion of the assignment we used and included the Pulse Sensor, two LED lights, and Arudino.

Evaluation/Discussion

As a team we decided it was best to work on one task of the first portion and get it to fully functional before adding more component to the first portion of the assignment. The same mindset when we approached the second portion of the assignment. We simply activate both the led and motion detector using Arudino code and later integrate in MIT App Inventor, so we could transmit data to our mobile phone. And for our second portion of the assignment we activate our pulse sensor and two led lights using Arudino. Afterward, we set a limit when the blue led should turn on and when the green led should turn on.

Conclusion

Conclusion for the in class project (ICP 12) we manage to fully complete both in class project: motion detector and transfer notification to mobile application and we created a lie detector using the aid of Arudino with pulse sensor and two led.