Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to Interface IR with microcontroller ?

Status
Not open for further replies.

fireball003

Full Member level 3
Joined
Oct 28, 2005
Messages
181
Helped
8
Reputation
16
Reaction score
3
Trophy points
1,298
Activity points
3,157
8051+ir interfacing

Hi,
I want to make a security system for a room using IR. My job is when a man enters in the room IR detects it. But i never use IR before.

How can interface a IR detector and IR emitter with microcontroller so that I can detect inturrupt beteen IR detection?

Please suggest me and give me few links related to this topic.

Thanks a lot.
 

ir microcontroller

I didn't understand. Why do I need PIR? Why can't I interface simple IR detector?
 

ir sensor interfacing with 8051

PIR sensor detects human by the heat produced from the human body. Suppose if someone else except human came, then Ir will detect, PIR won't. Connect IR LED to 5V through some 330ohm. Other side u use Photo Diode with LM324 comparator to detect, but this has range of 5-7cm only. For long distance use TSOP1738 sensor and 38Khz modulated IR. sometime u can use sonar, but u better go for PIR+TSOP combination.

See some distance measurement techniques. TSOP can detect 1m and sonar is also 1m or more

see these
Infra Red LED-http://booksbybibin.14.forumer.com/viewtopic.php?t=28
DISTANCE MEASUREMENTS-http://booksbybibin.14.forumer.com/viewtopic.php?t=115
light sensor: PHOTO DIODE-http://booksbybibin.14.forumer.com/viewtopic.php?t=127
light sensor: PHOTO TRANSISTOR-http://booksbybibin.14.forumer.com/viewtopic.php?t=128


COMPARATOR USING OPAMP(LM324)-http://booksbybibin.14.forumer.com/viewtopic.php?t=37

Bibin John
www.bibinjohn.tk
 
photodiode microcontroller

OP was talking beam break detector, those are other types..

For beam break you just modulate IR LED on one side, when receiver doesn't see it something is in the beam. Easily can do 20 meters. Not a good alarm since it's easy to defeat, but fine for people counting or detecting. Used on a lot of garage doors near the floor as an object sensor, break the beam while the door is going down and it goes back up.

Radio Shack used to have one for a long time for a door chime/alarm that had a sensor and IR sender in the same unit, and just a reflector for across the room on the other side to bounce the beam back. Most Radio Shacks had one set up at the front door for years. Never sold well and they dumped them a few years ago, now most of their door sensors are just the magnetic type.
 

interfacing ir sensors with microcontroller

you can also use an IR detector module using a photodiode on one side and an IR led on the other. When someone enters the room then the IR signal being received by the photodiode will be interrupted and this activity can be monitored though a microcontroller. A PIR detector on the other hand is expensive and is supposed to be used in application having larger monertary support or precise environment.
 

interfacing of ir with 8051

Just to mention, PIR stands for "Passive Infra-Red", since no one mentioned it here. :D
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top