University of Dayton Internet of Things Worksheet
Description
Unformatted Attachment Preview
Instructor Name: Dr. Andrew Rettig
Course: ECE 520
Date: 02-14-2021
Lab Goals 3 and 4
Goal 3. Install Node-Red on your computer and send your data into Node-Red.
Goal 4. Have Node-Red display your data as it comes in. The display will need to be within the (ui)
user interface of node red (FYI, the “ui” is a different url). You still will be working within the basic
node red flows but the ui is displayed on a different url. Find the dashboard nodes and use those to
display the data. You will want to display more than just the text node. Get interesting with a chart
or gauge. Also, you may need to edit your raw COM data to work with some of the dashboard
nodes. You will want to use a function node to isolate integers.
Goal 3:
Node-red: Node-red is an open-source editor which allows programmers to create functionality by wiring
together flows of data using a browser.
Steps to Install Node-RED:
Step1: Install Node.js from the link https://nodered.org/docs/getting-started/local.
Step2: Open command shell and use the following command.
node –version && npm ¥rsion
Figure 1: Versions of node and npm
We will receive the output as shown in Figure 1.
Step 3: Now by using the node-red, We receive the command shell output as shown in
Figure 2.
Figure 2: Command shell output with server link
Now as we can see node red is running the server at http://127.0.0.1:1880/ as shown in Figure 2.
Node RED has been successfully installed and be accessed using the link http://127.0.0.1:1880/. Node
RED does not have pre-installed nodes for serial port and the dashboard. They can be installed from
command shell and can be installed on the server itself by managing the palette.
I have installed node-red-node-serialport and node-red-dashboard.
Now as we have installed the node red and the nodes required successfully, we can move to the Goal 4.
Goal 4:
To display data on the Node-Red, I have added a Serialin which reads the serial port data and I
assigned it COM3. I have also added a debugger which displays the data from the sensor and to display
data on an user interface I have added a gauge.
Figure 3: Node Red with added flow design.
Now by clicking on the deploy button we can activate the Node Red UI which enables us to see data on
the user interface.
One can access the user interface just by adding ui at end of the server link that is
http://127.0.0.1:1880/ui. The output can be seen in the Figure 4.
Figure 4: User interface output
Purchase answer to see full
attachment
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."