rc reciever and servo help
nvale55@gmail.com
Posts: 15
Hi,
I just recieved my propeller platform about a week ago and so far have figured out how to control a servo, my next step is to figure out how to control the servo with an rc reciever and propeller chip (as in connect the reciever to the chip and as i move the joysticks on the remote, i want the servo to move as well). so far i've been unsuccesful in doing so. My question is, can any one point me in the right direction as to figuring out how to accomplish this task?
Nik
I just recieved my propeller platform about a week ago and so far have figured out how to control a servo, my next step is to figure out how to control the servo with an rc reciever and propeller chip (as in connect the reciever to the chip and as i move the joysticks on the remote, i want the servo to move as well). so far i've been unsuccesful in doing so. My question is, can any one point me in the right direction as to figuring out how to accomplish this task?
Nik
Comments
a lot is going to depend on what the signal looks like from the receiver... The signal is usually compressed before it is transmitted but not always. i.e a signal on the receiver that varies in pulse width from 300us to 600us might translate to a servo signal ranging from 1ms to 2ms. Unless you have a scope or can find documentation on your particular transmitter/receiver pair, then the next step might be difficult to determine.
You could try a couple of items in the OBEX
http://obex.parallax.com/objects/331/
http://obex.parallax.com/objects/482/
A search for R/C and Radio Control came up with these.
I think I understand Nik's question differently than you do.
I think Nik plans on placing the RC receiver with the PP board. This way he just needs to read the signals that would normally go to the servos with the Prop and either send the same signal to the Prop (or a "Y" harness) or a modified signal (using the Prop as a signal mixer).
Right Nik?
If you just want to read the pulses being sent to the servos from the receiver, you can use the "PulseIn" method of the BS2_Functions object (it should be in the OBEX).
If not there are a couple fo ways to tap into the signal on the transmitter side. As Beau points out this part can be a trick. And it does depend on the brand and other details of the RC equipment.
You can often tap into the compessed signal from the trainer code port. I've done this with Spektrum transmitters and I'm pretty sure someone has an object in the OBEX for do this with some other brands.
With the help of Google translate and a German RC website, I was able to decode the signal Spektrum DSM2 transmitters use with their little green transmitter boards. I can now fly may helicopters with a Wii Nunchuck (which actually makes flying them more difficult).
@Nik, tell us a little more about what you want to do and what equipment you're using.
Edit: I looks like Publison and ratronic bet me to it while I was typing.
Nik
http://forums.parallax.com/showthread.php?107239-Propeller-with-propellers
Inside the "WolfSpyder.zip" file is an object called RC_receiver_6.spin - It read a pulse train and present it as a set of numeric values suitable for moving servos. You can look at the main WolfSpyder.spin file to see how it's used.
Jason
Nik