crjens
Posts: 17
Joined: Wed May 13, 2015 3:59 pm

PiPowerMeter: Home energy monitoring

Wed May 13, 2015 4:26 pm

Hi,

I've been working on a Raspberry Pi based home energy monitor that i'd like to share with the group. It's based on the Cirrcus Logic CS5463 energy IC and supports monitoring up to 128 circuits. The Raspberry Pi runs a nodejs based service that controls the hardware and a web based monitoring portal. All data are stored locally on the Pi on a sqlite database. The system is 100% stand-alone and requires no additional hardware or servers. A couple systems have been running very reliably for almost a year.

The source code, Eagle files and additional information is available on Github: https://github.com/crjens/PiPowerMeter

Please feel free to contact me with questions, comments, feedback, etc.

Thanks,
Craig
boards (300x225).jpg
boards (300x225).jpg (63.17 KiB) Viewed 13222 times

prairietech
Posts: 28
Joined: Wed Mar 20, 2013 9:22 pm

Re: PiPowerMeter: Home energy monitoring

Wed May 13, 2015 7:56 pm

Have you considered selling pc boards? Looks like the best home power monitoring solution I have seen. Plus nothing in the Cloud.

crjens
Posts: 17
Joined: Wed May 13, 2015 3:59 pm

Re: PiPowerMeter: Home energy monitoring

Wed May 13, 2015 8:25 pm

Thanks for the kind remarks. I do have extra boards that I'd be willing to part with. Direct message me if anyone is interested.

dbfletcher
Posts: 3
Joined: Thu May 14, 2015 6:20 pm

Re: PiPowerMeter: Home energy monitoring

Thu May 14, 2015 6:27 pm

This is exactly what I have been looking for! Unfortunately, since I just joined this forum when I found your post, It wont let me private message you. I am very interested in purchasing your boards if you do have some for sale. Perhaps you can message me?

Thanks,

Doug Fletcher

philletourneau
Posts: 10
Joined: Thu May 28, 2015 5:13 pm

Re: PiPowerMeter: Home energy monitoring

Thu May 28, 2015 5:14 pm

Me too!

How can I get in touch?

crjens
Posts: 17
Joined: Wed May 13, 2015 3:59 pm

Re: PiPowerMeter: Home energy monitoring

Fri May 29, 2015 4:50 am

@philletourneau - email me at [Mod: removed email address -please use PM] if you are interested in boards.

User avatar
rpdom
Posts: 15184
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: PiPowerMeter: Home energy monitoring

Fri May 29, 2015 5:00 am

dbfletcher, philletourneau: You can't PM people until your first post has been approved by a moderator. The fact that I can see your posts now means they have been approved and you should be able to PM now.

Massi
Posts: 1691
Joined: Fri May 02, 2014 1:52 pm
Location: Italy

Re: PiPowerMeter: Home energy monitoring

Fri May 29, 2015 7:01 am

Definitely following this topic :)
nice work, i was looking for something like this..

jrmatos92
Posts: 3
Joined: Thu Jun 18, 2015 6:15 pm

Re: PiPowerMeter: Home energy monitoring

Thu Jun 18, 2015 6:19 pm

What are your feelings on substituting your CS5463 for either, MCP3917 or ADE7878?

MCP3917:
http://ww1.microchip.com/downloads/en/D ... 05216A.pdf

ADE7878:
http://www.analog.com/media/en/technica ... 8_7878.pdf

crjens
Posts: 17
Joined: Wed May 13, 2015 3:59 pm

Re: PiPowerMeter: Home energy monitoring

Fri Jun 19, 2015 10:42 pm

I'm not familiar with either of these IC's but I took a quick look at the spec sheets.

The MCP3917 appears to be a multichannel A/D converter and does not support direct calculation of energy, etc. If you went that route you'd need to come up with some way to do those calculations.

The ADE7878 appears to be a close replacement for the CS5463. It samples input voltage and current and performs various energy calculations. I'm sure you could swap out the CS5463 for the ADE7878 pretty easily. One advantage to the ADE chip is that it has more inputs and could be used to directly perform 3-phase energy measurements where the CS5463 would require sampling each of the 3 phases independently and summing the results. Cirrus Logic makes several other multichannel IC's that could be used in a similar manner: http://www.cirrus.com/en/products/energ ... ement.html

Was there some other reason you were looking at these IC's?

jrmatos92
Posts: 3
Joined: Thu Jun 18, 2015 6:15 pm

Re: PiPowerMeter: Home energy monitoring

Mon Jun 22, 2015 3:44 pm

I am trying to build a system that is able to monitor both three phase and single phase.

I found the ADE7878 thinking i could put two of these ICs on my board so i can monitor 1-three phase input and 3-single phase inputs.

You think the ADE7878 is a good fit for this or does cirrius logic have a chip that you think would be better?

crjens
Posts: 17
Joined: Wed May 13, 2015 3:59 pm

Re: PiPowerMeter: Home energy monitoring

Mon Jun 22, 2015 4:41 pm

The 7878 does appear to be a better fit for direct measurement of 3 phase as it has enough voltage and current inputs to directly perform the 3 phase energy calculations.

As I mentioned above, another way to do it is to separately measure each leg of the 3 phase circuit and then sum the results to get energy usage. I only mention this because I've created an updated version of my board (V2.2) that has three voltage inputs and is now able to do exactly that. It's a sampling system that uses multiplexers to alternately measure each circuit so it's not a perfect fit for metering applications where you need to measure energy usage 100% of the time. It's great for most home applications where you just want to know how much energy is being consumed on each circuit.

Take a look at the latest schematics on my github (https://github.com/crjens/PiPowerMeter/ ... er.sch.png) site if you are interested. I also have a few extra boards available if you want to try it out.

jrmatos92
Posts: 3
Joined: Thu Jun 18, 2015 6:15 pm

Re: PiPowerMeter: Home energy monitoring

Thu Jul 02, 2015 4:16 pm

How do i go about getting one of your boards? id like to check it out!

But what do you suggest i do if i want to create a system that monitors both three phase and single phase? Looking to monitor about 10 single phase loads and 2 three phase loads. Would like to build a system that is revenue grade so i can very accurately compare my loads in my house.

Should i take a couple ADE7878 chips and then use multiple single phase IC meter chips such as the ADE7816? Or do do suggest another single phase IC?

wandido
Posts: 1
Joined: Fri Jul 17, 2015 11:10 am

Re: PiPowerMeter: Home energy monitoring

Fri Jul 17, 2015 2:31 pm

I have been watching the emonPi that is integrated wiith Raspberry Pi but only has two sensor connections but then there was this http://boredomprojects.net/index.php/pr ... jeenodeusb with 12 inputs.

I however love this idea for the PiPowerMeter and want to see how it is going..

Great work

mdetector
Posts: 1
Joined: Wed Sep 09, 2015 6:13 am

Re: PiPowerMeter: Home energy monitoring

Wed Sep 09, 2015 7:03 am

Nice project! I have WAGO controller and posibility to use special power measurement module, but PLC's power consumption is quit high comparing to Raspberry PI and whole system is quit expensive too. My aim is to monitor heat pump work (via Modbus RTU) and power consumption, collect data and see on mobile devices in real time. I will study your project, it seems very promissing!

MOKANMAN
Posts: 1
Joined: Tue Oct 13, 2015 6:02 am

Re: PiPowerMeter: Home energy monitoring

Tue Oct 13, 2015 6:14 am

Just joined the forum to see if you still have pc boards available. I understand that once a moderator approves this post then I should be be able to PM you about it.

Thanks,
Craig (yeah, that's my name, too)

crjens
Posts: 17
Joined: Wed May 13, 2015 3:59 pm

Re: PiPowerMeter: Home energy monitoring

Tue Oct 13, 2015 2:54 pm

@MOKANMAN - Yes I still have boards available. I'll IM you details

cumak
Posts: 3
Joined: Sat Oct 31, 2015 8:33 pm

Re: PiPowerMeter: Home energy monitoring

Sat Oct 31, 2015 8:44 pm

Craig - if you still have boards available then I'm interested as well. I've wanted to set up a home energy monitoring system for a while now. I came across your project and I'd love to give it a try.

Thanks,
Mark

crjens
Posts: 17
Joined: Wed May 13, 2015 3:59 pm

Re: PiPowerMeter: Home energy monitoring

Mon Nov 02, 2015 3:55 pm

@cumak - boards are available for $75 for the control board and $25 for each 16 channel input board. You can stack up to 8 input boards on a single control board. The boards are fully soldered, tested and ready to go. You'll need to supply your own Raspberry Pi and current sensors. IM me if you are instested.

Thanks,
Craig

nlmike
Posts: 1
Joined: Thu Nov 05, 2015 11:59 am

Re: PiPowerMeter: Home energy monitoring

Thu Nov 05, 2015 12:04 pm

Hi Craig,

I just registered as to be able to IM you about getting your boards. I am already using a Raspberry Pi in my home automation project, and I am definitely interested in adding power monitoring to my setup.

Thank you for your work,
Mike

cumak
Posts: 3
Joined: Sat Oct 31, 2015 8:33 pm

Re: PiPowerMeter: Home energy monitoring

Tue Nov 10, 2015 2:39 am

Craig,

Thanks for your reply. I'm definitely interested in getting some boards, I just need to figure out how many circuits I have room for but I'll IM you when I'm ready.

In the meantime, I had a few questions I was hoping you could answer. I figured I'd post them here as others might benefit as well.

1) The CT you're using (SCT-013) is pretty big and I wouldn't have room to put them on all circuits. Since most of my circuits are 15A or 20A, I was thinking of trying these little 20A solid core CTs:
http://www.aliexpress.com/store/product ... 91810.html

Based on the current input and output specs it appears to have the same 2000:1 turns ratio as the SCT-013. Do you think these can be used as an alternate CT?

2) There are some similar solid core CTs rated for 30A and 50A on ebay, but they have a 1000:1 turns ratio. (For example, 50A/50mA.) Could your software accommodate this? Would the 5 ohm shunt resistors on the CTs need to be changed?

3) (I'm sorry if this is a stupid question...) I followed your instructions on GitHub and the installation seemed to go fine. However, I can't figure out where to point my web browser to interface with it.

Thanks for your help.

-Mark

crjens
Posts: 17
Joined: Wed May 13, 2015 3:59 pm

Re: PiPowerMeter: Home energy monitoring

Tue Nov 10, 2015 4:35 pm

Mark,

You can use any CT's that you want as long as they are current output type (without internal shunt resistors). The one you specified should work just fine but since they are not split core but you'd need to disconnect your circuits and feed the wires through. I've used the SCT-006 (30A)http://www.yhdc.com/en/product/348/ which are small and work very well. I've also used SCT-019 (200A) for my mains http://www.yhdc.com/en/product/347/. Just let me know which ones you are planning on using because we may need to adjust the size of the current sense resistors to match the current output of the particular CT's.

The web server runs on port 3000, so jut hit http://<ip address>:3000. You won't see much but should be able to get to the configuration pages, etc.

cumak wrote:Craig,

Thanks for your reply. I'm definitely interested in getting some boards, I just need to figure out how many circuits I have room for but I'll IM you when I'm ready.

In the meantime, I had a few questions I was hoping you could answer. I figured I'd post them here as others might benefit as well.

1) The CT you're using (SCT-013) is pretty big and I wouldn't have room to put them on all circuits. Since most of my circuits are 15A or 20A, I was thinking of trying these little 20A solid core CTs:
http://www.aliexpress.com/store/product ... 91810.html

Based on the current input and output specs it appears to have the same 2000:1 turns ratio as the SCT-013. Do you think these can be used as an alternate CT?

2) There are some similar solid core CTs rated for 30A and 50A on ebay, but they have a 1000:1 turns ratio. (For example, 50A/50mA.) Could your software accommodate this? Would the 5 ohm shunt resistors on the CTs need to be changed?

3) (I'm sorry if this is a stupid question...) I followed your instructions on GitHub and the installation seemed to go fine. However, I can't figure out where to point my web browser to interface with it.

Thanks for your help.

-Mark

cumak
Posts: 3
Joined: Sat Oct 31, 2015 8:33 pm

Re: PiPowerMeter: Home energy monitoring

Sun Nov 15, 2015 1:32 pm

The web server runs on port 3000, so jut hit http://<ip address>:3000. You won't see much but should be able to get to the configuration pages, etc.
(Sorry, another stupid question...) After install should the server be running, or do I have to do something else to run it? I can't connect with a browser, and if I list the processes "ps -e" I don't see anything running that appears to be part of this package (at least nothing obvious). I'm using the Raspian browser and pointing it to http://127.0.0.1:3000

I'm a linux noob so I just want to make sure I can get the software running before I start buying stuff.

Thanks,
Mark

crjens
Posts: 17
Joined: Wed May 13, 2015 3:59 pm

Re: PiPowerMeter: Home energy monitoring

Mon Nov 16, 2015 6:14 pm

You'll either have to reboot after the install or else type 'nodestart' from the command prompt to get the node process started. It should auto start when the system reboots.

NB_LG
Posts: 1
Joined: Sat Dec 12, 2015 11:34 am

Re: PiPowerMeter: Home energy monitoring

Sat Dec 12, 2015 11:39 am

Hello Craig,

Very interesting energy monitoring solution. I am wondering if you still have some boards available for sale?

Luc

Return to “Automation, sensing and robotics”