If you look at the source code for the sketch that you are running, the names of the variables will give you a good clue. EmonLib calculates:
realPower,
apparentPower,
powerFactor,
Vrms,
Irms.
Those can be (but aren’t for that particular sketch) calculated for each of the 3 c.t. inputs.
I should point out that that is a demo sketch for emonLib. You’ll find fully engineered sketches for the emonTx V2 in a separate section (“emontx2”) of Github.
Is there any actual documentation specifically for emonTX Arduino Shield? The User guide is kinda jumbled and not specific, or at least my reading of it.
Indeed - but I have one, and there are many in service!
The emonTx V2, V3.2 & V3.4 and the emonTx Shield V1, V2.1 & V2.5 are all basically the same - their objective is the same and they all use the same processor - but they are all different in detail. It should go without saying that the emonTx has the processor on-board, whereas the Shield uses the processor of the Arduino it’s piggy-backed on.
Now this is what causes me problems, you refer to the emonTx but you are not talking about the emonTX that I have. I have the emonTX version 2.4 I would think that someone could have shown a little creativity and come up with different names instead of being lazy, to much trouble.
Moving on!!
I have my emonTx shield operating and getting strange readings:
Ah, so you really have an emonTx SHIELD, not an emonTx, after all. You have been confusing me by referring to it as an emonTx, and I thought the “2.4” was a typo or a misread, because I think not very many V2.4 shields were produced.
Take a look at the “Shop” website, where you’ll see that in their appearance, the two are quite different beasts.
So you need to be using the sketches for the emonTx Shield, not those for the emonTx. I think you’ll find that when you have the equivalent sketch for the emonTx Shield, things might change. For example, you’ll find there is the code for 4 c.t’s.
I was using the “Internet” before there was a World Wide Web and learned, especial in a HELP situation
one should always give a link when making a reference, even when you assume the correspondent “should” know the links.
“Take a look at the “Shop” website” and “So you need to be using the sketches for the emonTx Shield”
were meanigless to me.
I “assume” I will load Shield_CT1234.ino on my Arduino but what do I do with
emontx_lib.ino and platformio.ini?
I “think” I might have seen a reference to a different platform that the Arduino but …
I will look at the code possible that will give me a clue.
It’s a not-so-well documented fact that calibration of the Tx SHIELD is related to the supply voltage, hence calibrating of the FTDI supply might give a different result than calibrating from a USB supply through the arduino.
Go have a look around the forum first, everything else is there, or github for the code.