Controlling and monitoring Arduino, Wi-Fi, and Ethernet shields on connected devices and sensors
In previous sections, we saw how to control and monitor our Arduino boards from a web page using node.js
running on a computer in Windows. In this section, we will use our fantastic Raspberry Pi Zero with Node.js installed on it and run the JavaScript application inside the board.
I have seen the potential of the board instead of using a personal computer installed as a web server, with this experience making this projects I want tell that the application is more efficient using our Raspberry Pi Zero running on it.
We will see how to control more than one device in a single dashboard using different devices, such as the following:
Wi-Fi shield
ESP8266 module
Ethernet shield
Building the code to control and monitor devices from a single interface
You can now either copy the code inside a file called app.js
, or just get the complete code from the folder for this project.
Configure the outputs of the devices...