ESP8266 (NoceMCU), EPEver Tracer A and MAX485 module

Dear Pete
As I was really impatient, I found some gap in the schedule and went into the field to try the code you share on my Tracer.

It didn’t work at first giving me some “Bad Read” output.

I was powering the Wemos from the PC, and I tried to power it from the Tracer (connecting the orange pin the +5V). The Wemos got powered but I got some nonsense readings (see the picture below).


Then I tried to change the wires from the Tracer in the A and B slots, no result.
Then I put again the wires from the Tracer in the A and B slots as originally and connected the Wemos to the PC (powering the Wemos from the micro USB). And then bang - I started to get some “normal” readings :smiley: !!
I honestly don’t know why it didn’t work right away. Maybe some wire wasn’t connected properly? Don’t know… Anyway, thanks again for the code they shared!

The interesting thing is that when I tried to connect the micro USB cable to some power supply adapter (for phone charging 2A) I got again some nonsense reading, same as when I was trying to power the Wemos from the Tracer +5V pin and GND.

Seams like the only way to make it work from micro USB is to power it from the PC! Why?
I didn’t have with me the jack so to try to connect the Wemos from the proper power supply to test a “separate” power supply (I will try this too). This is now worrying me because if I cant manage to power it from some power source it’s unusable. I don’t understand what is behind such behavior.

I will now work on putting your code in the sketch from tekk code and a ThingSpeak connection too.

One more question. In an earlier post you put your code for powering on/off of the Tracer load. Do you still use the same code for this purpose?
Paolo