W5100S-EVB-Pico With the Node-RED

by TaejinAn in Circuits > Arduino

511 Views, 1 Favorites, 0 Comments

W5100S-EVB-Pico With the Node-RED

IMG_7878-p.JPG

The W5100S-EVB-Pico has the same role as the Raspberry Pi Pico platform and includes W5100S, so the Ethernet function is basically included.

WIZnet Ethernet Library

001-20220228-111556.png
001-20220228-111641.png
001-20220228-112211.png

The Arduino-Pico of Mr. Philhower supports W5100S-EVB-Pico since version 1.9.7.

But you need to download WIZnet Arduino Ethernet manually.

And also, you need to set nCS yourself.

Ethernet.init(17); // WIZnet W5100S-EVB-Pico

Please see this previous article for detail.


Node-RED Download, Install

6.png
7.png
001-20211222-142304.png
001-20211222-142357.png
001-20211222-153347-2.png

This time, I want to show you a dashboard of the Node-RED with W5100S-EVB-Pico.

It is free and easy.

Here is documentation of Running Node-RED locally.

Run Node-RED

2.png
1.png

After installing Node-RED, you can run Node-RED at the command prompt.

node-red


Internet Browser

001-20220228-130829.png

Run the internet browser and go to your node-red.

http://127.0.0.1:1880/


Install Modules

001-20220106-131956-2.png

You need to install other modules like a dashboard on the Manage palette.

Flow and Deploy

001-20220228-131043.png
001-20220228-131047.png
001-20220228-141355.png

I added network TCP and gauge, chart. It listens to the connection with a client at port 9456.

You need to deploy when you modify.

It displays to gauge and chart if it received data.

You can see data from the client on the debug.

Sketch

I wrote a sketch(W5100S-EVB-CoreTemp.ino) of the W5100S-EVB-Pico that will send the temperature of the pico core to the Node-RED server.

The flow is like below

1. It starts when the serial port is opened.

2. It will have an IP that is allocated from the DHCP server.

3. It will try to connect to the Node-RED server(also allocated from the same DHCP server) if it succeeds.

4. It will get the temperature of the pico core and send it to the serial port.

5. It will send the data to the Node-RED server if connected.

6. I add blink to check alive the W5100S-EVB-Pico.

Finally

001-20220228-150617.png

Now you have a dashboard. You can add more sensors and show it.

For more details, please see this documentation of Node-RED.

Thank you for reading this.