EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / interfacing ir sensor with 8051

interfacing ir sensor with 8051

|

Microcontroller › 8051 › interfacing ir sensor with 8051

  • This topic has 34 replies, 24 voices, and was last updated 8 years, 9 months ago by sathish.
Viewing 15 posts - 1 through 15 (of 35 total)
1 2 3 →
  • Author
    Posts
  • December 4, 2010 at 9:04 am #487
    kunal kalra
    Participant

     

    hi

     

    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 #5186
    dagakshay
    Participant

    the IR interfacing shown below gives the analog o/p and so for that there can be two ways to IR sensor with interface 8051

     

     

    wysiwyg_imageupload:258:

     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

    …………………………..

    wysiwyg_imageupload:259:

    December 5, 2010 at 8:44 am #5189
    kunal kalra
    Participant

     thnx for this much information……

     

    can u tell me any ir sensor which gives digital output

    December 7, 2010 at 6:35 am #5192
    dagakshay
    Participant

    a 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.  

    wysiwyg_imageupload:260:

    December 8, 2010 at 7:28 am #5196
    kunal kalra
    Participant

     hello 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 #5198
    dagakshay
    Participant

    i 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 #5199
    kunal kalra
    Participant

    let 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 #5202
    dagakshay
    Participant

    My dear kunal kalra………

    the TTL o/p itself is a digital o/p you can feed it directly to controller

     

    now practically implement it

     

    wysiwyg_imageupload:295:

    December 9, 2010 at 7:12 am #5203
    sunny
    Participant

     go 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 #5241
    kunal kalra
    Participant

    hey 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 #5302
    dagakshay
    Participant

    wysiwyg_imageupload:498:IR rx part (photo diode) is always connected in reverse bias

    February 14, 2011 at 4:14 pm #5530
    Sitank Bhatia
    Participant

    Hey 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 #6833
    puneet jain
    Participant

    help!!!

     

    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 #6890
    srinu
    Participant

    hi

    may b it helpful for u……………….

     

    ir DIGITAL OUTPUT CKT…..

     

    njoy ur circuit….

    wysiwyg_imageupload:3277:

    November 30, 2011 at 7:32 pm #6891
    Dexter
    Participant

    this circuit may help u  peoplewysiwyg_imageupload:3285:

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 35 total)
1 2 3 →
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • WTB: "The Theory Of Servicing AM, FM, And FM Receivers" by Clarence R. Green and Robert M. Bourque November 10, 2025
  • Anyone In The US Ordered From AliExpress Recently? November 10, 2025
  • Calculation of A Class amplifier November 10, 2025
  • strange laptop problem November 10, 2025
  • restarting this Christmas project November 10, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise