I have just bought an emontx. It worked fine for a couple of hours, then the Vrms and P1 dropped to zero, and never recovered. After a reset all is fine for another few hours, when the problem repeats. The interval is fairly random.
One CT
AC adapter
Powered by USB
ESP8266 attached (emonESP firmware)
I’m sorry you seem to have a problem. A faulty a.c. adapter, socket, barrel plug are the first things I’d check, because I’ve never heard of that particular fault before.
That implies other data carried on regardless - is that correct?
Where are you seeing the data?
What do you have in the the way of test equipment in order to diagnose the fault?
That’s weird. I’m not familiar with the ESP8266, but I wouldn’t expect a fault there to give those symptoms.
But one thing is puzzling me - normally the emonTx reports every 10 s, yours appears to be reporting every 1.1 s approximately. Which sketch are you using, and how have you changed it?
I do notice that there are 3 seconds and three missing messages before it comes back with zero voltage, and then one or two missing messages between successful ones, which suggests a possible power loss/brownout and reset.
Notwithstanding all of that, if you disconnect the ESP and look directly at the serial output via your programmer, does voltage and power still disappear?
its the EmonTxV3CM Continuous Monitoring firmware which it came with (this looks right when I boot it connected to a programmer). I haven’t changed it.
The ESP8266 is flashed with this: GitHub - openenergymonitor/EmonESP: ESP8266 WIFI serial to emoncms link
I’ll try connecting a laptop to it via the programmer and see if the problem occurs. It may take a few hours.
Looks like it was the ESP8266. When I linked it to a laptop it worked for a few hours, so I swapped in a Pi zero, with a script to send data to emoncms, and it worked fine all night. fingers crossed that was it.
I did PM Trystan as it’s his sketch in the emonTx and I think he knows about the ESP8266, but he hasn’t come back to us yet.
Is it now reporting every 10 s as it should, rather than every second?
Why I ask is I’ve a vague memory of someone else having trouble with an ESP, and they took out the live configuration/calibration facility. From that, my guess is the ESP is sending random stuff back to the emonTx when it shouldn’t, but I can’t prove it.
yes, it is reporting every 10s now. I agree that it looks like something was going back to the emontx from the ESP that upset it. Its still working well with the Pi serial connection.
I meant to point this out earlier - The large number you see for your energies is because the sketch uses unsigned long for the type when packing the data to send in the payload for the radio, when in fact the library correctly returns a long (signed).
You should have seen a negative energy because you were nett exporting at the time.
Its been working perfectly with the Pi Zero since I swapped that in. However, I do like the ESP8266 idea, as I use those for other little projects I have going.
Better when one considers that it’s capable of running an actual OS.
Especially for what they cost, not to mention the community behind the entire RPi product line.