Raspi Pico Ethernet Modbus TCP UART
Автор: HadiSCADA
Загружено: 2025-11-27
Просмотров: 57
This project is similar to the previous video: connecting two Raspberry Pi Pico boards to bridge Modbus TCP data between them. The difference this time is that we're using different hardware — the RP2040-ETH (we also tested the RP2350-ETH). The main change is in the LAN connection — now we're using a proper Ethernet port instead of Wi-Fi.
We're still using Thonny IDE with MicroPython as the programming language. However, in this script, we don't need to install any external packages because both Ethernet communication and Modbus protocol handling are done via UART. So, there are a few additional .py configuration files included for this setup.
The system works the same as before:
Pico A reads data from a Modbus TCP Server (we're using ModbusHD as a simulator), then forwards the register data to Pico B via UART. On Pico B, the received data is mapped to Modbus registers and published as a Modbus TCP Server. Another instance of ModbusHD is run as a Modbus TCP Client to read data from Pico B's Modbus server and verify that the data is identical and synchronized with the original data read by Pico A from the main Modbus TCP Server.
You can download the firmware and Python scripts here:
https://mega.nz/file/EjgQADKJ#vyJE81s...
Please check and possibly modify the IP address sections in the scripts according to your own network.
That's all from us — hope this is useful!
Thank you.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: