element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
Power & Energy
  • Technologies
  • More
Power & Energy
Forum You might not want to monitor your electricity, but I do! Help?
  • Blog
  • Forum
  • Quiz
  • Documents
  • Polls
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 11 replies
  • Subscribers 287 subscribers
  • Views 1256 views
  • Users 0 members are here
  • internet of things
  • raspberry pi
  • iot
  • power usage
  • energy efficiency
  • electricity monitoring
  • arduino
Related

You might not want to monitor your electricity, but I do! Help?

cstanton
cstanton over 9 years ago

Last month I asked people over Twitter and on the element14 Community how you monitored your electrical usage. I was surprised to discover that a lot of people, don't. I'm not to be dissuaded when there's statistics to be had, especially when it's something close to home (oh dear, I'm resorting to puns).

 

So I have one of these electricity monitors:

 

image

 

That my electric provider gave me, turns out they're really common, except I'm having a hard time determining how to get data out of it. You see, there's an RJ45 socket on the underside of it, which it turns out, dumps serial, but I cannot discover an authoritative answer on its pinout, though it turns out there are cables you can buy that're 'pre-made' for this, apparently it's also 3v3 logic. I decided to make my own:

 

image

 

Part one of my troubles is, how do I work out the correct pinout? Admittedly I am a novice when it comes to using oscilloscopes (and they're too high priced for my tastes) so what's a safe hack-ey way I can go about this? (the USB device in the pic' happens to be a UART type device which usefully has pins on it).

 

Part two of my troubles, is how shall I handle the data it outputs? About every second, it apparently dumps out XML over serial. Something like this:

 

<msg>                            start of message

   <src>CC128-v0.11</src>        source and software version

   <dsb>00089</dsb>              days since birth, ie days run

   <time>13:02:39</time>         24 hour clock time as displayed

   <tmpr>18.7</tmpr>             temperature as displayed

   <sensor>1</sensor>            Appliance Number as displayed

   <id>01234</id>                radio ID received from the sensor

   <type>1</type>                sensor Type, "1" = electricity

   <ch1>                         sensor channel

      <watts>00345</watts>       data and units

   </ch1>

   <ch2>

      <watts>02151</watts>

   </ch2>

   <ch3>

      <watts>00000</watts>

   </ch3>

</msg>                           end of message

 

I thought that perhaps I should connect it to an ArduinoArduino, or perhaps a Raspberry PiRaspberry Pi? I will need a way to do the following:

 

  • Receive the data and ensure it is legible
  • Store the data so that we can use it
  • Ensure the data is stored at an accurate or relevant timestamp (apparently the device just counts from when it was turned on)
  • Convert the values it gives to something that makes sense
  • Present the values that its stored in ways that are useful and relevant to cost
    • Such as graphs over time

 

The way I see this being useful, is to correlate the electricity usage with house temperature, external house temperature, and maybe further down the line link in my central heating system, so I'm creating almost a house profile, or prevent something turning on when electricity usage is high (for example, electricity is of course used when the boiler kicks in for the water pump, but I'm getting ahead of myself).

 

With all this in mind, does this change anyone else's mind about monitoring their electrical usage? Or perhaps someone can give me advice on where to begin with either part of this project? Or should I construct an electricity monitor out of something else entirely?

 

Thanks for reading!

  • Sign in to reply
  • Cancel

Top Replies

  • cstanton
    cstanton over 9 years ago in reply to shabaz +2
    9600 baud? No, that doesn't seem it.. 1200 baud? Hmm, not there yet! 2400 baud? Hello data! Looks like the pin-out is correct after all. <msg><date><dsb>01343</dsb><hr>22</hr><min>53</min><sec>22</sec…
  • mcb1
    mcb1 over 9 years ago in reply to shabaz +1
    I looked at it a while back, and after multiple revisions it seemed an odd design choice to still use an ATmega and its single built-in 10-bit ADC I didn't look too hard into the actual hardware side,…
  • shabaz
    shabaz over 9 years ago in reply to mcb1 +1
    Agree, it is easy to become OCD and want super-high granularity when in reality you might actually only be interested at the power-hungry stuff.
Parents
  • oksbwn
    oksbwn over 8 years ago

    Hi Christopher Stanton if you are interested to give it a try to other meters, you can use smart meters available on market having RS485 interface and they comes with support for MODBUS over RS485 and is a master-slave protocol. this will give a total control over the communication so u can set the data logging time that you desire and these can be used with PC or Pi or Arduino anything having serial interface. I have used quite a lot. In india L&T provides NOVA (Only for info) lineup for such meters, You can check out those.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • oksbwn
    oksbwn over 8 years ago

    Hi Christopher Stanton if you are interested to give it a try to other meters, you can use smart meters available on market having RS485 interface and they comes with support for MODBUS over RS485 and is a master-slave protocol. this will give a total control over the communication so u can set the data logging time that you desire and these can be used with PC or Pi or Arduino anything having serial interface. I have used quite a lot. In india L&T provides NOVA (Only for info) lineup for such meters, You can check out those.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • cstanton
    cstanton over 8 years ago in reply to oksbwn

    Do you have any examples of using one?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • oksbwn
    oksbwn over 8 years ago in reply to cstanton

    It works pretty well but sorry I can't show you any demo because of as it is a product of the company where i work. But you can explore yourself these are widely available...Sorry for that..

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • oksbwn
    oksbwn over 8 years ago in reply to oksbwn

    It provides you data like Power, frequency, Voltage, Current KwH etc

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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