element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Pi IoT
  • Challenges & Projects
  • Design Challenges
  • Pi IoT
  • More
  • Cancel
Pi IoT
Blog Pi IoT - Simone - #4 - Power consumption statistics and control
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: bosc
  • Date Created: 28 Aug 2016 7:33 PM Date Created
  • Views 426 views
  • Likes 1 like
  • Comments 0 comments
  • pi 3
  • pi iot
  • i2c
  • raspberrypi.
  • pi iot design challenge
Related
Recommended

Pi IoT - Simone - #4 - Power consumption statistics and control

bosc
bosc
28 Aug 2016

Before note:

I am not and electrical engineer nor do I have experience working in this field. Please double check anything I say in this post before trying it yourself.

 

Previous posts:

Pi IoT - Simone - Introduction

Pi IoT - Simone - #1 - Light Controller

Pi IoT - Simone - #2 - Main System

Pi IoT - Simone - #3 - Door / Window notifier

 

For this part of the project the main idea is to have a device that can calculate the power consumption on each wall outlet in particular. This can give you a good statistic of the power consumption and it can help you minimize the energy needed to run your house.

The control part comes with the ability to turn the sockets on and off. Mostly this feature is not very useful but if you have kids for example you could start a socket only for two hours so you can charge your phone and then it will be safe for the kids to play around. This is only an example but you can find other uses for this.

 

The switch part is the same as the one for the light switches, it acts the same way and it has a relay so it can be implemented the same way. One thing to take into consideration is the power consumption and the limit of the relay you are using or you could burn it very easily.

 

The main chalange of this part of the project is to make a component that can accurately calculate the power consumption even for small consumers. The I2C Protocol described in the previous posts is good enough to send the information to the Raspberry Pi and it has the processing power to display it in any form needed.

 

I will get more into details but first I would like to say that this is very dangerous and this should not be implemented by someone who does not have any experience in working with high currents. Also spend a while searching online for discussions and topics about this and also safety advices.

 

If you do want to go ahead with this, here are some things to take into consideration one by one before plugging in a device:

1. Reconsider if you really need to do it and if it is worth it.

2. Make sure the component is not plugged in when you are arranging everything for the test

3. Make sure you are at least one meter away from the device during the testing phase when it is plugged in. You don't know for sure what will happen and mistakes can be made.

4. It is better to have somebody with you at a safe distance so he can help but in case you are working alone make sure there are no people in the area so they do not touch anything by mistake

5. Remove all animals from the room.

6. Make sure you isolate your component well from anything that might be a conductor ( I burned a component because it made a contact through a wooden floor )

7. You should always be able to stop the power at any time, without getting close to the component you are testing

8. Minimize the damage if anything is wrong by keeping the device away from other instruments you use and not connected to anything.

9. Try to develop a way that you can see the readings from a distance or record them on to something so you don't have to get close

10. Make sure your calculations are right and double check them.

11. Reconsider again if you really want to do this

12. Never let the component unsupervised while plugged in unless it is well tested and well isolated.

 

Please comment below any thoughts on this and I will add them to the list above. I would be glad if this list can be a genuine checklist of thing to consider before testing components with high current.

 

Now that this is said, here are some options that can be used to calculate the power consumption:

1. The safest way to do this ( not really safe but safer than others I know ) was mentioned to me in a previous post by jc2048 and it refer to the SCT 013-030. More details can be found at 3. AardEnergy – Current and Voltage Transformers . Again, thank you Jon for the advice.

image

 

2. A nice component that I found is this one: https://www.sparkfun.com/products/8883  It works pretty well but it is not a non intrusive solution as the one above. I for one tried to replicate it and ended up with a pretty good current sensor ( but it looks horrible mostly because I bought the wrong size trimmers)

image

 

 

3. The device that I mentioned in the lights controller blog (Pi IoT - Simone - #1 - Light Controller ). The schematics is below. There should be an operational amplifier on the receiving end of the device.

 

image

I have to mention that this is by far the unsafest one of the three mentioned here. Below is a picture the one I used and it worked until (as mentioned before) it made a connection through the floor blew (taking along with it on the friendly ride an Arduino board, an ATTiny, some pins on a Raspberry Pi, my computer's Moderboard and a fuse. The fuse was easy to replace so see again the item 8 on the list above):

 

image

 

Make sure for something like this that the resistor can hold up the power consumption of the socket.

 

For this list also let me know if you have other ideas. I will add them to the list.

 

I will continue this post with more information regarding this component when I have some progress.

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube