Although I haven’t got any RC car, my friend ask me for programming of RC car lighting system. I produced the code for the PIC16F819 microcontroller from Microchip. Finally, it can have 4 PPM channels as input (I used 3) and 12 outputs (5 of them are used) able to drive 25mA per one output (max. 200mA in total).
Outputs are:
- blinkers = direction – 2x (RB0, RB2)
- back light – 1x (RA1)
- brake light – 1x (RA7 = OSC1)
- pass-lights – 1x (RB5)
- “strobo” light -1x (RB7)
RC transmitter controlls these lights depending of driving the car. Direction is dependent on rotation of steering wheel (input 1 - it has to be the lowest channel number) and brake is active in case of back throttle (input 2). After some period of time, brake lamp switches off and back light switches on. Pass-lights have a possibility to switch them remote (input 3). Input 4 is not used at the moment. Strobo light blinks regularly twice per one cycle.
You can download the code for PIC16F819 and the PCB design.


