EmonLib for Arduino with CT is amazing! but only one input, I wish for two separate inputs ADC How get the library?
Welcome, Andy, to the OEM forum.
What you say isn’t true - sorry. The ‘old’ emonLib (the Discrete Sample version as opposed to the Continuous Monitoring version) can handle as many voltage and current instances as you need - even if your hardware is the limitation. I suggest you follow the link to ‘Docs’ at the top of this page, then ‘Learn - Electricity Monitoring’ where you’ll find the principles explained but more importantly, simple examples of reading current and voltage. To read a second (or third, or…) you add more instances of the “EnergyMonitor” class, e.g.
EnergyMonitor emon1, emon2, emon3;
As your electricity supply is very similar to ours, you’ll probably have only one voltage but several currents - each instance will use the common voltage input on the same Arduino pin, but its own current input and input pin. You’ll need statements like
emon1.voltage(2, 234.26, 1.7); // Voltage: input pin, calibration, phase_shift emon1.current(1, 111.1); // Current: input pin, calibration.
for each instance of the class. (
You’ll find a full working sketch also in “Docs” - this time under emonTx3 - Firmware and “emonTx34_DS_jeelib_classic”.