I’ve created an arduino mp3/aac player and with a LiIon accu step-up to 5,2V.
I have created a stand-by functionality with a Polulu power switch.
What I want:
I want to wake up the arduino with a tilt sensor from (arduino starter pack --> https://www.arduino.cc/documents/datasheets/TiltSensor.PDF).
The sensor is connected to the power switch (A + B connector). When the arduino is started it establishes an High Volt on connector ON.
The startup needs some seconds (1-2 seconds) and when not holding the tilt sensor still it turns the arduino off and some times I have an on/off flickering.
How can I avoid the on/off flickering?
Is it possible to add a capacitor to the tilt sensor? Which capacitor do I need for this?
Or another idea is to disable the tilt sensor with an MOSFET?
What do you think?
Thanks a lot
P.S. Here is my code, but it doesn’t matter (I think) https://github.com/golesny/12mp3