georges_shed
Member
Hi All,
I am working on a project with a specific quirk of behaviour.
The teensy will be connected to a ups battery circuit. The behaviour will be as follows:
1. External power is lost. The UPS switches to battery.
2. Detecting the loss of external power, the teensy starts a 5 second timer.
a: If no user input within this 5 seconds the unit turns itself off (using franks power library).
b: If user input, the unit remains powered on by the UPS.
3(a). If the unit has self turned off. When power is re-applied I want it to turn back on on its own.
4. When the unit is turned off, I want the user to be able to turn the unit back on using the push button.
The problem is that I power the Vbat terminal to keep the RTC going. This means the power state will be persistant meaning the unit wont turn itself on after being turned off. Any ideas?
I am working on a project with a specific quirk of behaviour.
The teensy will be connected to a ups battery circuit. The behaviour will be as follows:
1. External power is lost. The UPS switches to battery.
2. Detecting the loss of external power, the teensy starts a 5 second timer.
a: If no user input within this 5 seconds the unit turns itself off (using franks power library).
b: If user input, the unit remains powered on by the UPS.
3(a). If the unit has self turned off. When power is re-applied I want it to turn back on on its own.
4. When the unit is turned off, I want the user to be able to turn the unit back on using the push button.
The problem is that I power the Vbat terminal to keep the RTC going. This means the power state will be persistant meaning the unit wont turn itself on after being turned off. Any ideas?
Last edited: