[phpBB Debug] PHP Warning: in file /mnt/forum-shared/ext/sitesplat/BBCore/event/listener.php on line 70: in_array() expects parameter 2 to be array, boolean given
mixing R/C output with PIC - SparkFun Electronics

SparkFun Forums 

Where electronics enthusiasts find answers.

Have a good idea for a new product for SFE or Olimex? Let us know!
By michaelj
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
By sparky
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.