Make RC (Radio controlled) Remote Control presentable as Joystick in Linux without any additional cables. Since we know that servos operate on PWM, I have decided that cheapest way (and easiest) to fly a RC model simulator is to translate PWM from receiver to Joystick data on computer. Mbed board was doing the translation. No need for any special cable and no dependency on RC Transmitter or Receiver whatsoever. If it can move the servos it can also move the model in computer simulator. Requirements and design are available on https://os.mbed.com/users/Letme/notebook/rc-receiver-as-joystick/

Dependencies:   PwmIn USBDevice USBJoystick mbed

requirements test cases design

Target OS

Linux, Android

Requirement

Any RC receiver shall connect through mbed device to USB in target OS and be presented as joystick.

Test case

Identify as joystick on Linux

Connect RC receiver to mbed device. Connect mbed device to Linux PC. Confim that Linux sees device as joystick.

Identify as joystick on Android

Connect RC receiver to mbed device. Connect mbed device to Linux PC. Confim that Android sees device as joystick.

RC transmitter stick movement corresponds in target OS

Connect receiver to target OS. Confirm RC transmitter stick movement corresponds to correct axis movemen on target OS.

Design

Connect PWM outputs on receiver to pins on mbed device. Read pins on mbed device and calculate the movement integers according to standard values for standard joystick driver.

Present mbed device as joystick on target OS and push data streams for each axis corresponding to values obtained through calculations from PWM pins.

content of this page is taken from https://os.mbed.com/users/Letme/notebook/rc-receiver-as-joystick/ , which was written before development started.


All wikipages