32 Pots Midi controller, stuttering Pot values on Display.

Dear All, this is my first post on this excellent Forum, i love it.

I hope someone can help me.

I have build a 32 knob midi controller with 1 Leonardo and a multiplexer, this works fine, BUT !!

If the values of the pots are in the middle of whole numbers, then the value is flickering on the OLED 0.96`" display.

Is there a way to avoid this?

My Korg NANOKONTROL2 uses also Pots and no rotery pots, an that works fine, no stuttering values.
realy stable.

I use 10K Potentiometers, that's ok?

Any tips are welcome.

thanks...

greetz,
Hans

I use 10K Potentiometers, that's ok?

Yes that is the ideal value.

All analogue to digital converters are only stable to the least significant bit. That is the nature of the process. He slightest noise can affect this dithering.

One way to minimise this is to put a 0.1uF capacitor from the wiper of each pot to ground. Also put something like a 47uF capacitor across the 5V and ground at the end of the run powering the pots.

A software method that I use all the time is to only change a reading when the change between the current reading and the last reading is greater than some threshold. You can do this with this sort of statement.

if( abs(lastReading - currentReading > threshold)) { // then send out the reading

Do this before reducing the scale of the readings to MIDI levels, by shifting to the right three places.

valueToMIDI = rawReading >> 3;

Grumpy_Mike, thanks for the feedback.

At this moment i have one capacitor of 470uF on the 5V and ground, i will try more small ones also.

I will ask my brother to do the software part :slight_smile:

Thanks again.....

From the size of the thing I'd recommend using capacitors - with 32 channels there is little scope for
quality noise filtering in software with a single multiplexed ADC. You need one capacitor for each pot
as it enters the first multiplexer. Not after the first multiplex stage though, that would give crosstalk
between channels.

Hello MarkT

Thanks for the tip, but with the tip of grumpy mike it works very good, stabble and no jittering of the values. I love the 32 knobs....for the AU/VST synths in logic.