RC Buddy Box
In this project I replaced the transmitter electronics of a salvaged, early 1980's, SANWA STAC-6 transmitter with a circuit that generates a PPM signal as a buddy-box controller. The project is based on AVR ATtiny84 that is connected to the original five potentiometers: four controller 'sticks' plus one 'flap' position. The AVR generates an 8-channel PPM signal from the five control inputs as: five active and three dummy channels. The code makes use of AVR's Timer0 to time the short pulse and Timer1 to time the variable channel pulse duration. Two interrupt routines toggle the output line to composed a signal that is compatible with FlySky FS-i6X RC controller. Other controllers may be tested and listed here.
This is a good reference on how RC PPM works.
AVR ATtiny84 code repository on GitHub.
Board schematics and breadboard layout download.
Features
Channel reversal DIP switches for Ch.1 Rudder/Ailerons, Ch.2 Elevator, and Ch.4 Ailerons
Stick range calibration mode
Preserve stick calibration through power cycle
Stick range calibration
Turn system 'OFF'
Center all trims and sticks
Set calibration DIP switch to 'ON'
Turn 'ON' the system
Move **all** sticks from minimum to maximum through full motion range (up/down or left/right)
When done, move calibration DIP switch to 'OFF'
PPM signal generated by FlySky FS-i6X RC controller
Output/input port at the back of a FlySky FS-i6X RC controller. Note that there are several versions of this on the web and that the actual pin function depends on the hardware version of your transmitter.
Circuit board connector to the back plug
Original RC transmitter
Back view
Back with cover off
All original electronics removed
New wire harness installed
New PPM generator board
Completed system