Ardwiino icon indicating copy to clipboard operation
Ardwiino copied to clipboard

[Request]: Filtering analog inputs

Open ruenes1 opened this issue 8 months ago • 0 comments

Please describe your request.

Some repurposed guitars show spikes in analog inputs, such as the whammy bar or analog joysticks. Even after carefully cleaning the pots, spikes remain. They are mainly seen in the configuration UI, not in the windows controller tester, as they are very short. Even though they do not seem to cause issues in game if associating led outputs to those analog inputs, I get very short false activations for such leds.

A possible solution is to implement some temporal filtering to analog inputs, as done recently for the accelerometer input. A simple temporal filtering may work.

https://learn.newmedia.dog/tutorials/arduino-and-electronics/arduino/analog-input-filtering-smoothing/

Or just re-use some specialized libraries, such as:

https://github.com/dxinteractive/ResponsiveAnalogRead

What operating system are you using?

Windows 10

os-other

No response

What microcontroller are you making a request for?

pi pico

How will the microcontroller be programed for this request?

Direct

ruenes1 avatar Jun 06 '24 17:06 ruenes1