The Sony Infrared Protocol is by far the simplest to implement in any design using IR data. Once you fully understand the SIRC then you can surely create your own. Below is code i made for the PIC12F629 Microchip. This code was written in SourceBoostC which is a C programming language for pic micros. Usually i will use C18 for PIC18F’s but for PIC12F and PIC16F i will use BoostC. What it does is:
1. Receive Infrared Data
2. Has a learning mode to store new button press as default
3. Turn On/Off a Relay which can control up to 125v @ 1 Amp
The code is actually simple and i have commented it a bunch. Below you will also find a Schematic and Video of it working.
Code: [Download]
Video: [Youtube]
