Hi.
I have an application where I am using a Picaxe that spends most of its time off (battery disconnected). Once a day it is awoken by a button press that connects the battery to the Picaxe. This button can be pressed down from anywhere between 5 seconds and 10 minutes. While the button is pressed the Picaxe sends some data wireless to another Picaxe.
When the button is released I would like the Picaxe to be able to stay awake long enough so I can detect that the button has been released and send data to the receiver telling it that the button has been released. This time has to be something like 1 or 2 seconds.
I tried connecting a transistor between the Picaxe and 5 volts. Then when the button is pressed it powers up the Picaxe and puts a pin high that is connected to the base of the transistor hoping that the transistor would power the Picaxe after the button has been released but that did not work. Maybe I did it wrongly.
I do NOT want to use a relay. They are too bulky for my application.
Any help appreciated.
Cheers!
Simmi
I have an application where I am using a Picaxe that spends most of its time off (battery disconnected). Once a day it is awoken by a button press that connects the battery to the Picaxe. This button can be pressed down from anywhere between 5 seconds and 10 minutes. While the button is pressed the Picaxe sends some data wireless to another Picaxe.
When the button is released I would like the Picaxe to be able to stay awake long enough so I can detect that the button has been released and send data to the receiver telling it that the button has been released. This time has to be something like 1 or 2 seconds.
I tried connecting a transistor between the Picaxe and 5 volts. Then when the button is pressed it powers up the Picaxe and puts a pin high that is connected to the base of the transistor hoping that the transistor would power the Picaxe after the button has been released but that did not work. Maybe I did it wrongly.
I do NOT want to use a relay. They are too bulky for my application.
Any help appreciated.
Cheers!
Simmi