ICP 7 - Sang-Ly/ICP-7 GitHub Wiki
Video
https://www.youtube.com/watch?v=J833SwhMNb8&feature=youtu.be
Source Code Node Red
https://github.com/Sang-Ly/ICP-7/blob/master/ICP%207%20-%20Flow
Arduino
https://github.com/Sang-Ly/ICP-7/blob/master/ICP%207%20-%20Arduino
Python
https://github.com/Sang-Ly/ICP-7/blob/master/ICP%207%20-%20Python
Introduction
Create an in class project (ICP 7) to simulate a Traffic Light and configure Raspberry Pie and Node Red. Raspberry Pie should send a message to Twitter. Using and integrating the led lights together with the Arduino and Node Red to make the light blink one after another. With the provided equipment we were able to simulate a Traffic Light and able to post a message to Twitter in Raspberry Pie using programming language Python.
Objective
The Objective of this in class project (ICP 7) is to integrate the led lights, Arduino, Node Red, and Raspberry Pie all together to make a functional project. The functional project were to simulate a Traffic Light, where one light turns on and the other two are off. The lights move in sequence, one turn on two off, one on two off and continue the process. After enabling the Traffic Lights, send a message to Twitter using a programming language within Raspberry Pie.
Approach/Method
The approach that we used to complete this in class project (ICP 7) were to use the previous working Traffic Light we had design back in ICP 6. Using the same method we did for ICP 6, we were able to get the Traffic Light blinking one after another. We than integrated Raspberry Pie; we also config Raspberry Pie so that it can access Node Red and run the Traffic Lights flow we designed in ICP 6. Also, within the Raspberry Pie we were able to create a programming language (Python) to send a message to our Twitter account.
Workflow
The workflow for our in class project (ICP 7) we started with assembling the led lights with the power board. From there we connected the Arduino to the led lights and power board. This allow us to send our code from Arduino to the led lights and tell it how to function. After enabling the Traffic Lights we transfer onto using Node Red to simulate the blinking of the led lights. Once we had a working model we transfer our method to access and use Raspberry Pie instead of our computer. After the Raspberry Pie setup take place, we access Node Red via Raspberry Pie and ran the flow to make sure it work correctly before we moved onto the next task. After the Traffic Lights blinking correctly we then created a message and send it to Twitter using Python in Raspberry Pie. Node Red Flow
Circuit Diagram
We used this circuit diagram to connect our LED lights. Using this diagram we were able to connect the LED lights with the power sources and the Arduino. From there we are able to transmit light signal from our Node Red inside of Raspberry Pie to the LED lights.
This is our output to Twitter when we send a message to our Twitter. The message was to test if our Python code was working properly.
Parameter
For this in class project (ICP 7) we had to config Raspberry Pie and install all the component of Node Red, Node JS, Node Red Dashboard, Node Red Arduino, Python, and many more. We had to include all of these so that we can access the all the component for our Traffic Light simulation. We config Raspberry Pie so that we are able to access another computer without using our own. We integrated Node Red into Raspberry Pie so that we can allow the Node Red flow and diagram. We installed Python which allow us to send messages to our Twitter account without using Node Red Twitter flow.
Conclusion
Conclusion for our in class project (ICP 7). As a team we were able to complete all the given task. We were able to simulate a working Traffic Light and send a message to Twitter without using Node Red; we used an additional programming language which was Python. We config Raspberry Pie and integrated Node Red inside of the Raspberry Pie as well.