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 9 years, 2 months ago by sathish.
Viewing 15 posts - 16 through 30 (of 35 total)
← 1 2 3 →
  • Author
    Posts
  • February 26, 2012 at 7:48 pm #7199
    kuldeep
    Participant

    hiiii

     

    how to measure a speed using IR sensor and interface ir sensor with controller 89c51…

     

    April 8, 2012 at 9:28 am #7398
    Amit kumar meena
    Participant

    could you please post  the ir sensor with 8051 microcontroller interfacing code.and which software should use. please give a little description. actualluy i have to send signal of ir sensor in laptop and for this i have 8051 , ir sensor and usb to serial converter rs232 .could u plz guide how i work ? actuallly i am trying to work on keil software ..is this a right option ?  plz guide ……..

    April 9, 2012 at 1:29 pm #7404
    D.V.G. Krishna
    Participant

    follow the link

     

    use the  LM358 comparator circuit

    shown in the link

     

    http://homemaderobo.blogspot.in/2012/03/simple-line-follower.html

     

     

    April 11, 2012 at 8:14 pm #7416
    BILAL sadiq
    Participant

    hi every one  i have question

     

    i am using IR led As transmitter and photo transistor as reciever

     whein IR is falling on phototransistor nothing is happen (which i actually want)

     

    but when some one passes (break the LED light from IR on to Phototransistor)

     

     

    i have 

     

    IR —> phototransistor—-> 2n2222 —-> an indicatng LED at its collector —-> which is then send to LM339 -ve (inverting) terminal—-> then +ve terminal of :LM339 is then fed (with pull up) to P1^0;

     

    but problem comes over here…

     

    initially the LM 339 output is generating 0V (but with my DMM it is actually showing 1.76V)

    then when some one passes LM339 generates 5V (buti with my DMM it is 5.56V)

     

    problem is controller starts incrementing automatically

    where i want is that when some pass then controller increment by one

    and so on till 99

     

    PLEASE HELP TO PUT DATA FROM LM339 OUTPUT TO P1^0 TO PERFOM FUNCTION

     

     NEED URGENT HELP 

    REGARDS

    April 12, 2012 at 10:26 am #7422
    Olufemi
    Participant

    i happen to be working on an automatic vehicle counter as a project in my school using an infrared sensor……i donot know which particular sensor to use, which should detect the vehicle up to a distance of 10m…please help

    April 13, 2012 at 9:17 am #7431
    D.V.G. Krishna
    Participant

    hi dude

     

    i already uploaded a link that discribes the working of IR sensor

     

    if you are using 8051 micro controller

    to diclare the pin as input tha last thing written to the port must be “1”

    if you want to make all pins of port1 as in put you need to write P1=0xff;

     

    the sensor you showed in the link may not work properly.use the comparator circuit as shown in the following link which i already posted in previous post

     

    the logic will be as follows

     

        #include<reg51.h>

     void main()

    {

      P1=0xff ;   // all pins of port1 are diclared as in put

     //asume that the sensor is connected to pin P0.0

    // assume sensor gives high on detecting an object

       while(1)

    {

        if((P1 & 0x01)==0x01) // bit masking to check for only P0.0

         P2=0xff; // switches on the LED connected to port2 if the sensor dectects  an object

        else

        P2=0x00;//  LED off

    }

    }

     

    April 13, 2012 at 9:19 am #7432
    D.V.G. Krishna
    Participant

    if you need a sensor that cam detect up to 10m

     

    you need a ultrasonic sensor

     

    that will be very………………………….. costly

    April 16, 2012 at 4:42 pm #7465
    shoaib ajmal
    Participant

    hey kunal . have you completed your project ? i have the same problem. i am making this automatic door controller using 89C51 and infrared. i want to make one pin on 8051 high and low whenever a person comes and IR is interupted .
    need help guys .
    i am new to this MCU thing . i keep on searching things about interfacing IR sensor with 8051 but didnt get any positive result.

    April 17, 2012 at 1:17 pm #7471
    D.V.G. Krishna
    Participant

    follow the link

     

    http://homemaderobo.blogspot.in/2012/03/simple-line-follower.html

     

    donot use LDR(light dependent resistor)

    it is very slow

     

    connect the out put pin of the IR sensor shown in the link to the MCU input

     

    by varing the variable resistor you can alter the range of sensor

     

     

    January 17, 2013 at 3:11 am #8968
    Sigit
    Participant

    Hi

     

    I have problem with my sensor interfacing, my sensor is PIR and I use AT89S52. when I initialize the sensor pin input with high condition for being an input pin, the sensor always detect motion even there is no any acivity in front of every three second. I already used pull up resistor.

     

    thank you,

    July 3, 2013 at 9:31 am #10088
    WhateverIO
    Participant
     
    Hey gus, 
     
    this’s  Your new friend from Morocco, latly I come acrosss very intersting project ( for me) which concern monitering number of people inside a particular room and turning the light off automaticly when the number of these peole become equal 0.
    I did find the circuit on the net without wiring since it cost money to have it, so I am here hoping that you guys help me, 
    this mini electronic project very important to me I need to built in the very short time,
    please if You find anything to this Adress :
     
    [email protected]
     
     
    Thank You so much 

    wysiwyg_imageupload:9269:

    f
     
    August 5, 2013 at 1:22 pm #10275
    A.Rahul
    Participant

    hi guys, this is Rahul

    very interesting comments from all of you.

    I have been working on a similar type of project

    and I have stuck at one point.

    actually my project is, whenever a car comes between the IR sensor and photo transistor, a message should be sent from the transmitter (which is interfaced with the controller 8051) to the receiver inside the car which has intersected the IR beam,

    so to do this ,firstly I need to interface ir sensor with the ADC and then to 8051

    so can any one please help me in the circuitry of this interfacing part please??

    thank you,

    A.Rahul

    October 21, 2013 at 6:42 pm #10544
    aman
    Participant

    i need  a c  code of multi level automatic car parking !! plzzz

    December 25, 2013 at 2:04 pm #10758
    darshil
    Participant

    hi guyzz 

     

    i hv doubt

     

    actly m gng to make railway gate control system 

    so i dnt no which stepper motor is perfect for my circuit

    and which stepper motor cn b connected wid motor driver ic lm293d n my gate wud b of plastic soo which stepper motor cn easily lift it up

     

    and how can i connect my microcontoller’s o/p to stepper motor 

     

    plz plz plz rly asap plz

    July 20, 2014 at 6:01 am #11916
    sandesh giri
    Participant

    hy i am doing project on ” An Automatic Queue Management System “. I am using ir transmitter and receiver for automatic counting purpose. 38 khz generating tshop is used. i have problem in coding that using comparater( atmega16 microcontroller)output how to increase count of 7 segment display, when to stop and when to use buzzer. Please any onw help me plzzzz. I will be very mch thankful to u.

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

RSS Recent Posts

  • Some opamp advice please April 12, 2026
  • isolating S-params in of PCB board without connectors April 11, 2026
  • want help with microprocessor April 11, 2026
  • Voltage comparator circuit verification April 11, 2026
  • Integrating 0–5V ECU Signals into a Double-DIN Setup – Module vs Custom Head Unit? April 11, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 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