PDA

View Full Version : Radio Reciever Connection



Thric
11-03-2010, 09:03 PM
Hi,
I'm trying to read the pwm that a radio reciever sends out to the servo or esc in values that i can use in the Servo32 program. The two programs i've used however keep giving me unusable numbers, the first one gives me a value of -6415 for pin 11 and -1500 for pin 12 consitantly. The second program gives me random values ranging from 0 to as high as 11000 for both pins with almost no connection to changes i make on the remote control.

My current harware setup is just slightly modified y connectors between the reciever and the servo and esc so that the propeller is just listening in. I plan to make it so that the propeller recieves the radio on one side and transmits on another pin to the servo or esc. All I need to do is make sure that the prop is reading the correct times for the PWM to send.

Thanks

Duane Degn
11-04-2010, 09:09 PM
Thric,

I know there are lots of ways to do what you want with the Prop. When I did this type of thing (reading in PWM values from a RC receiver), I used Martin Hebel's BS2_Funtions.spin (it should be in the OBEX). I used the PULSIN_uS method. I copied the methods I needed from BS_Functions instead of using the whole object.

Sorry, I don't have the time to look through you code right now. Hopefully you can get to work by looking at the method I mentioned above.

Duane Degn

Timmoore
11-05-2010, 03:15 AM
Can you post the code that calls rx_receiver1 and then calls servo32
I use pwm_32_sv2 rather than servo32. You need to check the rx_receiver1 init, it needs a bitmask rather than a pin no, it returns different ranges depending on whether you use get or getrc so the conversions to servo may not match.