+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Junior Member level 3
    Points: 1,488, Level: 8

    Join Date
    Sep 2005
    Posts
    30
    Helped
    0 / 0
    Points
    1,488
    Level
    8

    ir receiver 8051

    hi

    i am doing a project which includes ,IR LED and IR receiver(TSOP 1738)I have to get the receiver output and that output is going to control the stepper motor thro 8051.
    I dont know how to write program for receiving the signals from the IR receiver.
    can anyone help???

    Regards,
    dhans.

    •   Alt1st December 2006, 07:36

      advertising

        
       

  2. #2
    Advanced Member level 3
    Points: 10,724, Level: 24
    budhy's Avatar
    Join Date
    Oct 2006
    Location
    Indonesia
    Posts
    830
    Helped
    219 / 219
    Points
    10,724
    Level
    24

    infrared 8051

    TSOP1738 receive IR signal and remove modulated portion, output pure digital level signal to your processor.
    Next step you have to measure the on/off periode of that signal to determine what code is transmitted.

    The are many coding scheme of IR signal, please take a look at :
    http://www.epanorama.net/links/irremote.html



    •   Alt1st December 2006, 09:09

      advertising

        
       

  3. #3
    Advanced Member level 3
    Points: 9,752, Level: 23

    Join Date
    Nov 2006
    Posts
    982
    Helped
    67 / 67
    Points
    9,752
    Level
    23

    ir 8051

    What is at the transmitter side to send the data for ex rc5 remote/ 555 in astable mode with switch etc. with out know the txd side how you can programme.



    •   Alt1st December 2006, 09:45

      advertising

        
       

  4. #4
    Member level 3
    Points: 1,445, Level: 8

    Join Date
    Aug 2006
    Posts
    62
    Helped
    0 / 0
    Points
    1,445
    Level
    8

    interfacing infrared

    you can use bascom 8051
    it is a basic compiler for 8051
    it has a command called " getrc4"

    here is an example





    Dim New As Bit
    Dim Command As Byte , Subaddress As Byte

    Reset Tcon.0 'triggered by rising edge
    On Int0 Receiverc5
    Enable Int0
    Enable Interrupts
    Do
    If New = 1 Then 'received new code
    Disable Int0
    Print Command ; " " ; Subaddress
    New = 0 'reset new bit
    Enable Int0
    End If
    Loop



    Receiverc5: 'interrupt routine
    'the getrc5 routine uses 30 bytes ! of the stack for measuring
    'the interval between the bits
    Getrc5(subaddress , Command)
    New = 1 'set flag
    Return




    so it receives rc5 code without tedious programming



    check also the following links

    http://www.rotgradpsi.de/mc/etc/rc5decoder.html

    http://www.ustr.net/infrared/infrared1.shtml



+ Post New Thread
Please login