How to interface ESP32 with RS485 (Modbus) sensors with example code

preview_player
Показать описание
In this video, we showed how we can interface ESP32 to any RS485 Modbus RTU based sensors using Arduino IDE. We created an example project by interfacing an RS485 Modbus protocol-based energy meter (DDM18SD) using MAX485 (TTL to RS485) IC and collecting current, voltage, and frequency data from the energy meter.

Рекомендации по теме
Комментарии
Автор

Hello, In My serial monitor it is error code E1. Please advise me.

h.thawatchai
Автор

Why the parameters return just "0, 00". The energy meter read voltage, currente and frequency but in the serial monitor read just 0, 00

AdelinoMotahotmail
Автор

ESP32 pins are not TTL, they are 3.3v how did you connect the rs485?

IsaacBG
Автор

Hello, I am developing a project with the energy meter TAC1100 from TAIYEDQ I'm using the ESP32 from LILYGO TTGO T-PCIE and MAX485 from but it is giving an error " Failed, Response Code: E2"
I'm using the same pins referenced in the project and the TAC1100 configuration is:
ID 14
BD 9600
Party Even

AdelinoMotahotmail
Автор

Hi there! Can you please share the source for the sketch you're running in this video? Your example on your plog post doesn't work at all and I noticed it's setup to be slave 14 instead of master.

wolfjmz
Автор

Nice work! I do have my slave addr (17), but it seems I am having some sync problem, as the serial monitor is only displaying crazy squares. I am using 115200 baud rate for the monitor. Any thoughts?

AnnaJulia-nptn
Автор

The how to part of the video is missing.

kesterbelgrove