How are several channels multiplexed down to a single physical wire? If two channels are transmitting the same value in the same frame, wont there be an overlap of the pulses?
Many (perhaps most) radio control transmitters multiplex all the "RC PWM" channels into a single physical wire, using a system called "RC PPM" (radio-control pulse position modulation). (a) (b) (c) (d) (e) (f) (g)
Often this "PPM" signal is transferred from the a student's RC transmitter through the buddy box wire to the teacher's RC transmitter.
Sync 1 2 3 4 5 6 7 8 Sync... ---+ +----+ +------+ +-+ +-------+ +--+ +--+ +--+ +-+ +----... | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ * * * * * * * * * * - low separator pulse, always 0.5 ms 1..8 - high "RC PWM pulse" for channels 1..8 0.5 – 1.5 ms
The long "sync pulse" between frames is typically at least 5 ms long. All the other pulses are no more than 2 ms long. Most transmitters have a fixed frame rate somewhere in the range of 40 Hz to 200 Hz.
When the pilot moves the positions of the joysticks on the transmitter, the width of the corresponding "RC PWM pulse" for that channel will grow proportionally longer or shorter.
The corresponding radio control receiver decodes the radio signal to a RC PPM signal on a single physical wire. Often the receiver includes either a 4017 decade counter or a 4015 shift register -- that chip decodes the RC PPM signal at its CLK input into to several independent "RC PWM" outputs. The various RC servos are connected to those outputs with standard 3-pin connectors with 0.1" spacing. The RC PWM signal on the "signal" wire of the 3-wires coming out of the servo has a pulse width that typically varies from 1.0 ms to 2.0 ms (proportional to the position of the joystick), but only one pulse for each frame.
(The standardized "RC PWM" works differently enough from the PWM used to control DC motor speeds that some people say that RC PWM signals "are not really PWM signals" (m) (n) (o) (p) (q). Alas, none of those people give any suggestions as to what we should call these signals, so I call them "RC PWM signals" for lack of a better name. Perhaps I should call them "RC control signals" ?).
If two transmitters are transmitting at the same time, then yes, there will be an overlap of pulses. However, people at RC flying parks are very careful to assign each pilot (and the transmitter and receiver he uses) a different "frequency channel", so that the receiver in each airplane can easily pick out the signal from its own transmitter and ignore the radio signals from every other transmitter.
A 6-channel receiver uses only one "frequency channel", but it has 6 output channels (6 servo channels), i.e., it has 6 rows of output pins for up to 6 servos to plug into -- typically one channel each for pitch(elevator), roll(aileron), yaw(rudder), throttle, and some optional AUX channels.
During a single RC frame, the a 6-channel receiver cycles through every every servomotor, putting one "RC PWM" pulse at a time on each of its 6 outputs. Only one of its outputs is ever active at any one time -- there is no overlap of its pulses.
With a typical 50 Hz 6-channel transmitter, when all the control sticks are pushed to turn all the servos all the way counterclockwise, the receiver spits out
- a 1 ms pulse on channel 1, then -- as soon as that finishes -- a 1 ms pulse on channel 2, for all 6 channels -- a total of 6 ms -- and the (relatively long) sync pulse is however long it needs to be to fill out the rest of the 20 ms frame.
When all the control sticks are pushed to turn all the servos all the way clockwise, the receiver spits out
- a 2 ms pulse on channel 1, then -- as soon as that finishes -- a 2 ms pulse on channel 2, for all 6 channels -- a total of 12 ms -- and the (much shorter) sync pulse is however long it needs to be to fill out the rest of the 20 ms frame.
Multiple channels are time sliced onto "one-wire". The real wire count is usually three. Typically there is a positive voltage wire (may not be there depending on whether both ends have their own power or not) and always a shared ground wire.
Perhaps 40-100 times per second the transmitter broadcast the settings of all controls which map to servos on something. At the beginning of each broadcast, the voltage level on the output wire (the "one-wire") is held low for a sync'ing low pulse. After that, each servo gets a time slot. Servo #1 gets the first time slot, servo #2, the second, and so on.
Hope the illustration is clear. Although my drawing only shows 1.0, 1.5 and 2.0ms time pulses any value between 1.0 and 2.0 is valid and correlates to "proportional" values at the servo (hence the "proportional" term once used to describe these).
Multiple PWM channels generally aren't shoved into a single wire (Or I've never heard of it). If you need to send multiple data channels over the same wire then using a higher level protocol (such as UART or SPI) would be the way to go. While PWM is technically digital, it isn't like other digital protocols where data can be shoved in and expected to come out perfect on the other side. It's more like an analog signal where readings are subject to noise and infinite precision is not possible.
Also, it wouldn't matter if two channels are sending the same value or not. The way servo PWM works only the longer pulse would survive (Assuming the pulses are synchronized. If they weren't unusable garbage would most likely come out).
EDIT: As for pulse positioning, it might be possible to multiplex 2 signals depending on how they were constructed. From what I have read ppm requires either a clock pulse or a external clock, but in theory it should be possible to multiplex. Keep in mind that there won't be any real way to differentiate between the pulses sent, and both sources will need to share the same clock.