Shop OBEX P1 Docs P2 Docs Learn Events
Radio Reciever Connection — Parallax Forums

Radio Reciever Connection

ThricThric Posts: 109
edited 2010-11-04 19:15 in Propeller 1
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

Comments

  • Duane DegnDuane Degn Posts: 10,588
    edited 2010-11-04 13:09
    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
  • TimmooreTimmoore Posts: 1,031
    edited 2010-11-04 19:15
    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.
Sign In or Register to comment.