Feb 25, 15 Thomas Jensen 4 Images 1 Video Code Schematic 567 10
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.
Table of content
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-24V=, positive center.
D-Sub 9-pin connector: Sensor
- 6 : 5V + out
- 7 : 5V - out
- 8 : 5V + sensor in
- 9 : 5V - sensor in
D-Sub 9-pin connector: RS-232
- 2 : Transmit
- 3 : Receive
- 5 : GND
PCMU v.1.0 uCtrl Development 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)
- Baud : 9600
- Data bits : 8
- Parity : None
- Stop bits : 1
Measures the power consumption by counting LED pulses from the home fuse box, written with BASCOM-AVR.
- Sound alarm control unit
- Alarm disabling unit for production equipment
- Intruder alarm system controller
- Alarm disabling unit for production equipment with long stop warning
- Security keypad with programmable PIN
- Created Jan 26, 2007
- Last modified 1 month ago
- Project status: Given away