Hi Dominic,
I'm no RC expert, but it sounds like a feasible method, to make a 3-position switch control the analog channels.
However, are the analog channels normally fed to those 3-pin servos like in (say) model cars? If so, they rely on a PWM method to control
their position. If the PWM stops, then I'm guessing they rotate back to their default position, which may cause havoc ; )
In theory, you could 'measure' the PWM rate coming out of the analog channel, and replicate with a microcontroller (e.g. arduino,
although I've not used an arduino in the past), so that when the 3-position switch is changed, the microcontroller continues to
output a PWM at the same rate. I don't know how the 3-position functions, but I'm guessing it may be PWM too, but with just 3 positions (e.g.
center, left and right).
So, your design at a high level could look like this, where a microcontroller serves as an adapter to 'de-multiplex' the PWM
settings based on the 3-position switch settings, and convert to your scheme.
However, this may be a bit much to do as a complete project, it may be better to start with something simpler which could serve as a
module for your bigger scheme.
In this second diagram, you can see that there are just two inputs; the 3-position switch and one analog channel. The 3-position switch will
de-multiplex the single analog channel into three analog channels.
Your software needs to be able to time the inputs (wire them to either timer input capture or interrupt pins)in order to determine the
PWM setting - you may wish to Hi Dominic, I'm no RC expert, but it sounds like a feasible method, to make a 3-position switch control the analog channels. However, are the analog channels normally fed to those 3-pin servos like in (say) model cars? If so, they rely on a PWM method to control their position. If the PWM stops, then I'm guessing they rotate back to their default position, which may cause havoc ; ) In theory, you could 'measure' the PWM rate coming out of the analog channel, and replicate with a microcontroller (e.g. arduino, although I've not used an arduino in the past), so that when the 3-position switch is changed, the microcontroller continues to output a PWM at the same rate. You may wish to download this document
**broken link removed** and download any associated code if it exists on the Atmel website, as an example implementation. You'd also need the ability to generate PWM, which could be done with a timer interrupt scheme (google for PWM control, people may have some implementations of this already).
Arduino may work, or use any generic microcontroller board (e.g. AVR or PIC) and C code. There is a learning curve, but hopefully it won't
take long. Keep it simple, and don't use the Raspberry Pi for this (it is power hungry, doesn't have enough real-time and interfacing capabilities
on-board, so you'd end up with a solution twice as large and many times more complex - therefore with an impact on reliability.