The circuit above illustrates using the IR receiver module along control keys so the circuit will only toggle one of the 4 output with a PIC12F629 microcontroller to decode 5 individual IR remotes when a particular key is pressed.
The 5th key is assigned to the master clear function that toggles off the 4 outputs. Works with most hand held IR remote controls that send a single data stream. However, some remotes send multiple groups of data and only the first set of 40 bits or less will be recognized. This may result in the circuit responding to more than one key, or a single key may control more than one toggle switch. In most cases this problem can be resolved by selecting an alternate function on the remote such as (TV, DVD, SAT, AUX, Etc.). Circuit power supply is not critical and should operate on any voltage from 2 to 5 volts DC. I use a single 3.6 volt recharageable lithium battery such as found in cell phones.
Setup instructions to program the controller and record the desired keys.
Step 1 - Remove power and install a jumper wire from the input (pin 4) to ground.
Step 2 - Turn on 5 volt power to the circuit and the activity LED will flash 3 times and remain on.
Step 3 - Remove the jumper from pin 4 and the activity LED should flash three more times and remain on.
Step 4 - Press the desired keys in sequence to record the keys. The first key must be pressed twice to allow the program to establish the timing on the first press. So to program keys 1 to 5 you would press 1,1,2,3,4,5. At each keypress, the indicator should flash 3 times and remain on.
Step 5 - At this point, the indicator light should be out and you can test each key to verify it toggles the correct output. The data is stored in no-volitile EEPROM so when the circuit is re-booted without the jumper it should be ready to use with the existing programed data. For test purposes, you may want to install LEDs and resistors on the 4 outputs to verify correct operation.
----------------------- PIC12F629 HEX File ----------------------