ICP 13 - Gnkhakimova/CS5590-IoT GitHub Wiki
ICP 13
Video
https://www.youtube.com/watch?v=A52NNElc48o&feature=youtu.be
Sources Code
https://github.com/Gnkhakimova/CS5590-IoT/tree/master/ICPs/ICP-13/Source%20Code/ICP-13
Introduction
Create an in class project (ICP 13). For the first portion of the in class project, create a web page that control turning on and off an LED light. The component that are needed to complete this task are the following, NodeMCU, Arduino, and LED light. For the second portion of the in class project, integrating the first portion of using a web page to control a sensor. Using any sensor transmit the data to both a mobile application and web page. On top of that, provide the ability to turn on and off the sensor via web page or mobile device. The component that are needed are, NodeMCU, Arduino, MIT App Inventor, sensor (Light Sensor), mobile phone, and WiFi connection.
Objective
The objective of this in class project (ICP 13) is to combine new component such as creating a web page and NodeMCU with the component we already used in the past, such as, Arduino, Light Sensor, MIT App Inventor and WiFi for connection via mobile device. The objective for the first portion of the ICP 13 were to help us understand and how to use the NodeMCU by allowing us to turn on and off a simple LED light controlling from a web page. For the second portion of the ICP 13, we were to integrate controlling the sensor via web page and mobile application.
Approach/Method
The approach we took to complete both portion of the in class project is to first understand how to use NodeMCU. Following by integrating a LED light with NodeMCU, Arduino and WiFi, so that we can use a web page to control turning on and off the LED light. The approach we took to complete the second portion after completing the first portion were, integrate our Light Sensor on top of the LED light. Once that is in place, we transfer code from Arduino to NodeMCU which allow us to turn on and off the Light Sensor which shut off transferring data to the web page. Afterward, we used MIT App Inventor to create a pathway which allow us to control the same flow of transferring data, not only to our web page, to our mobile device.
Workflow
The workflow of the first portion of ICP 13 were straight forward of using NodeMCU and Arduino to create our web page and transfer on and off power to the LED. However, the workflow for our second portion of the ICP 13 were challenging. However, we over came the difficult and manage to successfully complete it. We combine NodeMCU with Arudino and Light sensor which allow us to control sending and receiving data via web page. We than used MIT App Inventor to send and receive data to our mobile phone.
Circuit Diagram
This is how we connect our LED light.
This is how we connect our Light Sensor.
Parameter
The parameter we had to include in the first portion of this in class project were the NodeMCU, LED light, Arudino, WiFi and a web page. For our second portion of the project we had to include some from the first portion such as, NodeMCU, Arduino, WiFi, web page and some new component such as, Light Sensor, MIT App Inventor and mobile phone.
Evaluation/Discussion
As a team we decided it was best to work on the first portion of the task because it was fairly an easy task, which provide us the information necessary to do our second portion of the in class project. The first portion allow us to understand and how to use NodeMCU with Arudino and setting up a web page. Understanding how these component work together helped us accomplish our second portion of the in class project. It helped us with sending and receiving data to our web page from our Light Sensor.
Conclusion
Conclusion for the in class project (ICP 13) we manage to fully complete both portion of the in class project. The first portion were to turn on and off an LED remotely from a web page. The second portion were to turn on and off data transferring from our Light Sensor to our web page and mobile phone.