rc model rx

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
franky
Posts: 49
Joined: Tue Jan 13, 2009 7:23 pm
Contact:

rc model rx

Post by franky »

hi at all!
someone can help me?
i would like to do an quadricoper but i don't know how to read a ppm sum signal from the rx..
any idea?
for example whit arduino micro there is a function called pulsin that read the signal.. i need something like that
thanks!

echase
Posts: 429
Joined: Mon Jun 11, 2007 11:55 am
Has thanked: 49 times
Contact:

Re: rc model rx

Post by echase »

Just try goggling for PIC servo. E.g. http://www.mcmanis.com/chuck/robotics/p ... servo.html has a circuit and ASM code.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: rc model rx

Post by Benj »

Hello,

For my quadrocopter I did the following.

PC/Phone -> Bluetooth Dongle -> Bluetooth Module -> RS232 -> ECIO -> Servo Component -> Brushless ECU x 4 -> Brushless motor x 4

The ECIO also had connection to an accelerometer sensor to allow it to detect tilt, roll etc.

This way the ECIO takes full control of the motors to do the balancing and movement etc. All the controller has to do is say what power to send to the motors and the ECIO then takes care of ramping up/down the motor speed and maintaining balance etc.

franky
Posts: 49
Joined: Tue Jan 13, 2009 7:23 pm
Contact:

Re: rc model rx

Post by franky »

thanks Benj,

but i would like to use the radio to control the quadricopter..

Benj wrote:Hello,

For my quadrocopter I did the following.

PC/Phone -> Bluetooth Dongle -> Bluetooth Module -> RS232 -> ECIO -> Servo Component -> Brushless ECU x 4 -> Brushless motor x 4

The ECIO also had connection to an accelerometer sensor to allow it to detect tilt, roll etc.

This way the ECIO takes full control of the motors to do the balancing and movement etc. All the controller has to do is say what power to send to the motors and the ECIO then takes care of ramping up/down the motor speed and maintaining balance etc.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: rc model rx

Post by Benj »

To directly read the signal from a receiver you are basically looking at the timing for the on and off portions of the cycle.

To do this I would probably do something like this.

Wait for the input pulse to go high, start a timer interrupt running on a fast interrupt frequency, continue monitoring the input pin while counting the interrupts as they occur. When the input pin goes low again disable the timer interrupt and use the count value as your control signal.

Post Reply