I have an issue with my second emontx4 board.
Everything looks fine but no value for VRMS is measured.
I added some debugging line in the firmware, the function EmonLibDB_getVrms(1) always returns : 0.00
I checked the VS1 voltage coming from the EmonVS is fine.
The EmonVS is also working without issue with my other EmonTx4.
Any idea why the EmonTx4 is not getting the measurement for VRMS?
Can I read directly the input to see if it works correctly?
Thanks for the configuration print out, that looks fine.
Could you try resetting the configuration anyway?
send the command ‘r’
Did you compile and upload this firmware yourself? I assume you added the DEBUG bit? and the print out of all 3 voltages? Is it worth trying the pre compiled firmware again?
It might be worth trying one of the demo sketches that come as part of the emonLibDB download. If that works but shows zero, I think it’s a near certainty that you have a hardware problem.
You’ll shouldn’t need to alter the configuration in the demo sketch itself in order to see just the voltage. There’s no on-line config, no EEPROM, which rules those out; the ‘min’ and ‘max’ only use the serial output, there’s only one sketch with r.f. output.
As you’re in France, is it a single-phase or a 3-phase emonVs?
Is it possible to link pin 6 on the connector from the emonVs (the RJ45 next to the c.t. sockets) to either pin 5 or 4 (or both) and see if V2 or V3 show a voltage?
Hello @psykok does the firmware print anything else after the initial print out?
Do you get a line of text every 10s?
Do you get any sensible values for the power values?
without my added debugging lines, I’m not getting line every 10s because the firmware doesn’t pass the check at the beginning of the loop with EmonLibDB_Ready()
This is a cause for concern, @TrystanLea. It should be 0.512 or thereabouts. @psykok Did you check the 3.3 V and the 5 V power supply voltages?
Without a valid (more than a few volts) a.c. voltage detected, this is expected, because there is no reference to determine the start and end of a mains cycle so it cannot count them to know when to report the average.
The voltage at D6 (VSENSE1) should surely have both the 0.511VDC component from the bias together with an approx 0.297V AC RMS component coming through from VS1? or are we talking about different things?