Capturing and Generating Infra Red Signals With PIC 16F84

by ahmedebeed555 in Circuits > Microcontrollers

1622 Views, 2 Favorites, 0 Comments

Capturing and Generating Infra Red Signals With PIC 16F84

cover1.jpg
remote.JPG

Hacking Infrared with PIC 16F84A

In this project, we'll learn about transmission of the Infra red signals using PIC 16F84A. You can use Infra red signal in many projects ( Robots, Touch less counters, Theft alarming .. )

Downloads

Supplies

PIC 16F84A Microcontroller eBay , Amazon UK , Amazon DE , Amazon FR

IR LED eBay , Amazon UK , Amazon DE , Amazon FR , Banggood

IR Receiver Module eBay , Amazon UK , Amazon DE , Amazon FR , Banggood

What We Need to Know About Infra Red Transmission and Reception

ir module.JPG
ir.jpg
IRLED.jpg
remote.JPG

All you need to know to start using Infra Red signals are IR transmitters ( IR LEDs ) and IR receivers ( IR receiver modules ).

The IR LEDs are normal LEDs in the outer shape but they emit IR signals and of course these signals cannot be seen by the human eye. You can though make sure it is working fine by using a digital camera. The digital camera can detect the Infra Red signal and makes them visible to you.

This image of the remote control shows you how the digital camera in the mobile phone can make you see the IR signal transmitted from a normal IR remote control.

The other difference between visible light LED and IR LED is that in visible light LED, the +ve terminal (Anode) is the longer one. But in IR LED, the +ve terminal (Anode) is the shorter one.

The second thing you need to know is the IR receiver module. It is an IR receiver component connected to a demodulator and amplifier circuit. The function of the demodulation circuit is to demodulate the modulated signal received by the receiver module. This means that this module can receive and understand ONLY modulated signals !!!

YES , that's true. And this is used to differentiate between the IR communication and control signals and IR signal emitted from all the objects around us and from all visible light sources. The demodulator circuit has a Band Pass Filter (BPF) that can detect only signals modulated by a 34kHz carrier signal. Here is a datasheet for TSOP312 Infrared receiver module module.

This means that if you want to transmit a signal that can be demodulated as (1), you need to send a continuous signal of 34kHz from your IR transmitter LED.

Capturing the IR Signal

IR-Mod.jpg
tvone.JPG

First, I captured the Infra Red Signal using the IR receiver module connected to the 3.5 mm audio Jack and put into the computer audio input.

This is the signal I captured from the Remote Control by the IR receiver.

Supplies:

PIC 16F84A Microcontroller eBay , Amazon UK , Amazon DE , Amazon FR

IR LED eBay , Amazon UK , Amazon DE , Amazon FR , Banggood

IR Receiver Module eBay , Amazon UK , Amazon DE , Amazon FR , Banggood

Generating the IR Signal

IRRRRRRRRRRRRR.jpg
MyOneTV.JPG
arduino.jpg
embedded.jpg
wind.jpg
code.jpg

And this is the signal I generated from the PIC 16F84A .

The software is very simple this time and written in Assembly Language.

The transmission circuit is very simple. I built it using the PIC 16F84A Microcontroller and the Infra Red LED.

All it does it sending pulses to the IR LED at the correct frequency for the correct periods of time. It consists of a 34KHz carrier modulated by the signal of consecutive zeros and ones. I knew the time coding of the TV remote control by capturing the signal using the IR receiver module to the sound card of the PC . Then I viewed it using a sound editing software to show the exact times for the IR signal. Here is the link for the Proteus 7 model and software for the project.

http://docs.google.com/leaf?id=0Byhyj_-YLEr1NmQ0ZjE5MTYtZjNmYS00YzRiLTlmMWQtY2E4NTU3Nzk4YmY2&sort=name&layout=list&num=50

Read it on my blog

http://embedded-egypt.blogspot.com/2010/07/hacking-infrared-with-pic-16f84a.html

Check out my Electronics book on Amazon:

Embedded Systems, Electronics: My Projects Collection From Instructables

Check out my Arduino book on Amazon:

Arduino 2020 Guide: With Easy Twelve Projects to Get Started

Check out my Wind Turbines book on Amazon:

Backyard Wind Turbines

This is my Author Page on Amazon:

amazon.com/author/ahmedebeed

Please leave your ideas and comments.

Thank you for reading.