mixing R/C output with PIC

Have a good idea for a new product for SFE or Olimex? Let us know!

Moderator: phalanx

Post Reply
michaelj

mixing R/C output with PIC

Post by michaelj » Mon Jan 17, 2005 11:26 am

I'd like to be able to get the output from an R/C receiver to go into a PIC, then contol the servo's via the PIC insted of directly.

By doing this, I could add sensors to the Remote controlled car that made it impossible to (for example) stear into a wall.

The Idea would be that without any input from the sensors, the R/C's PWM signal is decoded by the PIC, then "passed on" as is to the output of the PIC circuit, which would control, as usual the stearing and speed of the vehicle. As the sensors picked up obsticals getting closer then the output would be modified slightly at first ( i.e. the car starts to veer away from the wall), but as the sensors pick up more or bigger obsticals, then the output is modified more, until the car is eaither turned in the oposite direction and / or the speed shut down.

User avatar
sparky
Site Admin
Posts: 1342
Joined: Mon May 05, 2003 6:02 pm
Location: Colorado
Contact:

Post by sparky » Tue Jan 18, 2005 8:51 am

This is certainly do-able. The PIC can easily decode/encode PWM. There are actually hardware modules built into PICs to do this. Most PICs only have one or two but I believe there are some specifically designed for motor control that have multiple modules. I wanna say the 16F676 but I think that's wrong.

www.microchip.com will fill you in on all you need to know.

-Nathan

Post Reply