A PIC 18F2550
microcontroller decodes RC5 infrared remote control signals
, and sends instructions to a ShiftBrite
color-changing LED module. We used a PIC development board with SMD parts, but you could also build this on a breadboard or perf-board with through-hole parts.
The IR receiver
converts infrared light from the remote control into a signal that the PIC microcontroller can decode. The receiver is connected to PORTB pin 2 (RB2) of the PIC. RB2 has an external interrupt with edge select that we used to trigger the IR decoder. RB2 also has a Schmitt buffer
that cleans the incoming signal and helps prevents false triggers. All PORTB pins on the 18F2550 have internal pull-up resistors if your receiver is an old type that doesn’t have it’s own pull-up.