Ardwiino
Ardwiino copied to clipboard
[Request]: Filtering analog inputs
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.
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