Hello, I have a small project where I want to connect an RS485 sensor to an ESP32 microcontroller and read data from the sensor using the Blynk application. I have been searching for information on how to connect a Modbus sensor to the ESP32, but have not been able to find any helpful resources. Can anyone provide me with code or guidance on how to do this using the Max485 ?
The principal is the same as when you are using an ESP8266 based board such as the NodeMCU or Wemos D1 Mini, but obviously you’d use different pins.
A few fairly detailed topics about using these MAX458 boards and an ESP8266 based MCU with the Epever solar charge controllers here…
I’m new here.
My setup is: ESP8266 (NoceMCU), EPEver Tracer A and MAX485 module.
I’ve tried to make a upgraded version of jaminNZx’s
Tracer-RS485-Modbus-Blynk repo, because I wasn’t getting some of the data out from the Tracer. For example, load current and load power were always 0.00.
I also tried to add option to turn the load ON/OFF from the Blynk app, unsuccessfully for now.
Anyhow, I’ve used the cheapo MAX485 module, and it works flawlessly.
Exactly this one:
Online I’ve seen plenty of people connect to their solar controllers and read the data. I thought what a great idea, as I have 3 of them in my shed.
Yes. I’ve been here before, and I’m delighted to say I actually managed to complete a few projects. But, after spending the last few years on site out in the elements. The wind, sun and rain has washed out all traces of my ability to code, not that I had much in the first place.
So, here is my attempt at reading the data from m…