OK, sorry you’re feeling sick..
I’ll dump a bunch of information here for you to look over later if you feel better.
Just in case you didn’t read it already, there’s a pretty good detail on the difference between an encoder and a pot in the WIKI FAQ. I don’t know how to link it, but the question header is:
“What’s the difference between potentiometers, sliders, motor faders and encoders?”
The parts of the difference that matter to you are:
Encoders connect to 2 DIN channels, pots and sliders connect to 1 AIN channel.
Encoders are “relative”, so you don’t need to motorize them if the setting is changed. but
pots are “absolute”. so if they’re in the wrong position, software will have to adjust things.
That last part is important to understand.. If the fader is at zero, but the setting is really at
50%, what happens when you move the fader? Does it “JUMP” down to 1, or does it wait for the fader to reach 50% before anything changes? MIOS has some choices to help with this, but each choice is a different compromise. Unless that are motorfaders. then MIOS will just move the slider to whatever position it needs it moved to.
Finally, getting back to the faders you have chosen:
They offer AOUT only if you buy them with that option. This is the ONLY option that MIOS is built to handle already.. But I looked further, and there is one little problem. These faders run on 3.3 Volts, and the AOUT will swing from 0 to 3.3 volts as you slide the thing around. MIOS normally expects 0 to 5 volts, so you’ll need to “scale” those inputs in software. (could also be done in hardware, 1 op-amp per slider)
The SPI option is there too, in all models, It is “absolute”, telling you the exact position of the slider with 8 bits of accuracy (256 steps). It is not “relative” like rotary encoders are, so even if you adapt SPI into encoder signals, you’ll still have a problem with absolute/relative conversion. I don’t see any way around that.
The UART option is not documented in the datasheet, but I’ll guess it’s as absolute as the SPI is.
So on to the bottom line:
You can make this thing into an analog slider (pot) by ordering the sliders with the analog option, then adding a op-amp and a few resistors to scale the voltage to 0-5 volts. These signals will work great with an AIN module, and MIOS will treat it like any other pot/slider. You may be able to skip the op-amps and scale it in software, I can’t say for sure. (I know how to trick the PIC into it also, but I’m getting off-track)
You can challenge yourself to make an SPI to quadrature adapters with small PIC chips, and convert the voltage from 3.3 to 5 in the same step. But it won’t be quite right, because MIOS assumes that all encoders are incremental, and these sliders will always be absolute.
You can challenge yourself to make UART to quadrature adapters with small PIC chips, and convert the voltage from 3.3 to 5 in the same step. But it won’t be quite right, because MIOS assumes that all encoders are incremental, and these sliders will always be absolute.
That’s all I can offer you. It’ not what you wanted, but it’s all out there.
I really hope that others will correct anything I have said wrong.
Feel Better,
LyleHaze