I have a remote emonTx v3 up and running and reporting sensor data to emonCMS via wifi and emonESP.
I want to now calibrate the VRMS and CT readings. I am using the Arduino software and can view the emontx outputing to the serial window with a USB UART adaptor.
As I am using an emonESP I could disable the RF function.
I have found the following sketch:-
How is best to comment out the RF function so that it is not operating, and keep the wifi connection?
Regarding the calibration, is it better to edit the sketch or am I correct in thinking it is possible to calibrate it on the fly using commands in the serial window?
I would normally play with this and use trial and error to learn how the sketch behaves. However this emonTx lives in a communal electric meter room - it is not easy to get access inside and I cannot spend a good deal of time in there once it is open. I need to edit a sketch and upload/calibrate when I can get brief access.
Not totally clear from Trystan’s answer, you can both calibrate and disable the built-in ISM band radio using a laptop & programmer on-site and the serial connection.
Here’s a general readable & printable write-up of the commands to calibrate an emonTx or emonPi. The emonTx will give you the specific available commands if you ask it with ‘?’.
It would be nice to turn off the r.f., but it’s not necessary.
For a reason I don’t know, that appears to be no longer required.
However, ‘x’ should have worked and shown “Continuing…”, and ‘v’ should too and shown “EmonTxV4 V2.4.0”. (Note: lower case ‘x’ and ‘v’).
‘w0’ should have turned the radio off (and replied “RF off”) or ‘w1’ turns it on and replies “RF on”. (No spaces between ‘w’ and ‘0’
No, the value required is the phase error in degrees, the default is 3.0 (degrees), but if you want or need accuracy, adjust the value so that the power factor reads as close to 1.0 as possible (or real power is equal to apparent power) at the “normal” current you draw.
(I did warn you that the sheet was “general”, and some sketches don’t use all the commands listed. But all the commands listed by the emonTx with ‘?’ should have worked.)