How to turn on power to device with motion
Hello all, I'm looking for some advice on how to power up a small circuit board if there is motion detected. The purpose is on a sliding glass door, if there is motion I want to turn on a touch sensor metal strip on the edge of the door. The module must be battery operated and the goal is to get a minimum 1 year out of whatever batteries are used. The form factor goal for the batteries would be not to exceed the shape of 3 D size batteries, 4 worst case. The module will use a QT1010 cap touch sensor. In low power mode (slow) at 5V it states 73.5uA, in Fast Mode 729uA but I can get by with slow mode. The goal is to be able to run the device for 1 minute per day, every day of the year. In reality it will likely not get used for weeks at a time and used a few minutes a month, but I need to plan for 1 minute per day so that the battery life is 1 year minimum. A gyro chip doesn't seem like a good fit since it will require some processor to drive it non stop. I was hoping someone had some experience with a device that can detect motion and make a switch contact. Upon making a contact it would turn on the power to the microprocessor(unspecified but P1 is my go to if possible) and QT1010 for 1 minute. A P1 pin can power the QT as one option. If the sensor gets a trigger then a processor will drive a logic level mosfet to fire some other device that has it's own battery. The question is what method to detect some motion(door sliding), and what method to turn on power to the QT1010 for a predetermined time( ie a micro that counts to 1 minute or user defined, then it has a method to kill the power to the QT1010. During the 1 minute the micro will watch for a trigger from the QT1010, and if it sees an active high it will then drive a mosfet for 1 second, then turn off the power to the QT1010 and to the micro.
One problem will hooking up a motion type switch to 3v3 to provide power to the P1 is that the switch could be very short and the p1 would need sufficient power on time to boot, and subsequently turn on a another switch from the battery to provide power to itself until the P1 runs for the 1 minute and shuts everything back down.
Any suggestions appreciated!