I have an Electron device that automatically goes into sleep mode when it finishes it’s monitoring task, or when the user is done using it, in order to conserve battery life. There is a button on the device that can be pressed to bring it out of sleep mode and the device restarts its monitoring task. I am having issues with my devices waking up at undesired times. At first it seemed random but now I have found a way to duplicate the undesired behavior. Clicking the igniter of a fire starter lighter within 2ft of a sleeping Electron will cause it to wake up. I suspect that similar RF noises around are causing my issues.
Has anyone had similar issues? Could I somehow debounce the wake up with software? Could I put shielding in place to protect the Electron?
I am using the following lines of code to put the Electrons in sleep mode:
const int wakePin = D0;
For my circuit I am pulling power off of the 3V3 pin, go thru a 1k resistor, go thru a normally open push button, and then to the D0 pin. I have also tried adding 10k and 5k pulldown resisters to D0 pin with no change.