Convert a blend pot (stacked pot) into a 360 continuous rotation potentiometer.

Grumpy_Mike:
Yes this is not surprising, there could be ways round this but first let me consider why you rejected the rotary pot idea.

Thank you very much for such a quick response.

The main reason im using pots instead of encoders is because as i said in my original post, encoders only putout 24 pulses each turn, which feels to steppy which is not expressive enough. Most midi plugins have parameters with ranges of 0 to 127 so id need about 5 turns of a cheap encoder to go from end to end. It feels unnatural as you could imagine. I now what im doing is hackish, but it actually feels more natural, i just want to get rid of the jitter.

Grumpy_Mike:
The shaft encoder is not absolute, that is it will not remember where it was on power up so you have to have some sort of electronic indicator to show you where you are, you cannot use just the knob position alone. Given that the knob can be used in a multi turn mode to get the resolution you want. Alternative you can get an absolute encoder that has better resolution than you need with a "hall effect rotary encoder", google those words.

I dont really need it to remember the position, i just need to know the direction of turn. My music software only needs a midi cc mesage with a value of 65 to know were going up or one with a value of 63 to know we're going down. Thats it. no need for absolute positions. Thats why im doing this with pots, cause they are cheap, as opposed to hi resolution rotary encoders which would rack up the price of the project to the hundreds. Which i cant spend right now.

Grumpy_Mike:
Back to your problem, you could use a boolean variable to determine what pot you look at and only look at that pot while it is in a specific range.

When you read outside that range, even though the readings are valid, you would switch to looking at the other pot. Again when a reading is outside that range you switch back to the first pot.

That way you are only looking at one pot at a time, the pot that is producing a valid reading. Enabling the pull up resistors will distort the linearity of the control and with this method you have no need to do this as when the input is floating you will not be looking at it.

If you look at the code it does that by restricting each pot to the range of 10 - 1020.
But i still get that jitter.

What im going to try is to code some inertia tracker as to avoid it to sending a message to go in the opposite direction (produced by jitter) if the innertia in one given direction is high. But im not really a good coder. I just hack stuff lol.

Im curious though. How would i go about using pull up resistors on each pot directly as opposed to using the internal pull up resistors in the uno?

Thanks in advance.