Friday, March 2, 2012

Metering the Smart Meter. Part: The Second

Just moments after “they” installed my new Smart Meter it became necessary to figure out how to link it into the Home Automation system. Previously I tested the IR sensor from SparkFun I had laying around to discover that it would indeed pick up the pulses. Once that was working I needed to build a sensor that I could attach to the meter housing that would survive out in the weather, not damage the meter, be easily removed if they needed to access it and not look like someone was fiddling with the meter. I decided to pot the sensor into a short length of aluminum channel.


This channel is available at every hardware and home center type place. I used this same stuff previously as the heat sink for the LED under cabinet lights I built so I had some laying around. It’s very soft and cuts and drills easily though you will have to file the edges a bit to get the sharp bits off.


The sensor is quite small, but I needed the extra space in the channel for filling to make it weather resistant and just to have some surface area to attach the mounting stuff to the meter. In that picture you can see the pins sticking out the back. Those come with it but aren’t attached when you get it. They are for pressing into a breadboard to make prototyping easier but I removed then and attached some nice stranded wire for the final build.


3 wires run to the sensor, +5v, ground and the signal output. Since the switching of the 5v is done on this board it’s possible to run the output from this much further than from just a naked IR sensor without picking up interference or without too much wire resistance getting in the way. This sensor is the earlier version of this one from spark fun. This is the easiest since you dont have to do more soldering than connect the wires, but if you know what you’re doing any IR photo transistor could probably be made to work. In the above picture it’s getting a nice dip in epoxy to seal it away from the elements.


Here it is mounted (glued ;) inside the channel. I carried the wires backwards across the back of the board so that they would be encased in the epoxy for a longer distance than if I ran them out the obvious side. 


Put a bit of tape around the 2 open sides and filled the whole thing with hot glue. Thats probably excessive and there is some danger of the glue heating up in the sun and slumping out of the thing and making a mess. I’ve used hot glue to do this here many times before and it’s never been a problem even here in the “deep south” but take your own situation into account.

  

And finally all finished and ready for mounting to the meter. I wonder if this isn’t the right sensor as it’s keyed to receive in the frequency range that IR remotes use and I dont know if the output of the LED on the meter is anything other than a strictly on/off pulse. I can’t find specific documentation on it and people are using all sorts of things to pick it up. But I would think this wouldn’t work at all if it wasn’t correct, the whole point of the module is to filter out un-mondulated or incorrectly modulated IR sources. It’s entirely possible though that this isn’t as sensitive as it could be with a proper receiver. If anybody sees specific manufacturer info about the kind of IR or it’s modulation I’d love a note about it. This is pretty picky about placement, it only works if it’s right over the LED on the meter and even small diversions make it not sense it. I’ll be using some outdoor stable velcro like stuff on either side of the hole there to attach it to the meter and be able to re-position it to get it just right. Next time software and install.

No comments:

Post a Comment

.code { background:#f5f8fa; background-repeat:no-repeat; border: solid #5C7B90; border-width: 1px 1px 1px 20px; color: #000000; font: 13px 'Courier New', Courier, monospace; line-height: 16px; margin: 10px 0 10px 10px; max-height: 200px; min-height: 16px; overflow: auto; padding: 28px 10px 10px; width: 90%; } .code:hover { background-repeat:no-repeat; }