I've been struggling with this for a while. Perhaps a plain old 10k pot is too erratic for what I need, which is:
Dial in BPM (Beats per Minute) and convert to the microSeconds for the display.
I only want a range of 50-240 BPMs out of thing, but it has to sit there rock steady and musical.
I wanted to dial in the integer portion only with the pot, and have inc+/dec- buttons for the 1/10s of a BPM. A coarse/fine arrangement.
To eliminate a lot of things:
- I grabbed a spare Arduino (Freeduino)
- did the most basic analogRead() tut
- tried the smoothing tut with numReadings up to 40!
- tried the .1 uF cap over the middle and ground pins of the pot
- tried different pots
- did the software LPF with assorted values
- various averaging algo's
I hear of people getting stable +/- 1, what am I doing wrong? Do I have to go discreet steppers like switches? Hope not, I don't need 6 switches for coarse, medium, fine +/- that would be unusable in low light conditions -or- by anyone that's ingested intoxicants.
Geez, I'd have this wrapped up in minutes if it were a software UI. I feel like such a stoopid boob.
Happy Halloween everybuddy!
Carl