Measuring the current in a domestic property using a clip-on CT sensor can be quite challenging since the range in which it has to work over is very large, potentially several order of magnitude: up to 25000W and down to a few 10'sW. We would like to have good accuracy over this wide range.
We have been exploring how to improve on the current emonTx. Robert Wall has written a page detailing the measurement implications of current emonTx ADC resolution at low current values when using the standard 100A max CT sensor and 18R burden resistor.
A while back we came across an application note from ATmel detailing how to build a fully featured energy monitor using CT sensor, AC voltage measurement and the ATmega328 MCU. App-notes are a fantastic source for open-source hardware information. The ATmel energy monitor app-note is very comprehensive and well written. It's even got a Bill of Materials that specs down to individual resistors complete with their corresponding Farrnel order codes!
Download the app-note .pdf here: www.atmel.com/Images/doc2566.pdf
|Diagram from Atmel app-note - potential divider resistor values where changed to enabled the AC signal to be biased to Vcc/2|
The app-note circuit achieves good resolution and accuracy over a wide range by having a adjustable op-amp gain stage. Using the resistor values in the inverting op-amp the gain can be switched from -1.25, -10.26 and -69.11. The gain is switched by digital switching the Bilateral Switches (74HC4066). The gain of the op-amp is calculated as follows:
A couple of days a ago we built up a prototype of the above circuit, more an an exercise to check we can make it work rather than a scientific test, this would be difficult on a breadboard due to the sub-optimal circuit layout. A spare emonTx PCB was used as an easy way to connect the circuit up to an ATmega328 and RFM12B.
|Adjustable gain op-amp CT sensor circuit - prototype|
|ATmega 328 ADC sample using VI sampler|
The circuit worked first time with no hiccups. The above waveform is the RAW output from an ATmega 328's ADC, where one 100W light bulb and 30W laptop PSU was connected to the AC circuit being monitored. The high gain stage (x69.11) was active. To put this in perspective if the same sample was run on the current emonTx the signal would be so small as to be only just visible on the VI sampler. The spikes at the peak of the waveform is caused by the laptop's switch-mode PSU. The significantly increased amplitude of the signal will improve accuracy when monitoring low power levels. The app-note suggests accuracy of <1% over a wide range, possibly even better with careful PCB design.
Although this multi-gain op-amp circuit adds significant complexity over the current emonTx current monitoring circuit it can be added for relatively low cost. One quad op-amp and two quad bilateral switches IC's cost about £1, this is enough for 4 x CT channels. We're planning to use this circuit design in the forthcoming emonTx SMT. As the name suggests this board will be designed for SMT components and will be assembled by pick-and-place. See this forum thread for a discussion regarding ideas for the emonTx SMT. Design is progressing well, more details on this soon.