+ Post New Thread
Results 1 to 9 of 9
  1. #1
    Junior Member level 3
    Points: 656, Level: 5

    Join Date
    Feb 2011
    Location
    CHANDIGARH
    Posts
    29
    Helped
    1 / 1
    Points
    656
    Level
    5

    how to connect p89v51rd2(8051) having ir receiver at input and uln2803 at output

    hi all,
    how can i connect the output of IR Receiver to input of p89v51rd2 microcontroller and output of microcontroller to drive a uln2803.if i connect output of ir receiver(4.94v)directly to my microcontroller pin,will my microcontroller work?
    and one more thing,can i connect microcontroller output directly to uln2803
    @- NAVNEET

    •   Alt6th November 2011, 18:57

      advertising

        
       

  2. #2
    Junior Member level 3
    Points: 656, Level: 5

    Join Date
    Feb 2011
    Location
    CHANDIGARH
    Posts
    29
    Helped
    1 / 1
    Points
    656
    Level
    5

    Re: how to connect p89v51rd2(8051) having ir receiver at input and uln2803 at output

    please,anyone help me in this issue..
    @- NAVNEET



  3. #3
    Member level 1
    Points: 413, Level: 4

    Join Date
    Nov 2011
    Posts
    34
    Helped
    3 / 3
    Points
    413
    Level
    4

    Re: how to connect p89v51rd2(8051) having ir receiver at input and uln2803 at output

    You may check if they have the same speed (bit rate) and same logic level voltage. I am not familiar with IR transceivers, refer to its datasheet.



  4. #4
    Advanced Member level 3
    Points: 5,456, Level: 17

    Join Date
    Jun 2009
    Location
    India
    Posts
    759
    Helped
    144 / 144
    Points
    5,456
    Level
    17

    Re: how to connect p89v51rd2(8051) having ir receiver at input and uln2803 at output

    if i connect output of ir receiver(4.94v)directly to my microcontroller pin,will my microcontroller work?
    The microcontroller you are using works at 5V so you can use the 4.94V input to the microcontroller directly.
    You wish to read this, therefore the pin on which you connect this input has to be configured as input pin by writing a HIGH (or 1) to that port pin. By the way what port you are using !! and what pin !!
    can i connect microcontroller output directly to uln2803
    Yes you can connect the microcontroller output directly to ULN 2803. The port pin you are using for this purpose is to be configured as an output by writing a LOW (or 0) to this pin.



    •   Alt7th November 2011, 12:47

      advertising

        
       

  5. #5
    Junior Member level 3
    Points: 656, Level: 5

    Join Date
    Feb 2011
    Location
    CHANDIGARH
    Posts
    29
    Helped
    1 / 1
    Points
    656
    Level
    5

    Re: how to connect p89v51rd2(8051) having ir receiver at input and uln2803 at output

    i am connecting my ir receiver output at P3^0 and output from P2^0 to uln 2803...so whenever my ir receiver will detect some thing,,it will give output as 1 to microcontroller
    and microcontroller will give output as 1 to drive uln2803
    can u give some idea how to write c program for this
    @- NAVNEET



  6. #6
    Advanced Member level 3
    Points: 5,456, Level: 17

    Join Date
    Jun 2009
    Location
    India
    Posts
    759
    Helped
    144 / 144
    Points
    5,456
    Level
    17

    Re: how to connect p89v51rd2(8051) having ir receiver at input and uln2803 at output

    I can provide you logic and if needed, parts of program in Assembly.



  7. #7
    Junior Member level 3
    Points: 656, Level: 5

    Join Date
    Feb 2011
    Location
    CHANDIGARH
    Posts
    29
    Helped
    1 / 1
    Points
    656
    Level
    5

    Re: how to connect p89v51rd2(8051) having ir receiver at input and uln2803 at output

    that will be very nice of you....i will write c program from assembly
    @- NAVNEET



  8. #8
    Advanced Member level 3
    Points: 5,456, Level: 17

    Join Date
    Jun 2009
    Location
    India
    Posts
    759
    Helped
    144 / 144
    Points
    5,456
    Level
    17

    Re: how to connect p89v51rd2(8051) having ir receiver at input and uln2803 at output

    Here is short piece of code doing what is under discussion.
    You can use the logic and modify the code to serve your purpose.



    ORG 00
    AGAIN: SETB P3.0
    CLR P2.0
    CHECK: JNB P3.0 CHECK ; KEEP POLLING P3.0
    SETB P2.0 ; ACTIVATE OUTPUT
    CALL DELAY ; WAIT TILL YOU NEED
    ; THE ALARM OR WHATEVER
    SJMP AGAIN

    DELAY: ;DELAY SUBROUTINE HERE
    ;
    ;
    ;
    RET



  9. #9
    Member level 2
    Points: 431, Level: 4

    Join Date
    Aug 2011
    Location
    Mumbai
    Posts
    46
    Helped
    6 / 6
    Points
    431
    Level
    4

    Re: how to connect p89v51rd2(8051) having ir receiver at input and uln2803 at output

    Quote Originally Posted by navneet sngh View Post
    i am connecting my ir receiver output at P3^0 and output from P2^0 to uln 2803...so whenever my ir receiver will detect some thing,,it will give output as 1 to microcontroller
    and microcontroller will give output as 1 to drive uln2803
    can u give some idea how to write c program for this
    Your application seems to be very simple.I can send u the complete C code..just upload your circuit diagram and give in your exact requirements



+ Post New Thread
Please login