Microcontroller › 8051 › interfacing ir sensor with 8051
- This topic has 34 replies, 24 voices, and was last updated 8 years ago by
sathish.
-
AuthorPosts
-
December 4, 2010 at 9:04 am #487
kunal kalra
Participanthi
can anyone please help in interfacing IR sensor with 8051. the ir sensor i want to use is in this link http://www.pages.drexel.edu/~pyc23/ir_sensor.html
i want to make one pin of 8051 high or low if any object comes between IR TX. and IR RX.
please help me out with this
December 4, 2010 at 3:39 pm #5186dagakshay
Participantthe IR interfacing shown below gives the analog o/p and so for that there can be two ways to IR sensor with interface 8051
either this analog o/p can be given to ADC and then it is interfaced with 8051. this par is expalined on site. go for the link
http://www.engineersgarage.com/microcontroller/8051projects/distance-measure-IR-ADC0804-AT89C51
or to convert its analog o/p to ttl logic use opamp ion compartor mode….
see the comparator ckt below… and for your application it will be more easier, less complex and cost effictive
…………………………..
December 5, 2010 at 8:44 am #5189kunal kalra
Participantthnx for this much information……
can u tell me any ir sensor which gives digital output
December 7, 2010 at 6:35 am #5192dagakshay
Participanta good quatily of IR can give TTL o/p but again at the end the o/p is feed to buffer(say uln2003) to sharp your o/p.. let me expalin this
when ir falls on Rx its conductivity changes, which in turn changes the resistance and we measure the change in voltage. the change in resistance depends on two thing first the amount of IR and second the quality of Rx.
it you have a good quality of IR pair its Tx and Rx efficiency will be higher so it will be able to give TTL o/p but at the end we can be reliable on it. reliable i mean to say it might change voltage from 0-2.5V but micro controller can’t understand 2.5V so we use a buffer at the end.
see the CKT below:-
i tested it and it works, but again you must have a very good quality of IR pair.
the o/p quality also depends on surrounding environment.
December 8, 2010 at 7:28 am #5196kunal kalra
Participanthello dear….
i have to interface total 6 ir tx and rx pairs with 8051(port 3) can u help me with circuit how can i interface it with 8051. all my circuit is complete expect sensor card. i want to make the bit high or low when smone comes betweenw the ir tx and rx.
please help me…looking for positive response
and the ir tx and rx pair i am using is on this link microcontrollerkits.com/
December 8, 2010 at 8:22 am #5198dagakshay
Participanti din’t get you want circuit for interfacing of sensor pair with microcontroller or circuit of IR sensor to to get TTL o/p….
for ir sensor i had given you above.. i had shown it for one ir pair…..
and for microcontroller interfacing… connect the TTL o/p to one the port(in your case port3)…
reffer to this link
http://www.engineersgarage.com/electronic-circuit/infrared-ir-sensor
December 8, 2010 at 9:36 am #5199kunal kalra
Participantlet me give u one example if someone comes between the ir tx and rx then the output of sensor must make the one pin of 8051 high. help me and tell me how i can connect the complete circuit with 8051 and sensor.
as ir sensor gives analog output how can i convert that to digital so that i cane make the one pin of 8051 high.
December 9, 2010 at 6:58 am #5202dagakshay
ParticipantMy dear kunal kalra………
the TTL o/p itself is a digital o/p you can feed it directly to controller
now practically implement it
December 9, 2010 at 7:12 am #5203sunny
Participantgo to the link http://www.lirc.org/receivers.html and also
http://www.google.co.in/imgres?imgurl=https://engineering.purdue.edu/ece477/Webs/F09-Grp07/nb/Shaun/IR%2520Sensor.jpg&imgrefurl=https://engineering.purdue.edu/ece477/Webs/F09-Grp07/nb/spgreene.html&usg=__MGAMCgkXlxFV6O73ub9Zl5iV2zM=&h=1607&w=2164&sz=128&hl=en&start=20&sig2=_8CKy7t4UHKkQZeW4tYRdQ&zoom=1&tbnid=_yvSTnprxwCRDM:&tbnh=167&tbnw=223&ei=WH8ATeHxFobwvwPL5Z3OBg&prev=/images%3Fq%3Dpulsed%2Bir%2Bsensor%26um%3D1%26hl%3Den%26safe%3Doff%26sa%3DX%26gbv%3D2%26biw%3D1024%26bih%3D677%26tbs%3Disch:1&um=1&itbs=1&iact=hc&vpx=551&vpy=261&dur=2786&hovh=193&hovw=261&tx=133&ty=61&oei=Fn8ATb_PMoXzrQeUqaiTDw&esq=2&page=2&ndsp=12&ved=1t:429,r:6,s:20
December 20, 2010 at 8:20 am #5241kunal kalra
Participanthey can u tell me in IR RX part out of anode or cathode which is connected to +5 volt….as in image u use the mirror image so its not clear to me
January 5, 2011 at 5:43 am #5302dagakshay
Participantwysiwyg_imageupload:498:IR rx part (photo diode) is always connected in reverse bias
February 14, 2011 at 4:14 pm #5530Sitank Bhatia
ParticipantHey Kunal hi Sitank this side…Well mate need some help from you…was searching for my project and came across this forum…you’ve had some discussion over here…am also working on a similar project so could you please let me know your circuit please…
Thanks for your time…
November 12, 2011 at 7:05 am #6833puneet jain
Participanthelp!!!
i want to make a anticollision prototype for a car….i want to add ir sensor so that. car stop when ever a obstacle comes in between ir tx and rx….plz help me..i have to use 8051 microcontroller for this
1. i have assembled dc motor’s but how to assemble ir reciever and its code i have to idea please help me in this regard…
i want to mount ir on car front and as soon as it tracks any obstacle between them..it stop…
November 30, 2011 at 12:57 pm #6890srinu
Participanthi
may b it helpful for u……………….
ir DIGITAL OUTPUT CKT…..
njoy ur circuit….
November 30, 2011 at 7:32 pm #6891Dexter
Participantthis circuit may help u peoplewysiwyg_imageupload:3285:
-
AuthorPosts
- You must be logged in to reply to this topic.