When my brother built his EL84 amplifier he wanted to be able to count on/off operations and how long the amplifier had been running, and we came up with this clever on/off and hour counter in both an AC and a DC version based on a PIC16F628A and a seven segment LED display.
Click on the picture to enlarge it and read our comments and advice
Projects files:
Click on the picture to enlarge it and read our comments and advice
The PIC senses when 9V DC is not feed to the circuit and saves operations, and running time to the internal eeprom. The jumper is used to reset the counters.
Projects files: