Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alarm based button debouncing #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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