Do you mean to calibrate your emonTx after youâve changed the value of the burden? Do you have a programmer?
If you do have a programmer, you need to download the default sketch (comprising 3 files, the main one is âEmonTxV3CM.inoâ from Github, change the value of i4Cal
to 90.91 (line 98 or so), compile and upload to the emonTx. Then ignore the change to P4 & E4 in emonhub.conf that follows. All those calibration constants assume our YHDC SCT-013-000 c.t., if you have a different one, the relevant constant(s) will need changing.
If not, the best place is in emonHub.conf - when you get your emonPi working. Find the section for your emonTx, and there is the specification that allows it to decode the data that the emonTx sends. It should be
[[15]]
nodename = emontx3cm15
[[[rx]]]
names = MSG, Vrms, P1, P2, P3, P4, E1, E2, E3, E4, T1, T2, T3, pulse
datacodes = L,h,h,h,h,h,L,L,L,L,h,h,h,L
scales = 1,0.01,1,1,1,1,1,1,1,1,0.01,0.01,0.01,1
units = n,V,W,W,W,W,Wh,Wh,Wh,Wh,C,C,C,p
whitening = 1
If you get silly numbers for the energy, you need to change the âdatacodesâ line to
datacodes = L,h,h,h,h,h,l,l,l,l,h,h,h,L
Notwithstanding that, the names, datacodes, scales and units all have a 1:1 relationship left to right, so to change the scale of the 4th input, you must change the scale of âP4â (for the power) and âE4â (for the accumulated energy). These will be the 6th & 10th items in the âscales=â line. Change the â1â to 5.44 ( = 120 / 22 where 22 is the 120 Ω & 27 Ω in parallel).
That is my new not-yet-released CM version for the emonPi. Like I said, you must substitute the paths and filenames for the one you compiled from this step:
Your âsourcefileâ will have the path where you downloaded the source, and the name of the file you downloaded - suffixed with â.hexâ; your âtargetfileâ should have the same path as mine and the same filename as the sourcefile.