ICP7 Wiki Report - aaackc/IOT GitHub Wiki

IOT Wiki

ICP7

Github:

Github.com/AnthonyYos/IoT

Github.com/aaackc

Github.com/s0720bae

Github.com/Alshaikh1abbas

Video:

https://m.youtube.com/watch?v=xmBZ1pdfekQ

Introduction:

The goal of ICP 7 was creating/adding new nodes into node red, and using node red to interface with the arudino.

Approaches/ Methods:

We started with adding the node that would output our input node into lowercase letters. The process was rather straightforward, followed the directions and installed our node into the node-red directory. After that we revisited the ICP5, and added a function that would take a Celsius input and convert it into Fahrenheit and output it. Last we had to convert ICP1, traffic light, to work with node red. We followed the directions, and installed arduino nodes usage into the node-red directory. Then we had to create a flow that would output directions to three led nodes.

Workflow:

Installed and added the lowercase node into node red. Created a flow ANTHONY -> lowercase -> output Changed the extract message function from ICP5 to extract Celsius, and used an expression that converts that into Fahrenheit. Installed and added arduino nodes into node red. Created a flow that would repeat every couple a seconds that would light a single led to mimic a traffic light.

Flow Diagrams:

Parameters:

Created a flow to lowercase an input. Changed function from ICP5 to take the temp in Celsius and output it into Fahrenheit. Created a flow that would interact with the arduino and mimic a traffic light. Evaluation & Discussion: ICP was a little slow to start, but was rather straightforward for the lowercase and temperature conversion flows. All of our difficulties came from trying to figure out how to get the LEDs to blink one at a time. After some assistance and changing what pins our LEDs were connected to, the LEDs began to work as intended.

Conclusion:

Learned how to create nodes and add them to node red. As well as how to install nodes that can interact with an Arduino. We saw another way we can interact with an Arduino without solely using its IDE, using node red and javascript.