# Wav trigger debounce?

**URL:** <https://community.sparkfun.com/t/wav-trigger-debounce/61055>\
**Category:** Other\
**Created:** [October 7, 2024, 6:27am UTC](https://community.sparkfun.com/t/wav-trigger-debounce/61055 "2024-10-07T06:27:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![PopCultureNW](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@PopCultureNW](https://community.sparkfun.com/u/PopCultureNW)\
**Post date:** [October 7, 2024, 6:27am UTC](https://community.sparkfun.com/t/wav-trigger-debounce/61055/1 "2024-10-07T06:27:52Z")

</div>

Hello. We are using a Wav trigger for an exhibit and have everything added and working. I am curious does anyone have a recommendation for button debouncing? I am using regular arcade buttons to trigger the sounds and sometimes get multiple triggers when pressing slow. I have also thought about switching to leaf spring style switches thinking maybe the gradual press would help as opposed to microswitches.

---

<div class="post-metadata">

**Author:** ![PaulZC](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/paulzc/32/67_2.png) [@PaulZC](https://community.sparkfun.com/u/PaulZC)\
**Post date:** [October 7, 2024, 7:21am UTC](https://community.sparkfun.com/t/wav-trigger-debounce/61055/2 "2024-10-07T07:21:21Z")

</div>

Hi,

Adding a 100nF capacitor across the switch contacts usually solves bounce issues.

I hope this helps,  
Paul

---

<div class="post-metadata">

**Author:** ![PopCultureNW](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@PopCultureNW](https://community.sparkfun.com/u/PopCultureNW)\
**Post date:** [October 7, 2024, 4:22pm UTC](https://community.sparkfun.com/t/wav-trigger-debounce/61055/3 "2024-10-07T16:22:32Z")

</div>

I will definitely give this a shot. Any specific way to put these inline? As of now I have th wires directly from the buttons to Wav trigger. Am I supposed to literally solder these inline? Is positive lead from cap inline with NO on button?

---

<div class="post-metadata">

**Author:** ![PaulZC](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/paulzc/32/67_2.png) [@PaulZC](https://community.sparkfun.com/u/PaulZC)\
**Post date:** [October 7, 2024, 5:32pm UTC](https://community.sparkfun.com/t/wav-trigger-debounce/61055/4 "2024-10-07T17:32:07Z")

</div>

Hi,

The cap should be connected in parallel with the switch. Each switch needs its own cap.

Hope this helps,  
Paul

---

<div class="post-metadata">

**Author:** ![PopCultureNW](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@PopCultureNW](https://community.sparkfun.com/u/PopCultureNW)\
**Post date:** [October 7, 2024, 11:16pm UTC](https://community.sparkfun.com/t/wav-trigger-debounce/61055/5 "2024-10-07T23:16:17Z")

</div>

Yes I think what I lll do is extend both legs of a ceramic cap and run it on the line going to trigger. Then ground to ground

---

<div class="post-metadata">

**Author:** ![brow](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/brow/32/6116_2.png) [@brow](https://community.sparkfun.com/u/brow)\
**Post date:** [October 8, 2024, 3:16pm UTC](https://community.sparkfun.com/t/wav-trigger-debounce/61055/6 "2024-10-08T15:16:07Z")

</div>

If adding the caps is too much of a hassle (naturally, I’d drag my feet a bit, too), you could experiment with a different button/switch type, some are far better at make/break characteristics, others seem purpose-designed to ring around the rosie.

If you have a nearby ground (like if they’re lighted), you might be able to get away with adding caps to the backs of the buttons.

---

<div class="post-metadata">

**Author:** ![PopCultureNW](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@PopCultureNW](https://community.sparkfun.com/u/PopCultureNW)\
**Post date:** [October 8, 2024, 4:32pm UTC](https://community.sparkfun.com/t/wav-trigger-debounce/61055/7 "2024-10-08T16:32:12Z")

</div>

You guys are awesome. Throwing these ideas around and having this kind of feedback is great.

---

<div class="post-metadata">

**Author:** ![twrackers](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/twrackers/32/6166_2.png) [@twrackers](https://community.sparkfun.com/u/twrackers)\
**Post date:** [October 13, 2024, 1:16pm UTC](https://community.sparkfun.com/t/wav-trigger-debounce/61055/8 "2024-10-13T13:16:26Z")

</div>

Maybe not the simplest solution, but you could put in a smallish Arduino-type board and use pairs of GPIO pins (one in one out per pair) and debounce in software, which would let you tailor the timing to what you want. I have a PushButton Arduino library just for that purpose, it’s downloadable from my GitHub.

---

<div class="post-metadata">

**Author:** ![PopCultureNW](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@PopCultureNW](https://community.sparkfun.com/u/PopCultureNW)\
**Post date:** [October 13, 2024, 6:42pm UTC](https://community.sparkfun.com/t/wav-trigger-debounce/61055/9 "2024-10-13T18:42:53Z")

</div>

Sounds like you’re suggesting using a micro controller for an almost pull-up resistor?

---

<div class="post-metadata">

**Author:** ![twrackers](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/twrackers/32/6166_2.png) [@twrackers](https://community.sparkfun.com/u/twrackers)\
**Post date:** [October 13, 2024, 8:52pm UTC](https://community.sparkfun.com/t/wav-trigger-debounce/61055/10 "2024-10-13T20:52:10Z")

</div>

I connect each normally-open switch between GND and a GPIO set to INPUT\_PULLUP. That GPIO would be assigned to a PushButton object in my library, with a debounce period specified. When the button is pressed long enough to cover possible bounce, the object THEN will indicate it is pressed. It’s then safe to digital write to another GPIO set to OUTPUT. Same logic debounces when the button is released.

So one device, say Arduino Micro, can be programmed to debounce multiple switches/buttons. Can be done with normally-closed too if you invert your logic.

That’s how I do it.

---

<div class="post-metadata">

**Author:** ![brow](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/brow/32/6116_2.png) [@brow](https://community.sparkfun.com/u/brow)\
**Post date:** [October 14, 2024, 2:07pm UTC](https://community.sparkfun.com/t/wav-trigger-debounce/61055/11 "2024-10-14T14:07:28Z")

</div>

> [@twrackers](#):
>
> It’s then safe to digital write to another GPIO set to OUTPUT. Same logic debounces when the button is released.

That would certainly yield satisfactory debouncing.
