Energy meter not updating watts.



  • I setup an energy meter. Watts don't seem to be working right on VERA. KWH appears to be working fine in VERA.
    Here is my readings when I'm bench testing.

    sensor started, id 2
    send: 2-2-0-0 s=255,c=0,t=17,pt=0,l=3,st=ok:1.4
    send: 2-2-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0
    read: 0-0-2 s=255,c=3,t=6,pt=0,l=2:I
    send: 2-2-0-0 s=255,c=3,t=11,pt=0,l=12,st=ok:Energy Meter
    send: 2-2-0-0 s=255,c=3,t=12,pt=0,l=3,st=ok:1.0
    send: 2-2-0-0 s=1,c=0,t=13,pt=0,l=3,st=ok:1.4
    send: 2-2-0-0 s=1,c=2,t=24,pt=0,l=3,st=ok:1.4
    read: 0-0-2 s=1,c=1,t=24,pt=0,l=6:75957
    Received last pulse count from gw:75957
    Watt:60028
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:75960
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:75.9600
    Watt:33355
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:75963
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:75.9630
    Watt:32039
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:75970
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:75.9700
    Watt:322234
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:75982
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:75.9820


  • Admin

    Your watt-value seems to get filtered away and never sent as the calculated consumption >10000. Do you really have a consumption of 60000W in your house?

    Did you do any modifications to the sketch?


  • Hero Member

    check that you have this correct in your sketch:

    #define PULSE_FACTOR 10000       // Nummber of blinks per KWH of your meeter
    

    The default value is 1000 I guess but I have 10000 so maybe your meter is also 10000 blinks / kWh.

    If you really do have a possibility of high consuption you should adjust the following accordingly in your sketch:

    #define MAX_WATT 15000          // Max watt value to report.


  • The test above is when I was bench testing inside the house with the sensor connected to the computer. I was using a IR tv remote to activate the sensor. So these readings can not be taken serious.

    I do now know how yet to read the serial from the meter wirelessly (maybe I need to unplug the gateway from vera and read that, or take a laptop out to the meter and plug in there)

    I did NOT modify the sketch.

    I have an ITRON OPENWAY meter with IR on the top that is supposed to be "each blink on the IR LED is 1 watt-hour of power usage" now I found this info on a forum for the ITRON CENTRON that looks the same, but maybe this is where my problem is.

    I then translated that to be
    1 watt hour = 0.001 kilowatt hours
    0.001 x 1000 blinks per KWH

    So I thought I should be good with the default settings of 1000 pulses and left everything alone.

    I guess I have a better idea of whats happening now. It's reading so high it's throwing out the data assuming it false.

    I need to

    1. probably just try the 10,000 vs. 1,000 in the pulse count per KWH.

    2. learn to read the meter so I can count the blinks and the actual KWH and do my own math on the blinks needed.

    3. take a laptop outside and attach the usb to the sensor while on the meter and see what the output is.

    More info:
    I want to say (ruff guess) with the A/C on it blinks almost every second so that's 60 blinks in a min and 3600 blinks in an hour with A/C running. (logging into my edison (www.sce.com) account and looking at yesterday's history for the few hours the A/C was running) I used 3-4 kWh (each hour) during the 4 hours I ran the a/c So lets say I average 3.5 kWh with an average of 3600 blinks per hour so The more I think about it I think that 1,000 number is right on don't you think? Or is my math off somewhere?

    Well, I'll work on and post back in 2-3 hours with a new serial update and more info when I get home to do a test on numbers 1-3 above.



  • I think when I was using the tv remote it would flash like 4-5 times per each button I pressed so I'm sure the IR was just blinking like crazy.

    Here is my actual usage for yesterday.
    Energy.JPG



  • Well it's defiantly my flash counts that's way off. I brought the laptop out to the meter and plugged in and got some valid info off the meter.
    my flashes are more then 1 every second with a/c running. I counted around 30 in 25 seconds using a stopwatch.

    During this time with sketch stock at 1000 it was reading.
    Watt:285,623

    Ofcourse I changed 1000 to 10,000 as suggested for a trial and it went to
    Watt:29,373

    and for kicks I wanted to get it into something more accurate so I changed it to 100,000
    Which is now reading and updating right in VERA (ofcourse since it's not over the max)
    Watt:2972

    So I guess the trick now is trying to figure out what each blink real value is on my meter.
    3,000 watts with 220v a/c running puts me around 13.6 amps.
    I'm thinking for a few lights on,TV, fridge, ceilings fans and 3.5 ton a/c this is reading low now.

    I don't have an amp clamp and havent figured out how to read this digital Itron OPENWAY Centron meter. It only has one button.



  • Well I found out meter will read the kW in 2 decimal points. It was reading around 4.3kW with the ac running. Reading the serial seeing what it was outputting vs what the meter was reading I started adjusting the sketch then uploading then reseting the sensor and re reading the serial. I got it reading about spot on with 105000 flash per KWH.

    The. I shut off the AC kW reading on Meter went down to around 1.3 ish but the serial was showing 3,011 watts or something. So it didn't change in perportion. I do know the flashes slowed down but didn't recount yet to see just how much. Maybe 1 flash ever 2 seconds now. It definitely didn't cut it into quarters from 4kw to 1kw.


  • Hero Member

    nice to see you have worked out some of your issues.
    Seems to be tricky to get a pulse from the ITRON usually it says like 1000 imp/kwh or something similar beside the led on the meter and this should be pretty accurate.



  • @korttoma it sure doesn't seem like if fixed much.

    I'll include some pictures but I don't see anything anywhere on the meter that might give an indication of the pulses. And def. nothing around the IR. I'm also confused now how even when I got it reading right at higher usage. It didn't drop down much after I cut the usage and was still given a high reading.

    20141009_222916.jpg
    20141009_222937.jpg
    20141009_222930.jpg


  • Plugin Developer

    It looks like the calculation is off in the example sketch:

    Your meter is providing Kh, which renders the below calculation wrong (I think)

    watt = (3600000000.0 /interval) / ppwh;
    

    Your calculation should be

    watt = (3600000000.0 * ppwh) / interval;
    

    3600 (one hour) times the unit (1.0 Kh) devided by the time between two blinks.

    I could be wrong though because it is quick plain from the head.



  • @John so I'm a bit lost (not surprised) at your formula. Can you throw some numbers in your new formula based on my information above (or fictitious numbers for an example) and give me an idea of what it should look like.


  • Plugin Developer

    @integlikewhoa

    Ok, let's say there are 4 seconds between each pulse, you would then have a formula like:

    (3600 * 1.0) / 4 = 900 WATT
    

    An example if a blink takes 0.91 seconds

    (3600 * 1.0) / 0.91 = 3956 WATT
    

    But like i said, i could be wrong 😉



  • @John said:

    watt = (3600000000.0 * ppwh) / interval;

    Well i put the Pulse count back to 1000 then I changed the formula above and now I'm getting some wierd up and down readings even tho the meter was fairly stable during this time.

    sensor started, id 2
    send: 2-2-0-0 s=255,c=0,t=17,pt=0,l=3,st=ok:1.4
    send: 2-2-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0
    read: 0-0-2 s=255,c=3,t=6,pt=0,l=2:I
    send: 2-2-0-0 s=255,c=3,t=11,pt=0,l=12,st=ok:Energy Meter
    send: 2-2-0-0 s=255,c=3,t=12,pt=0,l=3,st=ok:1.0
    send: 2-2-0-0 s=1,c=0,t=13,pt=0,l=3,st=ok:1.4
    send: 2-2-0-0 s=1,c=2,t=24,pt=0,l=3,st=ok:1.4
    read: 0-0-2 s=1,c=1,t=24,pt=0,l=6:81287
    Received last pulse count from gw:81287
    Watt:3609
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:81316
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:81.3160
    Watt:268656
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:81351
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:81.3510
    Watt:264861
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:81389
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:81.3890
    Watt:272975
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:81415
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:81.4150
    Watt:141464
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:81421
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:81.4210
    Watt:10582
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:81448
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:81.4480
    Watt:12944
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:81471
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:81.4710
    Watt:7069
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:81473
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:81.4740
    Watt:1215
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:81479
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:81.4790
    Watt:21161
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:81510
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:81.5100
    Watt:5983
    send: 2-2-0-0 s=1,c=1,t=24,pt=5,l=4,st=ok:81529
    send: 2-2-0-0 s=1,c=1,t=18,pt=7,l=5,st=ok:81.5290



  • i'm so lost on this. I can read the screen on the meter. I got my meter holding down to around 1.31kW according to the meter read out. I set the timer for a minute and counted the flashes on the LM393 LED. It flashed around 26 times in that min. So 60 min in an hour that's 1,560 flashes per around 1.31kWh..

    Next I kicked on the AC and let the Kw reading on the meter level out around 3.10kW and then I set the timer and counted 54 pulses per min. x 60 for 3,240 per hour.

    Everything looks per proportional and right along with what I found on the internet for this meter.

    1,000 blinks per kWh.

    Using the factory settings should put me right there is what I keep thinking. But that gets me showing 300,000 watts

    using your above formula and pulses still at 1000 it still gets me in the 300,000 range.

    If i change my pluse per KWh to 100,000 then it gets me into the right area at 3000 watts when my ac is on which is in the ball park but if I turn the AC off and kW drop to 1.3 ish

    The serial is still showing 3,000 range in watts it wont drop to the 1,000 so watts it should be.



  • Hoping can jump in and shed some new light on this. BUMP!


  • Admin



  • Thanks for that info, it seems to only confirms that the meter is working right and that my problem is in the sktech. LOL

    I really need help finding out why the example sketch with the "1000 blinks per kWh" set doesn't work anywhere close to where it should be.

    I'm using the example sketch and my meter has 1.0kH tag on the front.

    @hek said:

    http://efundies.com/electricity/how_to_read_power_meter.htm

    @integlikewhoa said:

    i'm so lost on this. I can read the screen on the meter. I got my meter holding down to around 1.31kW according to the meter read out. I set the timer for a minute and counted the flashes on the LM393 LED. It flashed around 26 times in that min. So 60 min in an hour that's 1,560 flashes per around 1.31kWh..

    Next I kicked on the AC and let the Kw reading on the meter level out around 3.10kW and then I set the timer and counted 54 pulses per min. x 60 for 3,240 per hour.

    Everything looks per proportional and right along with what I found on the internet for this meter.

    1,000 blinks per kWh.

    Using the factory settings should put me right there is what I keep thinking. But that gets me showing 300,000 watts

    using your above formula and pulses still at 1000 it still gets me in the 300,000 range.

    If i change my pluse per KWh to 100,000 then it gets me into the right area at 3000 watts when my ac is on which is in the ball park but if I turn the AC off and kW drop to 1.3 ish

    The serial is still showing 3,000 range in watts it wont drop to the 1,000 so watts it should be.


Log in to reply
 

Suggested Topics

  • 2
  • 1
  • 5
  • 1
  • 1

59
Online

11.4k
Users

11.1k
Topics

112.6k
Posts