You are on page 1of 7

Home Sign Up!

Browse Community Submit


All Art Craft Food Games Green Home Kids Life Music Offbeat Outdoors Pets Photo Ride Science Tech

IR Remote Control Signal Capture and Visualization


by Possum on May 25, 2009 Table of Contents IR Remote Control Signal Capture and Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Intro: IR Remote Control Signal Capture and Visualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 1: Parts and Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 2: Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 3: Microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 4: Activity Indicator and IR Sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Step 5: Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 2 3 5 5 6 6 7 7

http://www.instructables.com/id/IR-Remote-Control-Signal-Capture-and-Visualization/

Intro: IR Remote Control Signal Capture and Visualization


This is a device that can capture the IR signal from most remote controls and send the information via serial port to a computer for display. It provides all the vital information such as on/off durations, pulse counts, and carrier frequency. The captured information can be use to aid development of microcontoller code to respond to or transmit IR codes. This circuit makes use of LEDs for more that just an indicator. They are also used as a voltage regulator and as an IR detector.

Image Notes 1. Remote Control 2. Waveform 3. Carrier frequency 4. Capture circuit

Step 1: Parts and Schematic


Parts needed: Blue LED with Vf of 3.0 to 3.3 Green LED with Vf of 2.0 to 2.2 (not ultra-green or true-green) Red LED with Vf of 1.8 to 2.0 Infrared LED with wavelength of 940 or 950 nm 1N4148 or similar diode 100 nF (0.1 uF) capacitor Microchip PIC 12F629 microcontroller Female DE9 connector Wire (solid core 20 awg) Breadboard PIC Programmer (PicKit 2 or similar)

Image Notes 1. 1N4148 Diode 2. Green LED 3. Blue LED 4. Red LED - Activity indicator 5. 100 nF capacitor 6. Infrared LED Image Notes 1. Blue LED 2. Green LED 3. Red LED 4. Infrared LED

http://www.instructables.com/id/IR-Remote-Control-Signal-Capture-and-Visualization/

5. 1N4148 Diode 6. 100 nF capacitor 7. PIC12F629 Microcontroller 8. DE9 Female 9. Breadboard 10. Anode (+) is long lead 11. Cathode (-) is short lead 12. Solid core wire

Step 2: Power Supply


The power supply uses two LEDs as a shunt regulator. The low current of the circuit and the current limit of the serial port make the use of a simple shunt regulator practical for this application. Begin assembly by soldering three short solid core 20 awg wires to pins 2, 5 and 7 of a female DE9 connector. This is the only soldering required. Insert the wires in to the breadboard as show. The wires for pins 5 and 2 must be in adjacent columns. The wire for pin 7 should be several columns to the left. Install the blue LED with the cathode connected to the wire from pin 5 of the DE9 connector. Install the green LED with the cathode connected to the anode of the blue LED. Install the 1N4148 diode with the cathode connected to the anode of the green LED and the anode connected to the wire from pin 7 of the DE9 connector. The power supply circuit is now complete. To test the power supply, connect a USB to serial converter to the DE9 connector and use terminal software (Hyperterminal or similar) to open the COM port. The RTS line will switch to a positive voltage and the LEDs should light up. Measure the voltage to confirm it is close to 5 volts. Disconnect the serial cable and proceed to the next step.

Image Notes 1. Pin 2 RxD 2. Pin 5 Ground 3. Pin 7 RTS

Image Notes 1. Blue LED 2. Cathode 3. Anode

http://www.instructables.com/id/IR-Remote-Control-Signal-Capture-and-Visualization/

Image Notes 1. Green LED 2. Cathode 3. Anode

Image Notes 1. 1N4148 Diode 2. Cathode 3. Anode

Image Notes 1. Cathode of blue LED 2. Anode of green LED 3. USB to Serial converter 4. Close to 5 volts 5. The best multimeter!

Image Notes 1. Open circuit voltage is higher than the 5.5 maximum allowed by the microcontroller. 2. Green LED removed - shunt disabled.

http://www.instructables.com/id/IR-Remote-Control-Signal-Capture-and-Visualization/

Step 3: Microcontroller
Program the PIC12F629 microcontroller with the attached code. Make sure the oscillator calibration value is preserved. Install the PIC in the breadboard as shown. Pin 8 must be in the same column as the wire from pin 5 of the DE9. Pin 7 must be in the same column as the wire from pin 2 of the DE9. Install a short jumper wire from the cathode of the 1N4148 diode to pin 1 of the PIC. Install a 100 nF capacitor across pins 1 and 8 of the PIC.

Image Notes 1. Cathode of 1N4148 / Anode of green LED 2. Pin 1 3. Jumper wire Image Notes 1. Pin 8 2. Pin 1 3. Pin 2 of DE9 to pin 7 of microcontroler 4. Pin 5 of DE9

Image Notes 1. 100 nF Capacitor 2. Pin 1 3. Pin 8

File Downloads

http://www.instructables.com/id/IR-Remote-Control-Signal-Capture-and-Visualization/

ir_wiget_glo.zip (2 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'ir_wiget_glo.zip']

Step 4: Activity Indicator and IR Sensor


Install a red LED with the cathode to the junction of the blue and green LEDs, and the anode to pin 6 of the PIC. This LED will indicate that IR is being received from the remote control. Install an infrared LED with the anode connected to ground and the cathode to pin 5 of the PIC. This LED is used as a IR detector rather that an emitter. It is reversed biased by a pull-up resistor in the PIC to enable operation in the photoconductive mode. Assembly is now complete.

Image Notes 1. Anode of infrared LED to ground 2. Cathode of infrared LED to pin 5 of microcontroller 3. Infrared LED

Image Notes 1. Anode of red LED to pin 6 of the microcontroller 2. Cathode of red LED to junction of blue and green LEDs

Step 5: Usage
Run the IR Scope software from http://www.compendiumarcana.com/irwidget (bottom of the page). Select the correct COM port, and press the capture button. When the blue and green LED light up, press the button on the remote control that you want to capture. The red LED will flicker to indicate that IR is being detected. It is very important to alight the IR LED of the remote with the IR LED of the capture circuit because of the poor sensitivity of an LED used as a detector.

Image Notes 1. Make sure the correct port is selected 2. Click this to begin capture 3. This will make a file with C source code for use with the TV-B-Gone kit 4. This will save the data for later viewing or processing 5. This circuit only supports count mode

Image Notes 1. The camera shows a violet glow from the IR LED.

http://www.instructables.com/id/IR-Remote-Control-Signal-Capture-and-Visualization/

2. Align the LEDs precisely 3. Red LED indicates IR is being received

Image Notes 1. Carrier frequency 2. Waveform summary 3. Pulse count 4. On duration 5. Off duration 6. Elapsed time

Image Notes 1. Lights out overexposure 2. More LEDs == Better Product

Related Instructables

IR Remote Control Jammer by abbtech

Increase The Sensitivity of IR Remote Control by bustatech

IR Detector by comodore

A FREE way to check infrared remote controls by phil69

Universal IR Remote Switch by TimHepner

iAndroidRemote - Control Android mobile using an Apple Remote by sudar

Comments
2 comments

Add Comment
Mar 27, 2010. 1:26 PM REPLY

lj123456 says:
will this project work with a pic 12f675

Cairie says:

Nov 18, 2009. 1:25 PM REPLY can you go into more depth about the PIC making the IR LED photoconductive? I'm trying to make a project with IR leds and having trouble finding detectors. Does this create a way to use emitters as detectors?

http://www.instructables.com/id/IR-Remote-Control-Signal-Capture-and-Visualization/

You might also like