Blog
OpenEnergyMonitor

Power emonTx from single AC power supply - Part 2 bench testing



Back in May last year we did some work (with the help of Robert Wall and others) into the design of an AC-DC circuit to allow the emonTx to run off a single AC power adapter while at the same time taking accurate AC voltage samples to be used for Vrms, real power, frequency and power factor calculations. Read the original blog post detailing how the circuit works. Basicly, it's a half wave rectifier circuit with a carefully chosen value current limiting resistor. 

Just to recap, the challenge is powering the emonTx with 3.3V DC while not loading the AC adapter as to not effect the quality of the AC sine wave sample. An as close to perfect AC sample is desirable for best accuracy of real power readings, 

We have finally got round to testing the circuit we simulated using LT SPICE. In summary, results are positive, the circuit works as expected!

Here's what I did: the following circuit was built on a bread board, using an emonTx with the voltage regulator. The standard Ideal Power 9V AC-AC adapter from the shop was used for the test.

Scope trace showing input to voltage regulator
Half-wave rectifier circuit

A sketch was uploaded to the ATmega328 on the emonTx to cycle through a number of different power levels while using a scope to measure the sawtooth voltage waveform going into the MCP1702 voltage regulator. The following was recorded

Power State Current draw Vrms into MCP1702 Delta V into MCP1702 AC Voltage sample ripple
Sleep 25uA 16.4V 0V

ATmega328 only 7.7mA 12.7V 2.72V

ATmega328 + RFM12B 8.1mA 12.5V 2.8V

ATmega328 + LED 16.9mA 10.1V 5.5V

ATmega328 + LED + RFM12B 17.3mA 10V 5.53V Approx 80mV (limit of the scope)

The voltage limited zener diode was omitted from the test setup but will be present in the main circuit to avoid over volting the MCP1702 when supply is un-loaded.

The AC voltage sample will be taken when the emonTx is consuming 7.7mA (ATmega328 only running), the test has assured me that the circuit will be able to provide 3.3V DC without hardly any distortion to the AC waveform. There was only a 80mV ripple when drawing 17mA we can expect the ripple to be under half this when the emonTx is drawing 7.7mA.

It's interesting to note that the RMF12B (when idle, not sleeping) draws 0.4mA and the LED draws 9.2mA. The circuit is speed up to 20mA max so it would be possible to add one DS28B20 that will at maxim consume 2.3mA for short periods.

AC-DC circuit will be incorporated into the next version of the emonTx. Further testing will be done on this prototype to double check everything.

Roll on single power supply Real Power accurate energy monitoring. As well as being a neater setup it will also significantly reduce the carbon footprint and amount of electrical waste which will eventually go into landfill if we can enable the emonTx to only need the one plug-in power adapter. 

To engage in discussion regarding this post, please post on our Community Forum.