ICP 6 - Gnkhakimova/CS5590-IoT GitHub Wiki

ICP 6

Source Code
Video Link

Introduction

Creating an in class project using Node Red and Arduino to display the LED lights. Turning on each light in sequence of each other just like a traffic light. The LED lights were provided to us along with the Arduino board.

Objectives

The objective of this in class project is to integrate Node Red and Arduino together. Creating a sample of the real life traffic light using 3 LED lights with Arduino. Within Node Red flows we had to connect and create the flow process that will transmit signal to the LED lights on the power board.

Approach/Method

The Approach we took to complete this task (in class project 6) were following the guideline that was setup and given to us by our teacher. A demo of how to integrate Node Red with creating a separate file (the .js and .html for lower-case). After completing the in class demo. We moved onto integrating the Node Red with Arduino. First we connected the LED lights to the power sources and Arduino. Afterward we created a flow in Node Red so we are able to access the LED light from the arduino. After we are able to transmit signal to the LED lights, we moved onto creating a traffic signal sample.

Workflow

We created and tested a in class demo that was given to us by our teacher before we started the integration. We made sure that we are able to integrate our Node Red with Arduino before we tested and transmit signal to the LED lights. After the successful demo testing and integration we begin to install all three lights. Afterward, we created a flow which would send signal to the LED lights.

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 to the LED lights.

Flow

Parameter

In our in class project we had to install and include the dashboard for Node Red. And we include the installation of the Arduino in Node Red, so that we can send the signal from our flow to the LED lights.

Evaluation/Discussion

As a team, and credit to our teacher whom provided us with the component and in class demo, we created and tested the demo of the in class demo before we actually integrated our traffic lights sample. We manage to create and send signal to our traffic lights sample and display the light in sequence.

Conclusion

In conclusion for this in class project, we were able to create and integrate the Node Red with Arduino. Along with transmitting signals to our LED to display lights. The light signal were transmitted to resemble a real life traffic light.