Pulse counting when exporting

Hi,

Not sure where to put this one, but thought hardware was best.

I have a digital Landis GYR+ which seems to be the norm these days from the pics I have seen.

The display shows rEd and the LED lights up when exporting, and I was wanting to add pulse counting to the equation so I can keep a track of the display from within the house, meter has an awkward gate to get to it and since I send the meter reading off every month, I was looking for an easy way of doing this.

I have built ant tested the pulse counting, and am happy with the accuracy of it, gained 2 kWh over a month to what the display said, so close enough for me. but now it counts all the exporting time as a pulse.

Is it a case of testing for the duration of the pulse and if it is a flash, count it, but if it is longer, ignore it?

I think this would work, but not 100% sure

 

Jimmy
 

Robert Wall's picture

Re: Pulse counting when exporting

I was hoping calypso_rae would answer this one - he's the expert on meter pulses and his tools contain a meter emulator, which you might like to look at.

I think what you say is correct, you need to distinguish between an import flash and everything else.

calypso_rae's picture

Re: Pulse counting when exporting

Hi Jimmy,

If your meter has only a single LED which pulses once per WattHour (i.e. 1000 pulse per kWh), then the checkLedStatus() routine that's in many of my Mk2 sketches should be able to detect and analyse your meter's LED activity.  This code and associated comments will hopefully explain my understanding of the LED's behaviour. 

Mk2_PV_Router_mini_3 is a compact no-frills version of Mk2 which contains this function.  The associated hardware is just an LDR and a couple of passive components, as shown at the top of the sketch.   Although the call to checkLedStatus() is commented out as posted, the code still compiles when the "//" characters are removed, so I would expect this function to work as intended.

If your meter is of the type which has red and green LEDs (and only 1250 Joules to play with, rather than 3600), then I'm afraid I can't help as I've never run tests on that type.  I have however installed a Mk2 system alongside such a meter.  Providing that the energy flow oscillations remain within a 1200 Joule band, or thereabouts, the meter appears to tolerate this behaviour without charging the user.  In this case, the green LED remains on.  If the oscillation band is increased to, say, 2000 Joules, then this LED goes off and occasional red pulses are seen which I presume means that the user is being charged.

Hope this helps. 

 

 

manicmoddin's picture

Re: Pulse counting when exporting

Just want to say thanks for this, I have not yet had chance to look into this, Hopefully this weekend I will get some time aside to investigate, The few hours I have to myself are a little too late to be playing with the meters, so just working out how the emonGLCD works so as to customize this a little later on.

My meter is the single red LED, but there is a second one next to it, This I believe is a Infra red receiver I seem to remember from reading around somewhere so as it can be programmed. Not sure how true that is though as it was going back a while to before I found this site, and was looking at getting one of the meters from eBay and watching Office consumption. I struck it off as it would mean either rewiring the downstairs ring so as that was on its own ring, or having it all on its own spur, both of which I don't like the sound of.

Cheers again

 

Jimmy

 

calypso_rae's picture

Re: Pulse counting when exporting

The technique that I've mentioned above is intended for use with the red LED.   Our LandisGyr meter also has a second port alongside the first.  This is some kind of comms port which I've never tried to access.

The point about my checkLedStatus() function is that it can analyse all LED events, thereby revealing exactly what is going on behind the scenes.  Unfortunately, digital meters only tell you in retrospect what has happened. 

The Mk2's measurement system is essentially just replicating the meter in a way that provides access to real-time data.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.