ESP32 MASTER - ARDUINO NANO SLAVEs with IC MAX485 and MODBUS PROTOCOL

FraRoberto
Posts: 2
Joined: Tue May 02, 2023 11:21 pm

ESP32 MASTER - ARDUINO NANO SLAVEs with IC MAX485 and MODBUS PROTOCOL

Postby FraRoberto » Wed May 03, 2023 12:07 am

Hello everyone, I have some communication problems between ESP32 and Arduino Nano via IC MAX485 and with the use of the Modbus protocol, I would like some help from you ESP32 experts.
I'll explain in detail where I have problems: I'm using a 38 PIN ESP32 WROOM 32 as Master in a project I made a couple of years ago with Arduino Nano V3. My initial project was to use Arduino nanos as slaves that were polled by another Arduino nano as masters. Now I would like to replace the Arduino nano Master with the ESP32 to have more performance.
I state that for me it is the first time that I use the ESP32, so forgive me the ignorance I show on this MCU.
Attached is what I've made at the moment on breadboard.... everything works except the communication between ESP32 and Arduino nano.
master_esp32_01.png
master_esp32_01.png (666.49 KiB) Viewed 1730 times
At the moment I'm testing the communication with only one slave, but actually the project has 4 slaves (all Arduino nano V3)
I am using Software Serial for serial communication. Below is the master's sketch.... in zip file..

thanks in advance to those who want to help me out.
Attachments
prog_17_esp32_tft_04.zip
(10.06 KiB) Downloaded 174 times

FraRoberto
Posts: 2
Joined: Tue May 02, 2023 11:21 pm

Re: ESP32 MASTER - ARDUINO NANO SLAVEs with IC MAX485 and MODBUS PROTOCOL

Postby FraRoberto » Fri May 05, 2023 9:24 pm

Is there really no one who can help me?

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 MASTER - ARDUINO NANO SLAVEs with IC MAX485 and MODBUS PROTOCOL

Postby ESP_Sprite » Sun May 07, 2023 8:05 am

Well, you're not asking a question, for one, so no one knows what you're in need of help with specifically.

Who is online

Users browsing this forum: No registered users and 105 guests