# Filter Exp Pedal oscillation using Mid Translator

**URL:** <https://forum.bome.com/t/filter-exp-pedal-oscillation-using-mid-translator/4233>\
**Category:** Bome Products\
**Created:** [May 5, 2022, 12:28pm UTC](https://forum.bome.com/t/filter-exp-pedal-oscillation-using-mid-translator/4233 "2022-05-05T12:28:17Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [May 8, 2022, 3:30pm UTC](https://forum.bome.com/t/filter-exp-pedal-oscillation-using-mid-translator/4233/6 "2022-05-08T15:30:03Z")

</div>

Hi,

I just created a new solution for this.

The expression pedal will need to move 3 clicks before it activates. Once activated, only 1 click is required. Then if the pedal is not moved within 500ms, it reverts back to 3 clicks so it should give you the precision you need and the eliminate the oscillation after 500 ms (1/2 second)

I use 3 global variables and a watchdog timer to control.

1. The amount of clicks required
2. The timeout period
3. The last known value of the pedal

```auto
// minimum amount to move to recognize the pedal
// has moved
ga=3
// timeout in ms
gb=500
// last known value
gc=0

```

These values are set up a project start.

Enjoy!

[FCB-1010-Debounce.bmtp](https://forum.bome.com/uploads/short-url/bScNW5iwNC8m2NMMzpKSuSBwOTQ.bmtp) (2.1 KB)

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

_[View the full topic](https://forum.bome.com/t/filter-exp-pedal-oscillation-using-mid-translator/4233)._
