ICP 8 - Gnkhakimova/CS5590-IoT GitHub Wiki
ICP 8
Video
https://www.youtube.com/watch?v=zP7u014-yQU&feature=youtu.be
Source Code Arduino
https://github.com/Gnkhakimova/CS5590-IoT/blob/master/ICPs/ICP-8/Source%20Code/ICP_8/ICP_8.ino
Python
https://github.com/Gnkhakimova/CS5590-IoT/blob/master/ICPs/ICP-8/Source%20Code/ICP%208.txt
Introduction
Create an in class project (ICP 8) to transfer a message from Python saying "Hello from Arduino" whenever a LED light blink. Using one LED light and connected into our Raspberry Pie along with our Power source and Arduino. Also had to reconfigured the Raspberry Pie to enable both I2C and Serial which will allow the access of the LED light to be control by the Raspberry Pie.
Objective
The objective for this in class project (ICP 8) is to use another source of power to create a blinking LED light which in this case will be the Raspberry Pie. The code to transmit the instruction to the LED light were from Arduino. Whenever a blinking occur a message is send to the user via command line displaying the output message. The message with written in Python, and Python will be installed onto Raspberry Pie.
Approach/Method
The approach that we used to complete this in class project (ICP 8) is to first connect the LED lights with a power sources and Arduino which allow us to upload the code that will transmit data to our LED light. Then we integrated in our Raspberry Pie which we switch our LED lights to our Raspberry Pie. From there We created a functional program using Python to transmit message data whenever a blinking occur on the LED light.
Workflow
The workflow for our in class project (ICP 8). We first connected the LED lights with our power sources and Arduino so that we can upload the necessary instructions for our LED light. Then we connected our light and Arduino to our Raspberry Pie. We than modified the code in Python to send a message whenever a blinking occur on our LED light.
Circuit Diagram
This is a photo of our single LED light blinking. Before we connected our LED light to the Raspberry Pie, we had to connected it to Arduino so that we can transmit instructions to the light and Arduino. After the successful upload to Arduino we transfer the light connection to be connected with our Raspberry Pie. From there we were able to detect blinking light and send a message each time the LED light blink.
Parameter
For this in class project (ICP 8) we had to include Raspberry Pie. Which we had to configured from scratch; installing Node JS, Node Red and all of Node Red component which are needed to access Arduino to complete our task. We had to installed Python in Raspberry Pie so that we can transmit messages from our blinking LED light to the user interface which is the command line in this case. We had to enable some setting option for our access our Serial Port and I2C. We had to include VNC which allow us to view our Raspberry Pie device from our computer.
Conclusion
Conclusion for in class project (ICP 8) we were able to complete all the given task. We were able to integrate all the components together and make a working and functional program out of it. We connected Raspberry Pie with Arduino, power sources, and LED light. We were able to send messages to the user interface using Python within Raspberry Pie.