There are some steps doing after my last posts. Simple alternative of MEM (Multichannel Electricity Monitoring) system was successfully prototyped and tested with modified version of emonLibCM on Leonardo compatible board (AVR-T32U4 by Olimex).
It works fine with all 12 ADC single ended inputs. The test were made with simulation of currents up to 20A and scan period of 1 sec. Typical output in JSON format looks like:
{ Va: 227.90, Hz: 50.016, Sp: 1,
Ia: [ 16.098, 16.080, 16.074, 16.075, 16.077, 16.076, 16.075, 16.077, 16.077, 16.075, 16.074 ],
PF: [ 0.9997, 0.9998, 0.9999, 0.9999, 0.9999, 0.9999, 0.9999, 0.9998, 0.9998, 0.9997, 0.9997 ],
Wr: [ 3668, 3664, 3663, 3663, 3664, 3663, 3663, 3663, 3663, 3662, 3662 ],
Wa: [ 3669, 3665, 3663, 3664, 3664, 3664, 3664, 3664, 3664, 3663, 3663 ],
Wh: [ 47, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46 ],
}
More details can be seen in updated version of Multichannel Home Electricity Monitoring System.
The functionality of emonLibCM was achieved by very simple changes in the library tied mainly with ability to access more ADC features of ATMEGA32U4 MCU.
This is the first step to use all ADC features especially differential inputs and the gain control of the internal opp amp.
Regards
Chris