|
|
|||||||
|
|
Channel Wizard: Flexible PPM encoding/decoding/mixing
Dear DIY'ers,
I want to tell you about the circuit I've spent a long time developing. It's called Channel Wizard and the primary purpose is to add more PPM channels. Up to 8 inputs are either added to a PPM signal as regular channels or "multiplexed" into a single channel via an encoding scheme. If there's no PPM input, the device generates a new PPM so it can be used as PPM encoder. (See AddingChannels for a more verbose background.) Here I use the trainer port of Futaba 9C to inject 8 extra channels to the DragonLink radio module. The device can also be installed in a transmitter to tap into existing pots and switches. On the receiving end, note that the Wizard connects to a servo port, not PPM output:
With multiplexing, another Wizard needs to be connected to the receiver to decode the "sub-channels" again. The downside of multiplexing is a reduced rate of sub-channel updates but since sub-channels are sent more often when they change, this isn't obvious unless many sub-channels change values at once. In the aircraft, it can also be used as a PPM decoder. And an example of setting up Wizard as a PPM encoder, here used with a FrSky hack module:
But there's lots more hiding under the hood. Via a command line available over the UART serial port each of the 8 ports labelled A-H can be independently configured as PPM or PWM inputs, analog inputs or PWM outputs. PWM and/or PPM outputs can use dozens of mathematical formulas to calculate each output channel from any inputs. This can for example be used as a channel mixer (see video clip below). Channels can also be controlled from a computer although I haven't written any computer program for this. Some other software features: Input conditions can trigger user-defined actions such as changing channel values or channel mapping. Failsafe positions or custom actions can be defined. Sound output is possible at one port but amplification or loudspeaker is not included. Here's an example where I used a Wizard in my FPV TwinStar to read PPM, duplicate one channel for use by the two pan servos and adjust another PPM channel in two different ways to synchronize the two tilt cameras as far as the servos will go. Towards the end, I change one channel on the fly (no pun intended) to control the speed of a servo instead of its position.
Hardware-wise, Channel Wizard has input signal amplification to manage the weak signals of Graupner and JR trainer ports. It can use the signal from Futaba module port without extra resistors. It accepts voltage levels of 3.3-18 V so both trainer and module ports can be used, or the 5 V used internally in Tx'es. For use in aircrafts, the circuit features power filtering to avoid brown-outs and protection against flipped servo connectors. The circuit is 10 grams and 45x30 mm (plus servo connectors). Two push buttons and a 16-position wheel are used for basic setup, or do all settings via the UART command line. (Or use UART to redefine the button actions.) I used all pins of atmega328 to do this and almost all of the 32K flash memory. In fact, there are two firmware flavours since both multiplexing and demultiplexing won't fit. But the firmware can be replaced thanks to the UART bootloader. For a complete description, see the manual: https://bitbucket.org/fpvkiwi/channel-wizard/wiki/Home I've started to sell these for $50 plus worldwide shipping $8. It'd be gratifying if some of you wanted to take Wizard beyond the basic usage scenarios and include it in some cool DIY projects. I'm also working on a smaller version that includes I2C. There was lots of interesting engineering involved if anyone is interested.
|
||||||
|
|||||||
|
|
|
|
|
|
|
Hi chanyote, yes the channel is flexible. You can add regular channels, use an existing channel for multiplexing, create PPM from scratch or a combination of the options. Actually you don't need to "sacrifice" a channel since the value that is replaced is also registered so it can be injected as a sub-channel too.
I tried to write an overview of the options. That Tx project sounds like fun. I've myself replaced all electronics of a cheap Tx with a Wizard and FrSky module. I also had a shot at interfacing Wizard with a Bluetooth module but couldn't even start to talk to the module. I might give it another try. Maybe the module was just broken. With some wireless add-on that talks UART, channels can be controlled remotely. Or just connect a Rx to the Wizard to combine several sources of PWM and PPM (combining the signals from two Tx'es). This is something I want to do myself for FPV. |
|
|
|
|
||
|
United States, CT, East Hartford
Joined Aug 2009
702 Posts
|
Quote:
|
|
|
||
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Discussion Converting a PPM 9 channel to PPM 8 channel....... | lazy-b | DIY Electronics | 5 | Mar 10, 2011 11:22 AM |
| PPM decoding | charles0198 | DIY Electronics | 5 | Oct 24, 2004 04:29 AM |
| Anyone with knowledge of receiver construction - i.e. ppm decoding? | Hodgepodge | Radios | 18 | Sep 10, 2003 09:56 AM |
| PPM Encoding/Decoding | Keith Watson | Power Systems | 34 | Jun 21, 2001 04:59 AM |