Home power consumption measuring unit
This module was given to a friend many years ago.
Measures the power consumption by counting LED pulses from the home fuse box. Measurements can be read via a serial interface, uses the AVR ATtiny2313 microcontroller.
In Norway we have a LED in our home fuse boxes that flashes a defined number of times per kW, this unit measures the home power consumption by counting those pulses. This is calculated into kW and can be read from a computer over the serial interface. In addition to this unit you will need a sensor to read the LED, that is not covered in this project. It is important that this sensor is accurate to get precise values.
The consumption is measured in kW and calculated by dividing the number of LED pulses by 500 (500 pulses pr. kW). The registration will continue as long as the module receives a signal from the sensor.
Two values are stored in EEPROM; current and previous consumption. By sending a command over the serial interface the current value can be moved to previous and cleared. This makes it possible to compare the current period with the previous. Values are written to EEPROM every hour, and restored during boot. This means that in the event of a power loss you could lose up to one hour of monitoring.
On first start up the unit will show -1 kW for both current and previous usage, this can be cleared by moving current to previous two times. Or you can enter a current value manually. Correct EEPROM values will then be stored one hour after the first signal is received.
It is possible to use the serial interface directly to read and move consumption values. But ideally an external system, like a computer or Raspberry Pi, could pull values at set intervals. This would make it possible to create graphs and trends over time.
- PB.0 Sensor
- PB.1 Run LED
- PB.2 Signal LED
2,5 mm, 9-12V=, positive center.
- 6 : 5V + out
- 7 : 5V - out
- 8 : 5V + sensor in
- 9 : 5V - sensor in
- 2 : Transmit
- 3 : Receive
- 5 : GND
Forbruksmaaler v.1.0 JensenCorp 0704001 Press 0 for help 1 - Current usage 2 - Previous usage 3 - Enter starting point 4 - Move current to previous Current usage will be deleted! (0 to cancel) Enter starting point in kW : 100 100 kW saved 100 kW current usage (50000 pulses) 100 kW moved to previous 100 kW previous usage 0 kW current usage (0 pulses)
- Data bits
- Stop bits