EmonTx4 not getting VRMS value

Hi,

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?

Alex

Hello @psykok

Could it be that the calibration for the voltage channel has somehow been corrupted?

Could you check the configuration using the steps outlined here: Configuration — OpenEnergyMonitor 0.0.1 documentation?

the configuration is the following:

firmware = emon_DB_12CT
version = 1.2.0

hardware = emonTx4
voltage = 1phase
Loaded EEPROM config
vCal = 101.30
iCal1 = 20.00, iLead1 = 3.20
iCal2 = 20.00, iLead2 = 3.20
iCal3 = 20.00, iLead3 = 3.20
iCal4 = 20.00, iLead4 = 3.20
iCal5 = 20.00, iLead5 = 3.20
iCal6 = 20.00, iLead6 = 3.20
iCal7 = 20.00, iLead7 = 3.20
iCal8 = 20.00, iLead8 = 3.20
iCal9 = 20.00, iLead9 = 3.20
iCal10 = 20.00, iLead10 = 3.20
iCal11 = 20.00, iLead11 = 3.20
iCal12 = 20.00, iLead12 = 3.20
pulse = off
RF = off
datalog = 9.80
json = on
vrefa = 1.0257
DEBUG :
V1 = 0.00,V2 = 0.00,V3 = 0.00

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?

I already tried the reset command and the pre build firmware, the outcome is always the same: no values

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.

1 Like

Has this emonTx4 worked previously for you @psykok or is this the first time that you are setting it up?

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 I made a mistake in the compiled firmwares for the emonTx4 12CT configuration that @reedy picked up here emonPi not seemingly automatically seeing Tx4 with 12 CT firmware - #9 by TrystanLea I wonder if you could try uploading again? It does look like your serial print out did have the hardware allocated correctly so may not be this issue.

yes it worked for a short time

I’m have a single phase installation

I tried to link V1 V2 and V3 together and using the original emonLibDB demo sketch but I’m still getting 0.00v measured on the 3 inputs.

I checked on the board and I have 0.255v on D6,D10 and D11.

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.

Noted, thank you.

Why should it be 0.512?

It should be ~0.512V DC and ~0.297 V AC at that point I believe, which sounds like it’s ok up to that point?

The midpoint of the ADC input range of 0 – 1.024 V, which 0.333 V rms sits nicely inside.

REALLY ? ? ?

1 Like

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?