As you can see in this post, I've used a simple slide switch to control the power for the sensor keyer. This was a little bit annoying, as you must always check, whether you've turned of the power, when you leave the shack.
As power consumption is not really a big issue - the keyer draws about 2.5mA from two AA-cells. Based on the capacity of an average Energizer Classic AA battery of 1.200mA you will get an on-time of about 300h.
Since many months I've had the idea, to add an electronic switch to the keyer, so it switch of automatically after 15 minutes of idle time.
The logic necessary for this kind of switch can be done in discrete components or you can use a simple micro controller. I decided to go for a micro controller. I use the ATMEL ATTINY85 as this chip has enough port pins, a small form factor and it's pretty cheap. For my prototype, I use the DIP version, so I can use a breadboard for soldering and you can easily remove the ATTINY for programming in an external programmer.
As I have the original PCB from John, I added a simple daughter board into the metal case:
The software - just a few lines of standard c code can you find here for download.
The WINAVR makefile can be downloaded here to compile the source code into an INTEL HEX file.
The usage is pretty simple. Shorten Jumper JP4 for abt. 1s and release it. The keyer will turn on. If no paddles are pressed within 15 minutes, the keyer will turn off. If you press a paddle, this 15min period will restart. To turn off the keyer, simply shorten JP4 for a short time and release it. The keyer will turn off.
When the keyer is turned off, the ATTINY85 is running in power-down mode. The power consumption then is about 4.4μA. In this state, the ATTINY awakes every second and checks for a short on JP4. During this phase, the ATTINY draws about 8.2μA from the batteries.
When a short on JP4 is detected, the keyer is turned on. Now the power drawn from the batteries rises to 2.8mA.
Based on the capacity of an average Energizer Classic AA battery of 1.200mA you will get an average battery life time, when the keyer is in power-down mode of about 170.000h. I think the self discharge of any battery is much higher.
if some is interested in a programmed ATTINY85 or a PCB, please let me now.