---
title: "Node-red lendo dados via ethernet com Arduino / Node-red reading data via ethernet with Arduino"
url: "https://maker.wiznet.io/gemma/projects/node-red-lendo-dados-via-ethernet-com-arduino-node-red-reading-data-via-ethernet-with-arduino/"
markdown_url: "https://maker.wiznet.io/gemma/projects/node-red-lendo-dados-via-ethernet-com-arduino-node-red-reading-data-via-ethernet-with-arduino/md"
type: "UCC: User Created Content"
author: "Thales Gonçalves Ferreira"
author_url: "https://www.crescerengenharia.com/post/node-red-dados-ethernet-arduino"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Thales Gonçalves Ferreira"
original_url: "https://www.crescerengenharia.com/post/node-red-dados-ethernet-arduino"
published: "2023-01-30"
language: "en"
hardware: ["WIZnet W5500", "Microchip Technology ATmega1280"]
likes: 8
views: 413
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Node-red lendo dados via ethernet com Arduino / Node-red reading data via ethernet with Arduino

> Node-red reading data via ethernet with Arduino

Original author: Thales Gonçalves Ferreira (source: https://www.crescerengenharia.com/post/node-red-dados-ethernet-arduino)

## Components

- **WIZnet W5500** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5500))
- **Microchip Technology ATmega1280** x 1
- Software: **Node-RED** ([docs](https://nodered.org/))

WIZnet parts: W5500 ([Datasheet](https://docs.wiznet.io/Product/Chip/Ethernet/W5500/datasheet?utm_source=maker&utm_medium=project&utm_campaign=w5500), [product hub](https://maker.wiznet.io/products/w5500/))

## Article

## 3. Sending data from Arduino.

Now let's leave Node-red aside for a bit and let's prepare the arduino to send the data. For this implementation, the CPB Mini board was used, together with the W5500 ethernet shield. The CPB Mini has an ATmega1280, so it behaves like an Arduino mega.

![](https://static.wixstatic.com/media/04fe82_157f506e90484c6db884ee7a15a9e8f5~mv2.png)

![](https://static.wixstatic.com/media/04fe82_7d0b36689ba345b2bb91428969691796~mv2.png)

![](https://static.wixstatic.com/media/04fe82_c5b287c43b7d4998910fdd756aace90e~mv2.png)

The following figure represents the topology of the system, the CPB communicates over ethernet with the modem that sends data via wifi to Node-red.

![](https://static.wixstatic.com/media/04fe82_3c920583b4b844328f615091e09380a4~mv2.png/v1/fill/w_2820,h_1005,al_c,q_90/04fe82_3c920583b4b844328f615091e09380a4~mv2.webp)

In the following table we can see the pins that were used for communication with the ethernet shield, it is worth mentioning that from these we can only change the Chip Select (CS).

![](https://static.wixstatic.com/media/04fe82_2f2125c7dc78488ea268b077c299724e~mv2.png)

The basis used in the development of this code was the WebServer example, available in the Arduino IDE, File -> Examples -> Ethernet -> WebServer. Our goal is to first establish communication with the Arduino using the example, for this we need to make two initial changes, adjust the IP and define the Chip Set pin.

---

Source: https://maker.wiznet.io/gemma/projects/node-red-lendo-dados-via-ethernet-com-arduino-node-red-reading-data-via-ethernet-with-arduino/
