Hi everyone,
I've been trying to read the port on the above meter (not the pulse output, the infra red port) but without success.
I've various bits and pieces from here and other places (mostly via the rotwang site) but when I run the sketch, it compiles, uploads but nothing seems to happen. I can see that the sketch runs through over and over so the system isn't hanging, but nothing appears on the serial monitor.
I'm using the emonTX and the iR sensor purchased via the shop.
Is there a trick that I am missing? Do you have an example sketch which has been fully debugged on the above and is known to be working that you could send me? Are there ever any issues with the infra red port not being enabled on the Elster?
Any suggestions for debugging would be highly appreciated as infra red is hard to see, especially with my eyes :=) !!
thanks
Ian
Re: RESOLVED: Reading the IR port on the Elster AC100
Does the sensor see any IR source (i.e. can you detect any voltage change on the output (pin 3) )?
100 k pull-up resistor present?
Seen this? http://openenergymonitor.org/emon/node/626
"Any suggestions for debugging would be highly appreciated as infra red is hard to see, especially with my eyes :=) !!" You could call the fire brigade - and see if their thermal imaging camera can see it
Re: RESOLVED: Reading the IR port on the Elster AC100
Hi Robert,
I had seen the OEM link but didn't realise that a 100K pull up is required. The schematic has a 10K to ground so, presumably, the 100K goes between the data line and the chosen power supply node?
The fire brigade aren't available this evening because they are getting a cat down from a neighbours tree.
I did contemplate trying to read the output from the thing using my Logitech Harmony One remote control... but I didn't fancy the thought of having to reprogram the remote control again afterwards :=)
Re: RESOLVED: Reading the IR port on the Elster AC100
I think the data sheet is your starting point (http://www.ams.com/eng/content/download/250428/976477/142384).
I'd start with just the sensor, pull-up and power. If the output pin shows a response, you know the sensor itself is working. From the data sheet, it would appear that you shouldn't have the 10 k pulldown. The pulse input is an ordinary analogue input, so you should be able to read the voltage there with a one-line read-the-analogue-port sketch. When you can do that, you should be pretty much there, and I'd go straight for Dave Lloyd's sketch and see what you get <disclaimer: I've not tested it>.
Re: RESOLVED: Reading the IR port on the Elster AC100
Ian,
have you selected the voltage jumper on the tx? from the build guide it states:
"pulse counting voltage selection jumper (pictured) above must be connected to either 3.3V/5V."
Re: RESOLVED: Reading the IR port on the Elster AC100
I did a few checks earlier (before we got the wine out) and decided that there is no VCC supply. I need to take a look in the morning as I suspect that, as you have suggested Nigel, I haven't selected a jumper position.
Watch this space.
Re: RESOLVED: Reading the IR port on the Elster AC100
You can use a phone camera to see the IR from an Elster meter. I doubt that's your problem though.
Re: RESOLVED: Reading the IR port on the Elster AC100
Have you read the blog post Trystan wrote on doing this: http://openenergymonitor.blogspot.co.uk/2012/08/reading-watt-hour-data-from-elster.html
The code as now been made into an Arduino library with examples: https://github.com/openenergymonitor/ElsterMeterReader
Re: RESOLVED: Reading the IR port on the Elster AC100
It was a daft error in the end, I had simply crossed over the VCC and data connections on the plug.
I've been using the blogs and the sketches as a guide and have been able to make the Elster communicate quite nicely with the emonTX.
I now have the issue of wanting to only poll the meter very occasionally and haven't, so far at least, been successful with detaching and reattaching the ISR to the interrupt pin as and when I need it.
It looks pretty straight forward in principle but, when added to the sketches I get no data coming back on the serial monitor. I'll keep playing ... if anybody has any suggestions, they are very welcome.
thanks again
Ian