Here is my energy meter:
On the left side it says 1000imp/kWh. So i looked at the Infra Red LED in the metal ring using the camera of my phone:
It turns out that in the magnet cicle ther is an IR LED that emit one pulse for each Wh or 1000 pulses per kWh. Of course i must try to read these pulses and calculate the Power :-)
Inside and old ball type computer mouse i found an IR phototransistor:
The photo transistor is the black one reading the rotary encoder pulses. It is a dual device to read quaderature signals so i only need to use the middel one wich is the collector and one of the sides that is an emitter. I noticed that the middle pin of the IR transistors was connected to + on the Electrolytic capacitor and assumed it was Vcc. The other two pins went to the IC in the mouse.
I connected it up with a 5V from the Arduino on the collector and 100k pulldown on the emitter to ground. Used an old USB wire and placed the transistor on the meter:
Here is the schematic:
And the real world :)
Scope is set at 1ms/div so the pulse is about 1.5ms long.
Actually it seems pretty imune to the other light sources around.. except remote controls :-o
Calculation:
The energy consumed between each blink is 1[Wh] = 3600 [J] = 3600[Ws]
The power is then P[W]= 3600[J] / t[s]
So i only need to measure the time and then calulate power.
Here is the quick and dirty Arduino sketch to measure time using timer:
I really like the Arduino platform. It really can not be easier.
Result from the in the IDEs built in serial console:
Playing with some halogen lamps and it looks good :)
Next i might try to collect the data some how.
Thanks for the code snippet. Saved my Saturday evening! :)
ReplyDeleteThanks again! :)
Hi, take a look on my project. Maybe we could try to collaborate about data collecting part.
ReplyDeletehttp://electroncharge.blogspot.com/2014/06/project-kwhmon.html
nice one....
ReplyDeletemy data out is not corect, in KWH meter 207kwh , but the reading is around =
Time[ms]: 15669 Power[W]: 229
Time[ms]: 27699 Power[W]: 129
Time[ms]: 27600 Power[W]: 130
Time[ms]: 27785 Power[W]: 129
Time[ms]: 27830 Power[W]: 129
Time[ms]: 27629 Power[W]: 130
how aboaut that?