I have had an offline conversation with a reader about my endeavors with the ADE7763. Their application is similar to mine, but rather than monitoring at the breaker panel they wish to monitor (and control) at the plug level. I was asked to provide some pictures and schematics and so I do so here as well.Here is a close up of the ADE7763 on a SparkFun adapter board. You can see the crystal in the background. Hidden back there are two 22 pf loading caps as well. You can just see the common bare wire lead on the top right edge of the board. Jumper wires are primarily to connect the SPI bus to the Arduino. Fuzzy object is a nice juicy cap to smooth the power supply.
Backing up a bit you can see that the ADE needs very few components. Here we see a small cap on the Vref pin to stabilize it. Also to note, at this point the ADC inputs are all shorted to ground.
The two resistors and green jumper wire are a 50/50 resistor divider to give me a rough 2.5V reference.
Backing up even further we can see the Arduino. Connections to the ADE are limited to Vcc, Gnd, Clk, Din, Dout, CS*, RST*, and INT.
If the connections are not obvious, here is a simple schematic. Note that this is for the test version. The ADC inputs are shorted to ground. I will post further schematics when I finalize the sensor interface.
Backing up even further you can see part of my electronics bench with my Rigol 100MHz mixed signal oscilloscope (purchased from www.Saelig.com). It gives me 2 channels of analog and 16 logic. An ideal device for my type of development. It replaced 100 pounds of logic analyzer and oscilloscope that took up a huge chunk of desk space. Also visible is an ATX power supply turned into a bench supply and the monitor for my development computer. I need to wall mount the monitor at some point to reclaim table space.
Lastly is a picture of my AC voltage reference I will be using during testing. This is little more than a Radio Shack 120VAC to 12VAC transformer and a resistor divider (100K and 10K 15 turn pot) to get a 500mVAC peak to peak or 250mV zero to peak 60Hz signal.
Hi Skye, could you share your code?
I need to got voltage & current, appreciate!
I can share the code. At this point I have not worked on it for a while so it might take me a few days to polish it up. Got to make the comments family friendly! You should also be aware that the Arduino code is overly complicated because I have controls for an analog mux to switch between one of numerous CTs. I will try to comment that in the code so it could be removed easily.
Here is the latest code. I did nothing but zip it up and upload it to my website. I got called to work on my day off and had no time to clean it up.
PowerMeter.zip file
Hi Skye,
Have you reached any further with your energy monitor since Feb 2013?
I have not worked on this anymore. I had a working setup on a breadboard but stopped the project when I realized how much making 20 boards (one for each branch circuit) was going to coast me. Not just in parts, PCBs, and assembly, but having to get an electrician to install a new service panel with more room!
Thanks for responding. With you code as is, were you able to read anything from the ADE?
Yes I was. I had a few issues in reading certain registers. If I remember right, I was reading too quickly and was getting bad results.