How to make simple Infrared Sensor Modules
Posted by Omkar on February 19, 2008
Overview :
In this tutorial we will see how to make simple infrared sensor module for detecting reflecting surface. This sensor can be used to detect reflecting silver/white strip, obstacle detection, flame detection, etc. These sensors are primary requirement of any simple line follower robo-car.
IR LED emits infrared radiation. This radiation illuminates the surface in front of LED. Surface reflects the infrared light. Depending on reflectivity of the surface, amount of light reflected varies. This reflected light is made incident on reverse biased IR sensor. When photons are incident on reverse biased junction of this diode, electron-hole pairs are generated, which results in reverse leakage current. Amount of electron-hole pairs generated depends on intensity of incident IR radiation. More intense radiation results in more reverse leakage current. This current can be passed through a resistor so as to get proportional voltage. Thus as intensity of incident rays varies, voltage across resistor will vary accordingly.
This voltage can then be given to OPAMP based comparator.Output of the comparator can be read by uC. Alternatively, you can use on-chip ADC in AVR microcontroller to measure this voltage and perform comparison in software.
IR LED and IR sensor :
IR LED is used as a source of infrared rays. It comes in two packages 3mm or 5mm. 3mm is better as it is requires less space. IR sensor is nothing but a diode, which is sensitive for infrared radiation. ![]()
This infrared transmitter and receiver is called as IR TX-RX pair. It can be obtained from any decent electronics component shop and costs less than 10Rs. Following snap shows 3mm and 5mm IR pairs.
Colour of IR transmitter and receiver is different. However you may come across pairs which appear exactly same or even has opposite colours than shown in above pic and it is not possible to distinguish between TX and RX visually. In case you will have to take help of multimeter to distinguish between them.
Here is how you can distinguish between IR TX-RX using DMM :
-
Connect cathode of one LED to +ve terminal of DMM
-
Connect anode of the same LED to common terminal of DMM
(means connect LED such that It gets reverse biased by DMM ) -
Set DMM to measure resistance upto 2M Ohm.
-
Check the reading.
-
Repeat above procedure with second LED.
-
In above process, when you get the reading of the few hundred Kilo Ohms on DMM, then it indicated that LED that you are testing is IR sensor. In case of IR transmitter DMM will not show any reading.
Following snap shows typical DMM reading obtained when IR receiver is connected to it as mentioned above. Second snap shows how sensor’s resistance increases when it is covered by a finger. Note that, these are just illustrative figures and they will depend upon sensor as well as DMM that you are using.
While buying an IR sensor, make sure that its reverse resistance in ambient light is below 1000K. If it is more than this value, then it will not be able to generate sufficient voltage across external resistor and hence will be less sensitive to small variation in incident light.
The circuit diagram :
Circuit diagram for IR sensor module is very simple and straight forward.
Circuit is divided into two sections. IR TX and IR RX are to be soldered on small general purpose Grid PCB. From this module, take out 3 wires of sufficiently long length (say 1 ft). Then, as shown above, connect them to VCC, preset and to ground on main board. By adjusting preset, you can adjust sensitivity of the sensor. VCC should be connected to 5V supply.
Making the sensor module :
You can follow these steps to make a sensor module ….
Testing sensor module :
If you have a breadboard(BB) you can quickly test this module and see how it works.
-First, connect Module on BB and connect 50K preset between vOut and GND.
-Connect DMM to movable terminal of preset.
-Rotate preset knob fully so that, resistance between variable terminal and ground is maximum.
-Give 5V supply to sensor module.
| Test setup : |
Here are some test results of my module :
Here are some of the snaps of my sensor modules :
| Four IR transmitters are used to flood the surface. Sensor diode is at the centre. I had made this when I had to detect black wall. Even black colour reflects detectable IR, if irradiated sufficiently. | |
| Sensor module covered with black tape to lessen effect of ambient IR radiation. Also metal strip is glued for easier mounting on robot-car’s chassis. | |
| This is how I use sensor module with my mega16 development board. Blue preset is connected to sensor in exactly same way as shown in circuit diagram. vOut is connected to ADC input of AVR. |
NOTE :
vOut is the output from sensor module. You can connect this to ADC input of AVR microcontroller. Now using ADC, you can read the voltage developed across the movable tap and grounded pin of preset. Alternatively you can also use OPAMP based comparator.
…. And finally, if you found this tutorial helpful or have any suggestions … do leave a comment.
shruti said
hello!! this is shruti,,,,i made sensors using infra red leds but i am encountering an error,,,,,one que.which arises in my mind is that can we use the -ve terminal of battery for GND or we have to make GND by connecting terminals to body of GPB???????
Omkar said
GND is basically a concept, where some reference potential point (which is generally lower than some highest positive potential applied to circuit) is considered as a common reference point for the entire circuit. So, you will have to use a “-ve” terminal of the battery as a GND connection.
Shreshth said
my O/P voltage is ranging from 0.56V-0.10V
is there a way to increase the range? or the o/p voltage? that is without using an amplifier?
Omkar said
Increase the resistor value at the receiver, or slightly (by 10%) decrease the value of the resistor connected to the transmitter.
JbO said
is it possible to connect the circuit to a bulb den make it light when the sensor is activated?
Omkar said
Yes, quite possible. You will have to drive a relay from the output of this circuit.
Tsoni said
Hi.Thanks for that very much!!!I am ordering some ir pairs these days, so I was wondering-is there a way i connect two receivers, and when even one of them is triggered by light, a signal is sent to the microcontroller, so I get a wider angle of visibility?
))))
P.S. Can I directly connect the vout to one of an arduino’s analog pins?The signal of the is analog I believe, so the arduino should have no problems reading them?I need them only to detect objects, not the distance.I read smt about regulating the maximum visible distance(the minimum distance that an object must be to be detected), but can you please tell me how to do it without a potentiometer-maybe some resistors in front of the tx? thanks very much one again
kelvin said
hi, i wish to to interface IR with the timer in such that the system will give feedback after every five minutes if the IR is blocked or not so that i can give that output to the microcontroller.
manjari said
May I please know the use of the capacitor used in the circuit?
shekar said
schematic for 3 ir tx with 1 photodiode reverse gullwing.
Nandan said
Can i use this exact circuit to get 5v i/p to the microcontroller?
Omkar said
No, this will not give 5V output.
Nandan said
I want to design a sensor circuit so that i can get 5v and 0v variations whenever the object passes through it…..
And how can i reduce the error, that the ambient light causes???
Thanks in Advance!!
Tahami said
whats 470E resistor ??? what is its value in ohms ???
Omkar said
470E means 470 Ohms.
sam said
can we use ir led in place of photo transistor l14g3 in recie
ver side
ranjit said
hi,
i have a question .
how can i choose the rating of resistance and capacitor?
please reply me as soon as possible on my email kumarranjit64@gmail.com
arun said
Can I measure the distance between the object and the sensors
ur well wisher said
keep the measurement tape n measure
Thushan said
sir I am new to this project. I am doing a project detecting target by using IR RX TX module. Followings are my requirment sir.
(a) May I have the cct diagram of connecting IR RX-TX and convert the analog out put to digital sig.
(b) How do I work with this dital sig with Micro controller to operate stepper motor.
My Regards!!!!
amad said
hi omkar…
im trying to use this cct as automatic switch to my microcontroller.. but it wont work (i connect vout to pin RBO of pic16f877a)
can u help me?
the cct works fine if not connected to microcontroller..
help pliss
Omkar said
Hi,
Connecting vout directly to microcontroller will not work, as vout is analog voltage. Microcontroller will not be able to distinguish between logic high and logic low levels. You have two options:
1) Use ADC (if available) on microcontroller to convert this voltage in a digital form and use that value. OR
2) Use external OPAMP based (say using LM339) comparator to generate logic signals.
utkarsh said
its nicely explained….
But can i use this sensor to count no. of persons entering a room
Omkar said
Yes, you can count the pulses to counter number of persons. However, mechanism will work only if one person enters the room at a time.
I need help in designing an IR emitter and sensor circuit with ANALOG VOLTAGE OUTPUT said
[...] [...]
jagadish said
when the given circuit is connected i don’t get the enough varation,like when with out giving the preset i am getting a variation from 0 to 0.5.
so i need to get more variation. what should i do..plzz help me in this issue..a quick response is highly appreciated.
ramireddy said
hi jagadish
for this issue you need to use high gain precition amplifier or oerational amplifier to get more variations.
bye.
good night
Omkar said
Hi Jagadish,
You can increase the value of series resistor (with RX) to 100K. More the value, more variation you will get. Don’t make it more than 500K.
Lakshmi chendra ndk said
Sir,
Tutorial is gift for beginrs,but i could not find a circuit. Could u give me IR sensor circuit which suitable for IC motor driver L293D. So that ,motor cannot run if IR is sensed from atleast 5cm distance.
IR transmitter and receiver said
[...] [...]
adam said
Question: that may not belong here I saw a infared duck hunting toy the other day, you point an plastic toy gun with and infared beam and when it hits a flying plastic duck the duck stops flaping its wings and falls, would it be cheaper to buy the toy for $25 or could i build somthing like this for cheaper? would this prodject work? if anyone knows where to point me in the right direction it would be appreciated.
Rajat said
sir
i am making a railway gate control using IR sensor.my question is how and which ADC will i connect to the outputs of IR sensor so that it will give me the digital output so that i can interface it with 89c51 and further with stepper motor…
fazirahazmi said
Anybody hear..i need your help..this is for my project..i don’t know how to build infrared sensor circuit that will use in my project HUMAN TRACKING FAN..can someone here teach me how to create the circuit diagram..??
Venkata Sai Kuthsav Thattai said
To track human presence one should go for Passive Infra Red Sensor (PIR Sensor).
nandini said
hey thanks a ton for this circuit
can you also explain how you designed this circuit? you mentioned ‘empirical’ values for resistances, did you try out
different values and settled on one based on trial and error?
sandeep said
good question i am also thinking it
Srinivasan Ramachandran aka Ashok said
Nice tutorial you have posted here. Gives me a lot of hope from being dead after a long time. Can you tell me if i can yours to measure the intensity of reflection by reading the voltage out? Assume i keep it very near a surface and measure the reflectance. So should i read the voltage from the unit you have shown above to know the reflection intensity?
I mean more reflection = more voltage?
Sorry if my question had been stupid.
Regards,
Ashok Srinivasan.
Omkar said
yes whatever you have said is correct. Output signal of the above circuit is proportional to the amount of light reflected. So you can use it to approximately measure reflectance of the surface by correlating measured values with some reference values.
Srinivasan Ramachandran aka Ashok said
Wow! I owe you something dude. I am really seeing light at the end of the tunnel.
And You mean by correlating measured values with some reference values? Can you please throw some light on it?
Also how can i add a filter to avoid detecting ambient day light? Just wrapping a black chart paper around it will do the job of the filter? Is this problem really applicable to the solution?
Regards,
Ashok Srinivasan.
Srinivasan Ramachandran aka Ashok said
Hello Omkar,
I did the circuit and connected just the circuit to my Arduino board’s GND, 5V (VCC) and the Vout to the Analog PIN 0. When i look at the transmitter with my mobile camera i can see it glow. Since i was not able to secure a 47nF but was able to get 47pF capacitor and used it in your circuit(I am a beginner with electronics and i come from a mechanical background, sorry if this is a huge mistake).
Reading the output from the vout I see it is not showing much variation and fluctuates between 4.98 to 5v i believe. Is there anything i am missing here.
I want to know if the missing piece is due to:
* The 47pF capacitor.
* Or do i need to build the PRESET circuit and then connect it with my Arduino.
* The above points are not the factor, but something else?
PS: Arduino Board uses a ATMEGA328 microcontroller. For more info on Arduino: www dot arduino dot cc.
Can you please tell me the piece i am missing here. Thank you for your patience. It would be really great if you can help me on this.
Regards,
Ashok Srinivasan.
Srinivasan Ramachandran aka Ashok said
Omkar,
Thank you for your circuit. It works like charm i believe. If what i am doing really works out in my result. I owe you something. Atleast a Beer
Regards,
Ashok Srinivasan.
Srinivasan Ramachandran aka Ashok said
Hello,
Can you tell us how to calculate reflection strength in terms of units other than the voltage and relation between it?
Regards,
Ashok Srinivasan.
nasrin sharify said
hi
i need your help please help me if you can
my project is this:send data between 2 atmega microcontroller by infrared.
but i dont know the circuit of reciever and transmitter
please help me i so need your notification
thanks alot
Jeni Verano said
hi, i am jeni,, im an engineering student here in the phils,,, as our project, I was tasked to make an obstacle avoider robot,,, i just wanna ask if how long is the distance before the sensor detects a barrier? i preferably want to have a long range distance for the sensor to detect a barrirer,, can you pls help me with that? thank you
virender said
Dear sir, Can you please let me know how to see long distant [upto 30 meter] objecte using IR Light. And also plz. let me know what type of lens is used to send the IR Light in long distant. Any reply shall be hightly appreciated.
With Regards!
abhay said
hi..i am doing a project on eye tracking using ir leds n ir sensors.
can any 1 tell me how to convert the output of ir sensors into the eye co-ordinates???
i mean the o/p of ir sensors is voltage, how to map it into co-ordinates or in axis??
electronics reviews said
electronics reviews…
How to make simple Infrared Sensor Modules « Electronics – Tuts, tips and much more ……
aditya said
if im to connect an led in the circuit such that it glows after the sensors have sensed movement across how do i do it?
ravi kumar said
first find the output pin of comparator ,and connect a led with a resistor(1kor 10).
then see the output of sensor through led.
PRITESH SRIVASTAVA said
sir i have to make a sensor to detect human entrance through a door………and with the help of which bulb of that room could get ON.
Mark Bradford said
is there any way I can integrate this device and use it with my android powered smart phone as a universal remote? Please email me if there is any possible way to do this: mbfortis@yahoo.com
Thanks!
-Mark Bradford
Benjamin Blumer said
Fantastic!
It was great once I got it working. I also appreciated the comments you posted about the capacitor selection. Might be a nice thing to add to the main post.
Great work! Thanks so much.
Bruno said
It’s amazing, very simple…
Thank you very much!
nikhilss said
thank you very much this circuit really works, i am very happy when i found the result, for doing this sensor i spent lot of time and money but with simple circuit i did this sensor once again thank you very much
Prashant Saraswat said
i am using emitter ehich has 3 legs ie sm0038 tehn what will be its connection with emmiter plse tll me
Aditya said
Thank you buddy. I am new bee to electronics(just got interest on it). I was trying this sensor thing since last 30days(may be I am poor at google too). Now I am successful with this post. Thank you very much.
Omkar said
hey … thank you … it feels really nice to hear that
Amruth said
Hi i would like to activate a LED when the IR detects something, how do i do it should i connect the vout to the -ve of the LED and the +ve of the LED to VCC. Will this work if not plz tell me how to do this abd can u give me the circuit for the 5 IR thing. Thx and eagerly waiting for an answer.
ronak said
i am using 5mm ir couple. Not getting variation. please suggest resistor values.
Omkar said
What resistor value you are using ?
ronak gupta said
330 ohms for transmitor nd 10k for receiver circuits resp
Omkar said
increase 10K to 22K or 47K to get more variation. If you need more detection distance (say 4-8 cm), reduce transmitter resistance to 220 Ohm or 180 Ohm.
Mohd Azam said
hello
I have to measure the distance using this IR sensor module.how can i do it???plz reply…
sreekanth said
hello
can I use this for gigabyte ga6iwfe motherbord IR TX RX header?
if yes how can I use please help
I have four pins on IR header (VCC, IRRX, GND, IRTX)
Omkar said
sorry. no idea.
rajakumar said
i need to find the distance using ir sensor………
can u tel me how can be made possibe using the above circuits……..
anulipt said
rajkumar i have an idea to do this is that you have to use the microcontroller or the microcontroller developing software like arduino if you need more help please mail me anulipt4u@gmail.com
Ahmedo bedo bedo said
Dude, you rock. this is well explained.
i just needed your help in something else. i want to make an ir circuit (or whatever it is called) to send only an sos signal. how do i go about it?
i’m sorry but i have no idea how to make such circuit.
lakshmi said
hey hi….i and my frnd are doing a simple project on elevator….we are using ir beam sensors for detecting the persson entering into the lift…so that wen the beam get abstracted imoles oerson entered the lift…my ques is can i use above mentioned sensor for this task…is it helpful…because i need to connect two sensors…one inside the lift other outside…pls help me asap….
thanks
Rakeshlal said
This sensor will not reflect from a black body when it is brought in front of a black body the reflecting angle reduces and will be impossible for the detector to detect it. Better to go for a Proximity sensor or an inductive infrared sensor.
Gary Pride said
Hi an you tell me what the E behind 470 means Thanks
anulipt said
simply it is resistance only mean ohm
lukman said
i have a heavy equipment,,,but the machine havn’t port for check the rpm engine..as note the engine have speed sensor signal at flywheel housing with 2 pin….i have tool kit tachometer with infraredsignal..how i can modified?????
please your respon to my email.
Thanks alot
Best regards
bijanfazeli said
hi
how can i make distance measuring sensor?what kind of technology is used and which is better?
thanks
bijan
Omkar said
Use GP2D12 sensors
2010 in review « Electronics – Tuts, tips and much more … said
[...] Posts How to make simple Infrared Sensor ModulesAVR : Tutorial 2 : AVR – Input / OutputMake your own, ultra simple, universal AVR programmer !!Anode [...]
alfarisi said
hi..
can u provide me an array of this line sensor?
i need to ask something, is that 50k must have for each array of module?
Omkar said
No, 50K is not must have. You can change it to any suitable value between 10K to 50K. I can provide you as many sensors as you want, then you can mount them in array fashion.
alfarisi said
can u give me the array circuit for this sensor?
alfarisi said
for 5 sensor..
Omkar said
Drop me a mail on the email address mentioned on “Products” page.
Omkar said
What is this ? Don’t spam the blog. You can write you email address while posting the comments and then I can reply directly to your email ID.
Firefox Bookmarks « Rabiul's said
[...] How to make simple Infrared Sensor Modules « Electronics – Tuts, tips and much more … [...]
harry said
i have used these leds with LM 358
in a object detection system
but the range is so less
is there any other way to get increased range with little modifications
of low cost
and low set up coz i need a simple small one like the one u showed above.
pls reply!!!!!!!!!!!!!
Visakh said
Use a TSOP…..u ll get a range of about 5 ft min
philippe florent said
i tested and it gives like 5cm range, not detecting further nor closer
Omkar said
5cm range ? What voltage levels are you getting ?
harry said
hi
dis article is quite explanative
but i have a doubt
what is the detection range of these led’s????
please reply!!!!!!!!!
Omkar said
at the most 7-10cm.
Saqib Khan said
Thanks a lot…explained in a very easy to understand language and with images wherever necessary. Brilliant work.
Priynka said
thanks a lot…..It works..:)
afnan said
great ckt normally such qs are just asked & der are no ans thanks
techno12 said
I am making a gun controller out of joystick for my pc.Can any one
tell me how to use this sensor on it.I will play FPS with it.Can anyone tell me how to use a sensor or webcam to change sides like we do with a mouse
pavan said
I have got RX LED in which its two leads are of equal size and the diode is black colored..Now how to identify the anode and cathode of RX led(Receiver).
Omkar said
Use the diode tester on digital multimeter. Connect it to diode tester in either of the ways. For which ever way it shows some reading, that is the correct configuration. In that case, lead connected to COMMON terminal of multimeter is cathode.
pavan said
thank you sir
Bhupi said
thanks a lot……. was doing failed attempts in making sensor from last two weeks……
now the work has been completed………
Omkar said
nice to hear that … congrats
Tam said
very useful.Thanx
crystal oscillator said
Thanks for your info! It helped me.
roy said
can i know…. what transistor code that math with ZVNL110A? i cannot find this code component in my country…. it doesnt exist… maybe with a same function to work with 4013B IC..
mehak said
Please somebody can suggest me:
I am using reflective sensor and emitter of this connected with 220 ohm resistance and detector (transistor) with 10k resistance but it showing me value 0.9 volt rather than 0 volt when placed near reflective surface.How i can get 0 volt rather than 0.9 volt.
akshay said
hey..one more thing.this may sound silly..
can anybody tell me difference between 470e 1/4 watt and normal 470 ohm ressistor..
please respond asap
thanx in advance
Omkar said
‘normal’ 470Ohm, is itself ’1/4 W’ resistor.
akshay said
hey, hi omkar.we tried ur module.using the led type ir rx,tx..we however reduced the resistance value from 470e to 220e.
now the voltage observed at the receiver is dependant on the surrounding light..and not on the corresponding transmitter.
The voltage obsered at the receiver is in the range of 1 to 0.8 v when tubelight is on
and when off its 0.08 to 0.07
can u explain this.
ok..now we have series of questions
1.ir tx,rx should efficiently detect obstruction(a gud voltage difference)
how do we do that so that a microc ontroller will detect i t??????
2.any other sensor modules to be used ..i have tsop 1738…can we use this for identifying obstruction between tx,rx
awaiting your experience
thanx a lot for ur patience
akshay said
can u please answer the qestions of fowllowing post
hey, hi omkar.we tried ur module.using the led type ir rx,tx..we however reduced the resistance value from 470e to 220e.
now the voltage observed at the receiver is dependant on the surrounding light..and not on the corresponding transmitter.
The voltage obsered at the receiver is in the range of 1 to 0.8 v when tubelight is on
and when off its 0.08 to 0.07
can u explain this.
1.ir tx,rx should efficiently detect obstruction(a gud voltage difference)
how do we do that so that a microc ontroller will detect i t??????
2.any other sensor modules to be used ..i have tsop 1738…can we use this for identifying obstruction between tx,rx
awaiting your experience
thanx a lot for ur patience
Omkar said
reducing the 470E res to 220E resistor will increase forward current of the TX and result in more intense output radiation. Which should help you to get more voltage difference at the RX. Secondly, output of the RX will indeed depend on the ambient lightning and it is unavoidable. If you want to avoid the effect of ambient light, you will have to use TSOP1738 sensor. Circuit shown on this page will not work with TSOP.
akshay said
this is jus amazing..i found many new intresting things…
your blog does much more than my guide
thanx a lot
keep the gud work
akshay said
hey..hi…
i am a beginner..working on a ir tx,rx based mini project…
i have read the posts earlier..
1.how to identify ir tx and ir rx with mobile phone cam??
2.i have with me the led type ir tx and rx…can they be used for detecting an obstacle?
3.If so..what is the maximum allowed distance between the tx and rx
4.I am building jus a prototype model…with toy cars..
akshay said
hey..
With refrence to the post by soma verma..my case is almost the same..i want my ir to notify me when there is a obstacle,
can i use the ir led type for this?
akshay said
ok…i read the posts below..i found the answer to identification of tx-rx
akshay said
there is one more thing that i dint understand about the sensor module..
the receiver and transmitter are kept so close in the picture
http://elecrom.files.wordpress.com/2008/02/ctest-irsen-testsetup.jpg
hw do u use it if the distance is 1o cm apart …i mean for the prototype i am using
I need the info asap..
thanx a lot..
love ur blog
Omkar said
Use the heat-shrinkable tube to wrap TX RX LEDs. If u can’t get it, then simply wrap them with any opaque material.
akshay said
hey..hi..
thanx for your earnest reply.
led type tx,rx for obstruction
is not satisfying.i now plan to use tsop 1738..howevr am not able to get it,i have a tsop 1556 with me..can it be used instead..
i wud be very grateful if you could guide me with its interface with 89c51..
(a web link will be more than enough)
thanx once again
akshay joshi
Omkar said
Refer to TSOP’s datasheet. Various TSOPs differ by their operating frequencies. For example for TSOP1738, you will have to use 38KHz IR signal. Plenty of resources are available on the web showing TSOP-uC interface. Just google it.
akshay said
hi…omkar
I want to know what is meant by burst length and how to realise it practically
2. how do u actual send those burst ?????
\
thanx for u r patience
awaiting your experience
:akshay
akshay said
hey.
omkar..need help for a 56 khz ir tx modulator circuit..
and corresponding receiver circuit
Tavish said
Using a capcitor did not work for me. I made a simple potential divider with the reverse biased rx. I used a 10 pot, but i didnt check the value at which i was using it. And the transmitter in series with 470 ohm resistor. Both provided 5V
poorna prasads said
MY CIRCUIT IS ELECTRONIC WATCH DOG
HERE WE USING TSOP 1738IR SENSOR(RECEIVER) &IR LED THROUGH 555TIMER(38KHZ)
HOW MUCH DISTANCE WE PLACE TXER & REXER
IS TSOP WORKS PROPERLY
poorna prasads said
IS ANY PROBLEM WITH TSOP 1838 IR SENSOR
Kuthsav said
Hi,
Can any one help me with obstacle sensors?????
I need complete circuit schematic. I want to use TSOP. And I dint understand that TSOP gives Digital output. If it is giving either 1 or 0 how can it help in finding small distances???? Is there any circuit to get analog output???? Can we adjust its range.???If yes How????
Thanks
-Kuthsav
Omkar said
You cannot use TSOP for finding the distance. If you want to do so then you will have to use Sharp’s GP2D12 infrared ranging modules.
Kuthsav said
Hi,
Can you give me some circuit diagram of sensor for obstacle avoidance robot that uses TSOP1738.
Thanks
Kuthsav
roshan said
Very helpful! Thanks for the good tips.
yagnesh said
hi,
please tell how can i use this circuit for ,
i live in flat & when my papa’s scooter come i want to acknoledge by the electronic signal in the home,i can arrange receiver led at my gallary which is 5 meter above the gate of enterance,
please help me on this omi….
Soma varma said
Hi!
IF there is any mass/content is in between the ir emiter and ir reciever, it shud not detect each other..If no mass/content it shud detect and notify. and also the distance between the ir tx and ir rx shud be atleast 30cm range in my case.
what IR tx and rx i shud use?
Thanks in advance..
Omkar said
make TSOP1738 based sensor. The kind of sensor presented on this page will not work.
Kuthsav said
I came to this page while I was searching for the same circuit.
Sir I would like to know if the resistor and capacitor changes if we r using TSOP17..????
Thanks
Kuthsav
Omkar said
TSOP’s output is digital and hence no RC ckt is required.
Have a nice time …
– OmkarCK
Kuthsav said
And If I want to use TSOP I should generate 38Khz waveform Right……
Can you give me any link or circuit diagram for the transmitter circuit???
Thanks in advance
-Kuthsav
Kuthsav said
I also have another doubt. Can we use this IR circuits circuit for tracking lines?????
Am a beginner so, also need circuits for line follower, light follower and obstacle avoider.
renegadex said
Hi!
how do i modify your circuitry to be able to do this…
be able to detect if a piece of paper is inbetween the ir emiter and ir reciever. if a piece of paper is in between then an led light turn on and if there is no paper, the led light will turn off.
Writwick said
Hey friends i found a software to identify the resistance using the color bands on the resistor………
To download this,
Simply click on the link:Resistorcolor code
raja said
at what distance the sensors must be placed from the reflecting surface. please tell the maximum and minimum distance between the sensors and the reflecting surface
Omkar said
For the sensors which are described on this page, minimum distance is around 1.5cm and maximum distance is around 4cm. If you want to increase the max distance to 8-10 cm, reduce the value of 470E resistance to 220E.
Jitu said
very simple & easy way to make IR sensor
I have connected 390E instead of 470E & 100K instead of 50k & ignore the capacitor.
it is working good & giving 5v o/p when open ckt but when i give this 5v to 8051 (p89v51rd2, port 1) o/p voltage drop to 0 V.
Do u have any solution?
Omkar said
put the comparator circuit in between before giving to the microcontroller. you can use LM393 for this purpose.
Writwick said
Hi there,
I have some stupid questions to ask!
1. how to identify a 470e resistor?
2. how to identify a IR-TX?
3. how to identify a IR-RX?
4. Can I use a cardboard instead of a blank PCB?
Please answer them as soon as you can>……….
nandini said
1. use a multimeter
2.black is receiver (usually)
3. transparent is transmitter (usually)
4. no you cant
arun said
can I measure the distance between the object and sensor.
Writwick said
Hi there,
I have some stupid questions to ask!
1. how to identify a 470e resistor?
2. how to identify a IR-TX?
3. how to identify a IR-RX?
4. Can I use a cardboard instead of a blank PCB?
Omkar said
1) 470E resistor – use Digital multimeter 2,3) How to identify a IR-TX/RX – Use mobile phone’s camera to see IR radiation 4) Cardboard cannot be used instead of PCB
Manicka Raja PL said
Hi every one…
I was confused by my friend regarding the differences between…..these three
1. IR Rx
2. Photo Diode Rx
3. LDR
Can anyone make me clear? plz…
and one more doubt…
just i need to glow a LED when ever there is a obstacle!
I wanna detect obstacle using 3 or 4 below,
3.IR Tx and Rx
4.IR Tx and Tsop
plz give me some links for the circuit to my questions 3 and 4.
darkenergy said
if we modulate the ir radiation say at 37khz, then how do we design the reception circuitry to get an analog output. TSOP give a digital output…can’t measure distance?
Slaith said
Well, its pretty simple. The TSOP-1738 for example only accepts light modulated at 38 KHz. Beyond that, its just your average photodiode. It gives the intesnsity of light falling on it. To measure distance, you need to fire a single pulse of light, count the number of clock cycles elapsed until it comes back and multiply it by the speed of light to get the distance. Sounds simple doesn’t it?
lolz, it doesn’t work since light travels way way too fast for even a 16Mhz clock. For a distance of 10m, it takes 0.33X10E-7. You need a clock much faster than that. Plus even if you did, the resolution will be so small that you can’t o much. Fine it can measure maybe 10-20m distance, but not a meter or two, do the calc, divide 10 by 3 X 10E8 and 12 by 3 X 10E8. your average 8 bit microcontroller can’t even tell the difference between them. Also remember, that the distances you’ll need will be of centimeter dimensions, not meter. So hell forger about it. If you had to measure KM, you could use this technique, but then ordinary IR doesn’t remain coherent for that long, anyways
So if you must judge distance, you can use an Ultrasonic thing, available over the internet fr a thousand or so bucks. That’s what bats do!
ultimateremedy said
hi
Thanks for contributing well-illustrated page. It really helped me. Keep it up.
gopal said
can we use this circuit to distinguish between glass and plastic surface depending on the reflectance of the surface ??:(
Somesh Mukherjee said
nope its not practical to do that, if both of them are transparent.
Omkar said
yes, thats true.
gopal said
can u suggest a sensor that idetify between glass and plastic accurately
Somesh Mukherjee said
hmmm…on a second thought, glass is opaque to IR, so maybe you could use that property….I am not sure about plastic, you will have to test that out. Again this is all theoretical.
i may be wrong….
Omkar said
General glass is not opaque to IR. Plastic may be opaque, but I am not sure.
VIJAY said
does any company gives you the free samples of high speed IR emitters ?? plz reply …..
vineet said
hi,
i want to prepare the obstacle deteection robot using ir sensors so after preparing the ir sensor module how can i proceed
Mike said
Hello,
Can you talk a bid about extending the range of this sensor? If I want to increase the sensor to a useful range like one used by the auto urine flusher, paper disposal, …, what do I need to do? It’s very hard to find finish module for this purpose so I am thinking about building it. The problem is getting it to sense more than a few mm away. For any practical purpose, you will need about 30-50mm range.
Thanks,
Omi said
For increasing the range you can use narrow beam width LEDs and also you can reduce the value of series resistance used with TX to 100E.
Ameya said
1.For increasing the range you can use narrow beam width LEDs….can u explain how??
2. also you can reduce the value of series resistance used with TX to 100E……By doing this what is the max range that we can obtain??
Omi said
- If you use narrow beam width LEDs, IR radiation will be constrained in small area and hence can provide larger range. See the LED SFH4501. – I cann’t comment on the exact maximum range that you can obtain, it seems you can obtain upto 10-15 cms. You will have to check it manually.
ellyelin said
hi omi,
i need to make a barcode reader(sensor). is it the circuit is still the same? and if it the same, is that anything that i need to add? and how the whole circuit until it connect the MCU?
hope to get the answer ASAP.TQ so much.
ellyelin said
hi omi,
i want to make a barcode reader(sensor). is it the circuit still the same? and how i want to make the connection make it perfect until the circuit connect to the MCU?
hope can get your explaination. TQ.
Omi said
Bar code reader cannot be made from this circuit.
ellyelin said
so,can you show me the sketch of bar code reader circuit..
Henry Best said
I too want a barcode reader but not to read a standard barcode. As I only want to distinguish between <32 different items (5 bits) I plan on printing my own barcodes (black on white) and using 5 IR detectors to detect each bit. The thickness of the barcode lines can be upto 2.5 Cm. Distance between the barcode and the IR detectors will be 1 to 2 Cm. The barcodes will be passing over the detectors quite slowly. My problem is how to tell WHEN to read the detector's output as the barcodes will be stuck on a black or coloured plastic item and also, if I'll need more than one transmitter.
simba said
Hi..can anyone say if IR sensors can be used to measure linear displacements?
jobi said
can your IR circuit can be use for plethysmography?
Omi said
No, it cannot.
sandrar said
Hi! I was surfing and found your blog post… nice! I love your blog.
Cheers! Sandra. R.
jawad said
hello omi
kindly tell me how to write code for ir sensor in C language… i have to work on ir counter sensor using atmega32…. with ir counter sensor i have co count people come inside room and go outside the room.. help me to write code in C language…
Slaith said
I am not much of an expert, but you might want to consider not using an IR sensor, and use a trip detector instead. Basic Principle: One module emits a laser, which falls on another module with photo diode. When he light is cutoff, it flags the entry, there should be two sets of transmitters. If the outside one is triggered first and the inside one later, the person is coming inside. If the inside one is triggered first, he’s going outside. It can actually be made completely without a microprocessor, with counters and some state logic
Omi said
Yes, that’s possible. It might be bit expensive though.
Slaith said
but i think its pretty much the only way. I’ve been thinking bout trying this one as part of energy conservation project. you know when there are zzero people in the room, the lights automatically go off
Omkar said
Ok … are you implementing that project ?
Slaith said
I am thinking of startin with it as soon as these exams of mine are over.
J said
Hi Omi, for the frequency to the ir leds in the transmitter and receiver of the automatic room controller, is it calculated using (f=1/2*pi*r*c), which is roughly equals to 7.2 kHz? Thanks.
Omi said
Sorry, I didn’t get your question.
jawad said
hello omi
kindly tell me how to write code for ir sensor in C language… i have to work on ir counter sensor using atmega32…. with ir counter sensor i have co count people come inside room and go outside the room.. help me to write code in C language…
nitin said
please,tell me how i can increase the intensity of ir sensor about 8cm to 10cm as soon as possible?
J said
I mean how did you get the values for the resistance and capacitors?
is it using the formula f=1/2*pi*r*c?
tengku said
hi,i hv a few simple questions..i hope u can email me the answers
1)what is DDM?
2)what is the 50K preset?its function?
thats all,thanks =)
Omi said
1)It is not DDM. It is DMM (Digital Multimeter)
2)50K preset is used as a voltage divider.
tengku said
again,simple questions to ask you.
1)the 50k preset hv 3 legs,how to determine which leg to connect with gnd,Vout,and the 47n and the 470R?
thats all,thanks again..plese help me,or i’ll gv up..lol
Omi said
- Generally, central leg will be the variable terminal of preset. This is the Vout. – either of the extreme legs can be connected to Gnd and remaining extreme other leg should be connected to junction of IR-RX and 47n cap.
Tengku said
me again,sorry..
ok,then i’ve measured the Vout,only 6.8mV..is it correct or not?what cn i do with 6.8mV? this voltage cant even turn on a LED..or should i email to u my cct connection so u can check?
Atul Undre said
In order to interface this with MCU, MCU must have an ADC! am I right ?
We can add extra OPAMP configured as Schmitt Trigger to it.
Plz provide a tutorial for that too, That will be helpful to robotics geeks…..
….. Keep doing all these good work
….All the best!
Omi said
Yes, you are right. OPAMP can be used in Schmitt trigger configuration. Infact I used to do the same thing initially, but it makes robot’s circuit unnecessarily complex and prone to more assembly errors.
naman said
will only 47n capacitor work or i can use some in range of pf also???
Omi said
47nf to 220nf is recommended. If you set the movable arm of potential divider to the topmost location point and assume resistance of IR receiver to be constant and input impedance of ADC to be infinite, then 47nf and 50K resistor forms LPF with the cut-off frequency of 67Hz (f = 1/(2*pi*R*C)). So that high frequency noise flickers will be eliminated. If you reduce the value cut-off frequency will increase and intern noise will increase. However if you want to capture voltage variations in short time frame (like few microseconds) then reduce the C value to 150pf. With this value cut-off frequency will be 20KHz.
naman said
thanks really helpful……….:)
Keep up the good work !!!!!!!
J said
Hi, I’m working on a project for Automatic room light controller with visitor counter. Can I use this sensor to detect the visitor entering a room? Many thanks.
Omi said
Yes you can use it in your project, as long as project is personal and non-commercial.
akshay said
hi omi,
how to make line tracer with single ir sensor?
akshay n said
thnks
akshay said
excellent work
james said
can any one tell how to make a optical sensor which is capable of measuring various soil properties like conductivity,salinity,pH,moisture content etc…
Neha said
Can any1 please tell me the reason 4 using 470E resistor,47nF capacitor,etc.
i mean can i replace them?
will it work???
Chanchal singh said
you may also go through simplier way i.e using LM358N ic…
it will surely be the easier way to have your own IR sensor
Omi said
Yes, that is also another way. However it makes circuit board unnecessarily complex. Hence generally I prefer to use on chip ADC and some lines of C code, to carry out OPAMP functionality (i.e. Comparator) in software.
Omi said
Reason for using 470E resistor : It is used as current limiter, so that IR LED won’t get blown off. You can reduce the value of this resistor to get more IR radiation and thus longer object detection range and vice versa. If you remove 470E resistor, your IR LED will get burned immediately.
47nF cap : Generally when sensors are mounted on robot, their output doesn’t remain stable. This is due to mechanical vibrations/movements in robots. This give rise to flickery signal which may indicate presence of the silver strip, even though sensor is not on the strip. To smooth out these unwanted flickers (noises) , 47nF capacitor is used.
Neha said
Thanks Omi….
Ajay said
Thanks for the great information. I was searching for this. I am building a micromouse and i am a new to sensors. Can i use these sensors to detect walls for micromouse. I saw many other sensors which use some timing ICs. I am confused whether i can use this sensor for micromouse. I have ADC support in my development board.
Omi said
Yes, you can definitely use these sensors for that purpose. Only thing is you will have to take care about ambient IR radiation by properly enclosing the sensor.
dhaval said
what a top class demostration.
this kind of knowledge of you,make the all problems solved.
hear i have question.
please expain how the IR Rx works and why u connect it in reversed bais?
Omi said
Please read the “Principal” para again.
Have a nice time …
– elecrom
korben said
hi omi
thank for ur sharing.
& i do construc the circuit which show in the wedpage.
just that when i connect the led to V out the led is on but it is dim condition.
2. can i know how to meansure the distance for the ir sensor can feedback.coz my didnt got any feedback but if i point the Tx to Rx it work well.
i use the 5mm ir.
pls give me some comment.
thank!
Omi said
Can you explain once again properly. I didn’t get what you want to do. By the way, these type of sensors cannot be used to measure a distance. They can detect only whether object is present or not or … amount of incident IR radiation, which can be used to infer the presence of an object.
korben said
thank for ur infomation.
Priynka said
Is there any way to find the distance using ir sensor or any other cheap alternative
Omkar said
nope … you will have to use SHARP’s GP2D12 or similar sensors.
Mohit Luthra said
Hey thanku for these wonderful demos and if anybody has any new ideas of project then he can contect me at my e-mail id….
adam said
how can you make car reverse parking sensor thanks
Omi said
Hi,
Can you please elaborate on that … what exactly you want to make ?
Regards,
- elecrOm
isuru said
it’s very use full.thanks
nitish said
Thanx, that was very nice….
Sumit said
Hi Omi,
Great work and demonstration. I found what I was looking for.
Omi said
>>Tejaswi
You cannot control DC motor directly using this circuit. You have to connect comparator and motor driver for that.
tejaswi said
if u have got images related to the topic u can mail me at tejaswi91@yahoo.com
Tell me also to controll this circuit using parallel port.
Any websites plz recomend
tejaswi said
can any one tell me the way to connect the above circuit with a 12V DC geared motor I tried it but it doesnt work.I am trying to use the sensor to detect the object and stopp the motors corespondigly?
Venugopal said
Will give product numbers/details for IR transmitter receiver module(non modulated)for data reading at a close proximity (Bar code reader type)?
rajeev said
good circuit idea.I am looking for a detector circut which can detect moving as well as stationary objects. view angle 120 and distance for detection is 2-3 mtrs.
GOURI said
hi omi,
i am making a autonomous robot.. which requires Ultrasonic sensors..
but its too costly,so its not fitting my budget… so my next option is IR sensors..
But in my project sensors are directly connected to uc ATmega 32…
so can i use this??..
Omi said
>>GOURI
Generally ultrasonic sensors are used for ranging and obstacle detection. If that is the case, then these sensors are not suitable for that. These sensors are used for detecting surface with contrasting colors, like black and white.
madhav mahuli said
hi Omi,
i am doing a project on automatic control of lights and AC of a room.i am using an IR sensor to detect whether the user car is passed the parking gate. if the user car has passed through the IR sensor then it should send interrupt to the micro-controller and respective control should be turned on.if possible pls can you help me in the designing the circuit diagram of the project
thanks
Madhav
novrian said
To repaired one part of sensor
Can infra red lamp be remove with other type of sensor use ?
Vincent said
Thank You! This is a very helpful guide, with lots of detail!
Came to this page via google, leaving this page with your blog bookmarked!
sonu said
wat is da difference between 5mm and 3mm led.
wer did i hav to use 5mm instead of 3mm or vice-versa.
Omi said
>>Sonu
15mm/10mm/5mm/3mm is the measurement of outer diameter of the LED. It indicates the size of the LED. Larger LED gives more light output. You should use the LED according to the application. For robotics, 3mm is better as it gives more accuracy than 5mm.
Madhur said
Hey there ! … Great work! … Found exactly what i was searching for !!!
Thank You
Omi said
>>Prachee
It is not possible with the type of IR sensors shown on this page. You will have to use thermopiles. I don’t have idea where you can get thermopiles.
prachee said
hi omi
can u plz tell me how can i built an ir sensor which can sence temperature difference???
Omi said
>>Bhanu
use TSOP1738 and modulated IR transmitter to transmit 38K wave.
Omi said
>>K
Yes its possible, please describe it in detail and I will be able to tell you how to do it. Light bulbs can be controlled using TRIACs
bhanu said
hi omi
i want to make a circuit of obstruction detection using ir(tx & rx), that a ir light goes and after reflection it is recieved by the rx, and give the o/p to uc for proper sound of buzzer………..
k said
Hi Omi,
Basically I would like to have lights turn on as the viewer walks through a hallway. The placement of the lights would correspond to the position of the viewer. I thought an IR sensor would be the easiest way to achieve this, but I need a brighter light than is emitted by one led. Is there an inexpensive way to connect a IR sensor to a regular light bulb?
k
Omi said
>>K
temporary art installation ? What exactly you want to do ?
k said
Hi Omi,
Thanks for the tutorial! I was wondering if you could give me some advice? I’m working on a temporary art installation & I want to use IR to turn on more than one led simultaneously. What would be the easiest way to do this? ((Also I was hoping to keep it relatively inexpensive)) Any thoughts?
k
Omi said
There are some sensors which can measure this type of distance with accuracy of 1mm. See this for more information :
http://www.sharpsma.com/Page.aspx/americas/en/b25198ae-eeda-458b-a14f-92e2bd34f1c7/Distance_Measuring/
Shridhar said
my requirement is i want to measure the hight of rount pipe pipe dia 3mm and max hight i want to measure 30mm and i want accureacy 1mm can i used this IR ? I need this sensore size very small is it posible ? 1mm or 2mm is it posible ?
yashu said
hi om…
i am still having problems…cud u help me in building a 38 khz IR transmitter and a corresponding reciever that latches properly…i am having a tough time
pl. help me out
thanks
Amit Dixit said
hi
it is very good
yashu said
hey om,
i thought we were suppose to tune it as u told 5ms burst with 10ms interval…also thats how the design is given in EFY…giving the output directly would it b feasible?? again we wud hav to tune it rite?
thanks
Omi said
>>Mattioats
Yes it will work. What matters is the intensity of IR incident on the receiving sensor. If your receiving sensor is close enough it will work without any problem otherwise you will have to increase transmitter’s current so that it can emit more infra-red light. However watch out for maximum limit of the transmitter. Generally its from 50mA to 100mA for continuous current and 1A for very short pulses. For example, refer datasheet of SFH4501.
mattioats said
Hi,
If one were to separate the Tx and Rx LEDs (I plan to have the Tx on a glove) would the results be the same (voltage change as proximity changes)?
Would anything else need to be considered in this case?
Many thanks.
Omi said
>>Yashu,
Why r u giving output of TSOP to IC74121 ? You can directly connect TSOP o/p to uC. There is the flaw in your code and thats why stepper is jerking. For smooth operation, keep stepper motor handling code in timer interrupt and configure the timer to run the stepper at desired speed. Keep TSOP pulse TX and RX code in main(). This code in main() can set/reset some global flag, say motStart. This flag you can use in your timer ISR to start and stop the motor. Psuedo code will be something like this …
timer ISR()
{
if(motStart==1)
{
//Advance stepper by one step
}
}
main()
{
//AVR init
while(1)
{
//transmit IR pulse and check the TSOP output
if(Object is detected)
motStart=1;
else
motStart=0;
};
}
Omi said
>>Yashu
1)How to check if IR led is TX or RX … as explained above … simply forward bias the LED with series resistance of 470Ohm. Use any digital camera and look at the LED on cam’s display. Camera’s can “See” infrared light. If it is really an LED, you will see it glowing through the cam. See photographs above.
2)TSOP1738 needs modulated IR radiation. You need to transmit short time bursts(<50ms) of 38KHz signal through IR LED. Then only TSOP1738 output will go LOW(output is active LOW) after detection of 38KHz pulses.
yashu said
hi,
i am using a transparent casing IR led and detecting its output with a tsop1738. i am confused whether led is TX or RX…also the output of tsop is fluctuating which is connected to a stepper motor. thus, it doesn’t give constant DC to Stepper motor, and motor runs with jerking motion…pls. help
>>yashu
Omi said
>>Shiv
Give 38KHz signal to IR LED and use TSOP1738 to receive it. TSOP1738 has internal filter which can detect only 38KHz signal. Ambient light + 38KHz IR signal becomes DC offset + 38KHz wave for TSOP sensor. Due to internal filter this DC(or any other frequencies which are not equal to 38K) gets filtered out and o/p of TSOP goes low(because it is active LOW) on detection of 38K signal. See datasheet of TSOP1738.
Omi said
>>David
To send digital data you must modulate some carrier with your data and then demodulate it on receiving end. Simple way to do this is using TSOP1738. It is 38KHz receiver. You have to give 38KHz signal to IR LED (i.e.Tx). When TSOP1738 receives this signal its o/p goes low.
You have to transmit digital data in the form of 38KHz pulses. For example, drive IR LED with 38KHz for representing 1 and do not drive it for representing 0 (similar to RS232 protocol). You can have some start bit kindda stuff which can be used to synchronize the receiver.
shiv chandra kumar said
its such anice for the beginer like me.
but i havite one querry.you have not mentioned about the effect of ambient light.
please discuss the ways of modulation and fiteration in this sensor with required circuit diagram
thank you
David said
Hi,
great presentation , but i have a few quistions that i will be glade if u can help me with:
1. Can this sensor be used for sending digital data (stream of bits)?
2. How can i enlarge the sending/receiving distance of the sensor ?(i saw the circuit with the
4 leds) i want to know if there is another solution like using stronger components ?
3. does the transmitting led interrupt the receiving led (the one on the same circuit) from
getting the light from the distance sensor?(does the light that emits from the transmitting
led is detected on the receiving led on the same circuit)?
thanks
Omi said
>>Mohamad,
There is definite difference between IR TX and IR RX diodes. IR RX diode generates much more photoelectric current after being irradiated by IR light than IR LED. Current generated by IR LED is so small that you need separate OPAMP circuit to detect it properly, which unnecessarily complicates the things.
mohamad said
good work but i think there is no different between ir leds Tx and RX they may be the same type and it will work
nick said
Excellent presentation, contents and pictures and clear.
Thanks.
jack said
Very helpful! Thanks for the good tips.
saeed said
how tv remote controls work? i know that most of them works with infrared but why those have a long range?
and another quesrion: how we can send information or signals with this sensors? can you explain me this modulation? or give me a link on internet. thanks…
ajay8706 said
my email id is ajay8706@yahoo.com
ajay8706 said
pls mail me ,its necessary for me…………..
ajay8706 said
how a sensor emits ir rays ,pls explain
Omi said
TO# Lee
yes it might work. check input voltage requirements of that module. you can give a try.
Lee said
I have a new product that requires an IR object detector that will turn on a motor when object is detected at 12 inches away and stay on until object is removed. Will this sensor work for this application?
darkenergy said
the reverse biasing of ir rx,never knew! thanx.was using photodiodes
elecrom said
@Fox
What type of sensors ? What is the purpose and which assembler ? Please be specific.
Fox said
i need help with my asignment. about sensors in a alarm system in combination with assembler. were given four sensors. two reicivers and two transivers. please help me with the schematic on how to put what were in the circuit. and it also work via printer port!!!
elecrom said
@Riya
You can increase the range by increasing number of IR tx, see one pic above which shows the module having 4 IR txs and 1 Rx.
Also, range depends upon your threshold setting for comparator/ADC.
riya said
first of all, thanx for such a helpful tutorial. but i get response only upto the distance of 5 cm…how can i increase the range of IR TX-RX?
elecrom said
@MenTaL
1)No, color of IR LED doesn’t matter.
2)Values used are empirical. No specific formula as such. Say for example for IR tx LED to emit sufficient IR radiation, at least 5-6mA current should pass through it. 470E is sufficient for this purpose. If you want more IR, reduce this value to 220E.
To generate sufficient voltage, a higher value is selected for IR Rx. Out of the experience I found that 47k pot works well.
MenTaL said
Really very helpful for beginners like me. Thanx a lot.
I’ve got a few doubts though:
1) Does it matter if u choose a red/green/blue IR LED?
2) How do u calculate the values of the resistors used?
Blogs and RSS » How to make simple Infrared Sensor Modules Blog of illumination…!! said
[...] Dig deeper into the topic here [...]
Tachometer using AVR Atmega16 « Ashish’s Weblog said
[...] Most important part of this Tachometer is sensors. It uses low cost infrared sensors for sensing propellers. IR LED will transmit IR rays and on reflection from propeller receiver [...]