trying to tie an r/c receiver output to pwm motor control
mikea
Posts: 283
ive done some digging and still dont understand how to write a code to proportionally relate the output of an r/c receiver to pwm motor. the goal is intercept signals and output them to the motor with the propeller.does anyone know of a tutorial, similar project, or thorough explanation they can point me to? -mike
Comments
I'm not sure if I've posted code to do this or not. I'll check and make sure to post a version of code that controls the motors based on the RC signal.
http://obex.parallax.com/objects/482/
http://obex.parallax.com/objects/331/
http://obex.parallax.com/objects/88/
Robert
robotworkshop, i live just west of kalamazoo, and have looked for a club or some people to meet with to learn some of this stuff and work on projects. i see you live in michigan and wondered if it was around kzoo if you know of any clubs/people to rub elbows with.
Jason Dorie has an object (I think modified from someone elses code) that monitors six channels with one cog. The down side to Jason's object is it needs to use the first six pins. This wasn't a problem with my breadboard version of the robot. My current plan is to use Nordic nRF24L01+ modules to control the robot so I wont be using RC gear at all with it.
Your robot has the power to drive those Mecanum wheels with authority without using encoders. The Rover 5 chassis I'm using, has a really hard time without the assistance of the encoders.
I hope you post more details about your robot some time. I'd really like to know what motors you're using. It looks amazing!
I added the code to my Mecanum robot thread.