Hi, all I;ve got the optical sensor plugged into my emonpi, and connected to teh led output on my 3 phase A1100
meter... during the day it all seems fine ( although i need to get the scale right) but at night the led stays solid red but the pulse counter is still going up. it goes up by a consistent amount so i get a nice line at about 60 degrees and then starts working properly in the morning when the led starts pulsing... obviously the kwh accumulator is then massively out as its counted 170kwh over night !!!
Please help
Re: Problem with optical sensor
I don't think it should do that! The solid on LED means the meter is in anti-creep mode, so by some means the sensor or the Pi is seeing pulses.
What do you mean by 60°, i.e, what is the actual pulse rate that you are seeing? (Could it be that the LED is being strobed by the software inside the meter and the sensor is reading that?)
How have you connected the sensor?
Re: Problem with optical sensor
This is the screen grab from the pulse accumulator raw data visualisation. you can see the day time and then the night when it shoots up
and this is the kwh to pwr trace of the same data, you can see the generation rise and fall during the day and then the massive and consistant jump at night.
Im using the Open energy optical sensor and its mounted over the red led on the elster a1100 meter using the supplied polo shaped velcro.
ta
G
Re: Problem with optical sensor
I did believe you, but I can only get a very rough rate from those screen grabs. Can you answer the question and give the actual pulse rate as a number?
Re: Problem with optical sensor
Ok working from the graph and expanding it
from the raw pulse im getting approx 32467 pulses an hour or approx 541 a minute or around 9 a second.
I've checked that for two separate hours and it seems to come to the same amount.
also exporting an hours data i get the same result of about 540 per minute ( which corresponds to a kwh per min on the pulse count)
Count , difference per min
6777552
6778093 541
6778633 540
6779174 541
6779707 533
6780217.5 510.5
6780796 578.5
6781336 540
6781877 541
6782417.5 540.5
6782958 540.5
6783499 541
6784039.5 540.5
6784580 540.5
6785120.5 540.5
6785661 540.5
6786202 541
6786719.5 517.5
6787283 563.5
6787824 541
6788364 540
6788905 541
6789445.5 540.5
6789986 540.5
6790527 541
6791067 540
6791585.5 518.5
6792148.5 563
6792689 540.5
6793230 541
6793770 540
6794311 541
6794851.5 540.5
6795392 540.5
6795933 541
6796466 533
6796999 533
6797554.5 555.5
6798095 540.5
6798636 541
6799176.5 540.5
6799717 540.5
6800257.5 540.5
6800798 540.5
6801339 541
6801879.5 540.5
6802420 540.5
6802960.5 540.5
6803478.5 518
6804012 533.5
6804560 548
6805093 533
6805626.5 533.5
6806159 532.5
6806700 541
6807240.5 540.5
6807781 540.5
Thanks for looking im stumped
G
Re: Problem with optical sensor
That agrees with the rough figure I'd got, but I wasn't sure of the scaling applied (if any). 9 per second ties in uncomfortably closely with the minimum pulse duration set in the sketch, so I do wonder whether the LED in the meter is indeed strobed and it's seeing the first flash after the timeout as a pulse. Is there any way you can check that - possibly with a long exposure photograph whilst panning the camera? If the LED is strobed, you should see a line of red dashes rather than a continuous steak.
Re: Problem with optical sensor
Its difficult to get access to the meter as its on a different site. Is there a tweek to the sketch i could try? its hosted on our server not the main emoncms site.
G
Re: Problem with optical sensor
mmm i think we might have another issue to , as a quick back of a fag packet calculation of a 50kwp system and 500 pulses per kwh gives me a max pulse of 6.944
what is the max pulses per sec we can get away with
G
Re: Problem with optical sensor
The falling edge of the pulse generates an interrupt, and it's handled thus:
min_pulsewidth is therefore actually the minimum period, and it's set to 110 ms. 541 per minute = 0.1109 s period, and it's that which rang the alarm bells. So if I'm right and the LED is strobed, the first falling edge after 110 ms will be counted, and restart the 110 ms timer...
I don't know that I'm on the right track here, but I can't see another mechanism to explain it.
I'll get Trystan involved. I don't know the spec for the sensor, but as the output is TTL, I'm betting it will see kiloherz pulses with no difficulty.
Re: Problem with optical sensor
Hi Graham,
I have just updated the emonPi firmware (V1.8) to turn on internal pull-up resistors on the emonPi pulse counting pin. Please update your emonPi by going to admin>update in local emoncms. More info on how to update here:
http://openenergymonitor.org/emon/modules/emonpi#update
The LCD should display V1.8 on boot. Please let me know if this makes a difference.
Re: Problem with optical sensor
Brilliant, I'll go over and try this first thing on monday and post back
Cheers
G
Re: Problem with optical sensor
Right i've run the update and it now displays firmware v1.8 on boot ok, although i only got a blank screen when looking at the log file ?
I'll report back with data tomorrow morning after we've run through a day and a night, although with this thick fog my own 3.5k system is running at 200 watts!!! still a 50k system should have a bit more to show
G
Re: Problem with optical sensor
Initial results not looking like any change :-( will report back when more data. hardly generating during the day due to fog but big spike over night
Re: Problem with optical sensor
.... with this thick fog my own 3.5k system is running at 200 watts!!!
Yep, this weather is no good for solar power, none of the thermal energy can get through.
My 2.8 kWp PV system is currently generating 60W, and our diverted energy total for today is just 0.003 kWh.
Re: Problem with optical sensor
58 watts here now !!
Re: Problem with optical sensor
"Initial results not looking like any change :-( "
Do you mean no change from the overnight "generation" that far exceeds the capacity of your array? ;-) To be honest, that doesn't surprise me as the sensor output is said to be TTL, and if it is, that shouldn't need a pull-up and giving it one shouldn't make any difference.
Re: Problem with optical sensor
none of the thermal energy can get through
I think that's a good thing in the case of PV.... the hotter those panels get the less they produce. They operate off light, not heat... although it sounds like your fog is so thick you're not getting much of that either.
Re: Problem with optical sensor
I will setup a test here in the lab to try and re-create the issue and work on a fix
Re: Problem with optical sensor
What is the make and model of your meter? We have not experienced this issue when using the sensor on common pulse output meters such as the Elster A100c and Landis & Gyr E110. As mentioned earlier in this thread, I wonder if there is something different about how the LED in your meter is driven when it's continuously on. Are you sure the sensor is making proper contact with the meter LED?
Re: Problem with optical sensor
Its an elster A1100 3 phase meter... markings next to the LED say 500impulses per kwh so 2 per wh
sensor is attatched to the meter over the led using the supplied vercro patch. Meter and sensor are inside an adaptable box so no external light
Cheers
G
Re: Problem with optical sensor
Does the LED when it's illuminated static overnight look any different to you from other utility meter LED's when they are no static? I'm just trying to determine if there could be something different with the meter. We will send you another optical sensor just to make sure there is nothing different or faulty with the sensor.
Re: Problem with optical sensor
500 impulses per kWh so
2 per wh1 per 2 WhOops! That would make your calibration spectacularly wrong.
Re: Problem with optical sensor
Received the replacement sensor today, I'll install on monday.
quick pic of current install shown. sensor mounted over the red led on the meter.
The meter and emon pi etc is mounted in a closed box so no external light
Re: Problem with optical sensor
lol yes typo
Re: Problem with optical sensor
Do you have an analogue moving coil multimeter, or a digital multimeter that doesn't have a super-fast response? If you have, when you have the sensor installed on the meter and when the meter LED is on continuously, measure some voltages on the dc range. Can you measure and report both Vcc and the sensor output voltage? Vcc should be 3.3 V, if the LED is strobed and the sensor is following it, the output voltage should be much less, probably less than and certainly not much more than 1 V even (because this will be the average value of a pulse waveform that swings from about 0.7 V to 2.6 V with a fairly low m/s ratio). But if it's near to 3.3 V (say above 2.6 V), the LED is not strobed and my theory is probably wrong.
Re: Problem with optical sensor
mm i seem to have lost a post.
Changed the sensor and no change to the data. :-)
any other ideas.
The A1100 does have a wired pulse feed option. is there a way i can wire that up ( i do have access to that part of the meter)
Re: Problem with optical sensor
"mm i seem to have lost a post."
It's not awaiting moderation, so I don't know.
What you must be absolutely certain of is the wired pulse feed is "volt-free", i.e. it is completely isolated from the electricity supply, before you can think of using it. I can't find any specification or connection details, so I can't tell exactly what might be inside, but I would guess it's the receiving part of an opto-coupler.
The leaflet also says that your meter has an IrDA output. It may be that this is the same as this thread.
But surely the first problem is to find out what the problem actually is? All that has happened so far is we appear to have ruled out a faulty sensor. That doesn't mean that the sensor is or is not suitable for use with your meter. But it might mean that the software had made unjustifiable assumptions.
Were you able to try reading voltages that the sensor is giving you? The theory was that if the LED is on continuously - really continuously and not just appearing to be continuous as our eyes cannot perceive flicker faster than about 20 Hz - then you would read nearly the same voltage as the sensor's supply voltage. But if the LED was flashing faster than that and the sensor was sending a stream of pulses, you would perceive the LED to be on continuously but a multimeter would read the average voltage that might be only a small fraction of the sensor's supply voltage. That would hopefully give us a better idea of what the A1100 is actually doing.
Re: Problem with optical sensor
From the elster documentation :- Pulse Output An opto-isolated pulse output can provide the basis for an energy management system or AMR. These pulses are output via the meter’s auxiliary terminals. The output conforms to IEC 62053-31.
Single rate meter - The output is connected to the meter's two auxiliary terminals and is fully isolated.
we frequently use them to feed pulse driven display units. its a 2 wire connection so would need some electronics to drive the emonpi via the rj45 port ?
But ideally yes I'd like to solve the issue with the optical sensor. although i do have an issue with access and an end user getting fed up lol..
If i can find a suitable meter how can i measure the voltages from the sender? plug it into the emonpi via some sort of breakout board and measure it from the exposed connections, measure across vcc and gnd?
ta
g
Re: Problem with optical sensor
"plug it into the emonpi via some sort of breakout board and measure it from the exposed connections, measure across vcc and gnd?"
Exactly.
As regards the SO output, then I would wire that between RJ45-5 (GND) and RJ45-6 (D3) and have a 4.7 kΩ pull-up between RJ45-6 (D3) and RJ45-2 (+5 V).
I'd love to say there's a software solution. There may well be but without knowing that the problem is what I think it is, there's no reason to suspect that anything that we do concerning the LED will work properly.
Re: Problem with optical sensor
I have worked out how to test to see whether the meter LED is strobed or not. It's very simple:
View the meter through a small hand-held mirror. Rapidly wobble the mirror. If the LED appears as a series of bright dashes, the LED is strobed. If it is one continuous strip of light, it is not.
Re: Problem with optical sensor
I believe we have fixed this issue for the emonPi,
See commit: https://github.com/openenergymonitor/emonpi/commit/56ac3bbf7ed07787b12eb6396e15f36081eb626a. The issue was caused by pulse time variable not being reset correctly.
Please could you try updating the emonPi firmware following the same update procedure as before admin>update. The new firmware should display V1.9 at startup.
Re: Problem with optical sensor
Cool I'll try and get on site to do this tomorrow, would be really great if this sorts it.
Cheers
Graham
Re: Problem with optical sensor
Any joy?
Re: Problem with optical sensor
Hi, only got access to the site yesterday morning to do the update so only one nights data but it s looking good so far :-)
Re: Problem with optical sensor
Great :-)
Good to hear.