I'm so proud!
My first Arduino project is a power meter for my house.
The power meter that the electric company reads every month and sends me a bill from just states how much power is used since it started. It also sends out a light pulse for every thousands of a kWh used. I use a light dependant resistor to read the pulse and count them and the time between the pulses to get power used since my Aruino started and the current power usage. All this is displayed on a LCD shield. With the buttons on the shield i can display different things:
The total power used since the start and current usage.
Power used last minute and mean power last minute.
Power used last hour and mean power last hour.
Power used last day and mean power last day.
Power used last week and mean power last week.
Power used last four weeks and mean power four.
The sketch saves the current usage value every ten seconds and calculates everything. The values are cyclic so last days measyre ment is rather last 24h values and so on. If the Arduino is juststarted it sets a "c" in front of the values that are not correct yet (it takes four weeks to get all values correct).
The power meter, fuses and what not. And my Arduino with LCD shield.http://imgur.com/Ub3hh.jpg
Close up of the Arduino and shield running showing the default screen: The total power used since the start and current usage .http://imgur.com/rEISz.jpg
Code doesnt fit. It's too big. How do I do?
It was kind of an anti climax when all was in place and running. What do do now? I have an idea of another shield that kan show graphics so i can draw a graph of power usage. Connecting a memory card so I can import the readings to my computer and analyze the readings more. And... And... Is there evera finished product?