need help to get RC signal to Basic stamp then to servo controller
Hello all,
Im still quite new with this basic stamp 2 and i need help with my final year project. I'm supposed to·transfer·the signal created from my 36.1MHz RC transmitter to a receiver of the same frequency, which is connected to my basic stamp 2. Using the pulse and time received in the basic stamp, I'm supposed to then change the pulse width of the servo, with the help of a servo controller chip.
You see, I think I've managed to pulsin the signal into the basic stamp, but I'm stuck to continue on.. Can anybody help me?
·
Im still quite new with this basic stamp 2 and i need help with my final year project. I'm supposed to·transfer·the signal created from my 36.1MHz RC transmitter to a receiver of the same frequency, which is connected to my basic stamp 2. Using the pulse and time received in the basic stamp, I'm supposed to then change the pulse width of the servo, with the help of a servo controller chip.
You see, I think I've managed to pulsin the signal into the basic stamp, but I'm stuck to continue on.. Can anybody help me?
·
Comments
Not too difficult. Take a look at the PULSOUT command in the BS Syntax and Reference Manual. If you are working with just one channel, then it shouldn't be a problem at all (as long as all calculations take less than about 15 ms). If you have multiple channels, then you may have difficulty measuring each signal if they are output together or one right after another. I don't know the output order of RC receivers(or if there are standards or conventions for such things...)
The attached example BS2 code may help you out.
Regards,
TCIII
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If you are going to send·a Robot·to save the world, you·better make sure it likes it the way it is!
Post Edited (Tom C) : 12/16/2008 9:21:22 PM GMT