Skip to content

Add alarm based button debouncing#24

Open
ar0n wants to merge 1 commit intonewaetech:mainfrom
ar0n:main
Open

Add alarm based button debouncing#24
ar0n wants to merge 1 commit intonewaetech:mainfrom
ar0n:main

Conversation

@ar0n
Copy link

@ar0n ar0n commented Oct 17, 2022

Looks like the quality of the buttons I used is not that great, so I've added new debouncing.

Resolves #14

alephbias added a commit to alephbias/chipshouter-picoemp that referenced this pull request Aug 3, 2024
@alephbias
Copy link

This does fix the problem, however there's a slight bug in it.

With the correct timing, it's possible to double click the ARM button and get into a state where the Arming LED is off, but the HV LED is on and the device can successfully glitch. To get out of this state involves clicking the Arming button again, waiting for the Arming LED to turn on, then clicking it again to dis-arm the PicoEMP. The sequence to try is:

  • Press the ARM button
  • Wait a brief moment (potentially slightly longer than 80ms?)
  • Press the ARM button again
    After a few tries of this, this weird state will be entered. If you can't get it to happen, try modifying your delay before pressing the button again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unreliable arming button in C firmware

2 participants