I am new to this forum and to Z-uno, but I can sure see a lot of interesting uses for the Z-uno. I have done some webprogramming but I am also new to Arduino. As my first "real" project I would like to create a device to put in the cabinet where my electricity meter is residing. I plan to install relays/contactors to control electric heating (2-phase -> difficult to switch with ordinary Z-wave switch devices) and some other utilities, but the main reason for putting a Z-uno in the cabinet is to measure the overall electricity consumption of my house.
On my electricity meter is a LED that flashes 1000 times for a consumed kWh and I want to use the LED as an inobtrusive way to measure energy usage. From what I've seen, the meterLED in my house seems to flash with ca 0.2 - 5 Hz (but sure I havent watched it a lot
![Smile :-)](./images/smilies/icon_e_smile.gif)
I assume that I could more or less copy the "Water meter" example (which also has EEPROM backup) for the meter part, but just use one meter channel and change meter type from WATER to electric. Hardware will be crammed into a 2-unit wide DIN container to make it look nice & safe. If I get it to work I'll post the design.
When I study the "Water meter" example, there are some things I dont really get. What is the TICK_VALUE constant doing? Is it scaling the count values to m3 values? Does this mean that the water meter get one tick every 100 litres? So if I want to scale my electricity meter to kWh then I would instead divide the ticks by 1000. The very last line in the "loop" states a delay of 100ms, is this necessary? The LED in my electricity meter flashes very briefly, I guess shorter than 100ms so I cant keep this delay I assume. Can I just delete it?
If the resetter is run, does it actually zero also the EEPROM content?
If someone has an answer or two or any comment I'd appreciate it, otherwise I'll just try out and learn. I'm of course happy to share the code I've put together so far.
Johan