---
+ Post New Thread
Results 1 to 14 of 14
  1. #1
    Advanced Member level 2
    Points: 4,839, Level: 16
    UroBoros's Avatar
    Join Date
    May 2004
    Location
    Cochin - India
    Posts
    611
    Helped
    19 / 19
    Points
    4,839
    Level
    16

    ir transmitter and receiver

    Hai All
    I would like to construct a IR remote control transmitter and receiver both using a microcontroller, either 8051 or PIC Preferabily in C. Any protocol will do.Standard or custom .
    please provide links or examples for the same.
    My objective is to send 5 or 6 bytes of data between two units
    Picstudent

  2. #2
    Junior Member level 3
    Points: 1,696, Level: 9

    Join Date
    Jan 2005
    Posts
    28
    Helped
    4 / 4
    Points
    1,696
    Level
    9

    avr ir transmitter

    Hi

    you need to design Infrared transmitter and receiver circuit and it
    doesn't depend on microcontroller. but when you connect the transmitter
    and reciever to the microcontroller, you need to design a transmission algorithm
    to sen and receive data. it means that you must send your data with header ,tailer and parity with a timing that is synchron with receiver, then when
    receiver checks the correctness, it sends back the answer or Ack. you should
    design the algorithm yourself, but you can find IR transmitter and receiver circuits on the Internet.

    masoud


    1 members found this post helpful.

    •   Alt5th February 2005, 11:18

      advertising

        
       

  3. #3
    Advanced Member level 5
    Points: 16,294, Level: 30

    Join Date
    Jul 2001
    Location
    Oberon
    Posts
    1,891
    Helped
    423 / 423
    Points
    16,294
    Level
    30

    infrared transmitter and receiver

    Check out Microchip, They make chips for IR interfaces, MCP21XX.
    Datasheets and app notes available.


    1 members found this post helpful.

  4. #4
    Advanced Member level 2
    Points: 4,839, Level: 16
    UroBoros's Avatar
    Join Date
    May 2004
    Location
    Cochin - India
    Posts
    611
    Helped
    19 / 19
    Points
    4,839
    Level
    16

    pic ir transmitter

    Quote Originally Posted by btbass
    Check out Microchip, They make chips for IR interfaces, MCP21XX.
    Datasheets and app notes available.
    Hai
    Thanks for the response and info.
    But I have to do this with general purpose microcontrollers like PIC or 8051.
    Picstudent



  5. #5
    Full Member level 1
    Points: 2,433, Level: 11

    Join Date
    Apr 2004
    Posts
    116
    Helped
    14 / 14
    Points
    2,433
    Level
    11

    atmel ir transmitter



    1 members found this post helpful.

  6. #6
    M!k
    M!k is offline
    Advanced Member level 2
    Points: 11,024, Level: 25
    M!k's Avatar
    Join Date
    Apr 2002
    Posts
    682
    Helped
    116 / 116
    Points
    11,024
    Level
    25

    mcu ir transmitter

    Perhaps this could be useful for building an AT89C2051 based RC5 receiver. The main program part is done in ANSI C, while the critical RC5 decoding part is implemented in 8051 assembly language. I think it could easily be modified for any 8051:
    h**p://www.sunrom.com/product_info.php?cPath=60&products_id=276
    Unfortunately the code isn't free, but the schematic gives an impression for the hardware.
    It seems that the firmware can be compiled with the demo version of Keil C51 ?

    So you could start your project with the receiver while testing with a standard (Philips) remote control.
    In a second step build the transmitter, then modify the sequence to send bytes ....


    Mik


    1 members found this post helpful.

    •   Alt5th February 2005, 15:30

      advertising

        
       

  7. #7
    ME
    ME is offline
    Advanced Member level 4
    Points: 21,367, Level: 35

    Join Date
    Mar 2002
    Posts
    1,312
    Helped
    56 / 56
    Points
    21,367
    Level
    35

    rc5 ir transmitter

    Quote Originally Posted by Picstudent
    Quote Originally Posted by btbass
    Check out Microchip, They make chips for IR interfaces, MCP21XX.
    Datasheets and app notes available.
    Hai
    Thanks for the response and info.
    But I have to do this with general purpose microcontrollers like PIC or 8051.
    Picstudent
    Here are two application notes for a general pruprose MCU. It's not for PIC or 8051 but AVR. The code is written in assembley and not C as you asked for. But if you read the application notes, then you will get a very good idea of how to write your own C code. Looking at the assembly and cooments can also help you.
    AVR410: RC5 IR Remote Control Receiver
    AVR415: RC5 IR Remote Control Transmitter
    http://atmel.com/dyn/products/app_no...?family_id=607

    But if you search google and EDAboard, the you can easyli find IR C code examples for both 8051, PIC, AVR etc.

    Try to look in Elektor too, there's lots of examples and a great article about the different protocols and frequencies used for different TV's, Videos and stereos.
    These articles is a very useful if you want to use one of the IR remot control formats:
    IR Remote Control Codes (1)
    formats, protocols and (in)compatibility
    http://213.222.12.205/Default.aspx?t...th=3&art=50033
    IR Remote Control Codes (2)
    http://213.222.12.205/Default.aspx?t...th=4&art=50044

    RC5 is one of the most coomon protocols and it's invented Philips I think, but others use it too. Sony has another popular protocol.
    You can finde lots of examples with both RC5 and Sony's protocols on the net.
    This is one of the most common hobby projects made for 8 bit MCUs, so you can find it just about everywhere.


    1 members found this post helpful.

  8. #8
    Full Member level 4
    Points: 2,225, Level: 10

    Join Date
    Nov 2004
    Location
    Chennai, India
    Posts
    188
    Helped
    20 / 20
    Points
    2,225
    Level
    10

    build your own infrared transmitter and receiver

    hai

    an ordinary ir pair will work.connect the uart out of transmitter MCU to ir led. do not forget to give 38khz clk and burst freq if u use tsop1738 at ur rxr.


    1 members found this post helpful.

  9. #9
    Advanced Member level 2
    Points: 4,981, Level: 16
    Ace-X's Avatar
    Join Date
    Jan 2002
    Location
    Germany
    Posts
    530
    Helped
    41 / 41
    Points
    4,981
    Level
    16

    ir transmitter avr

    I would suggest to check this:

    http://www.geocities.com/SiliconVall...947/TABLE.HTML

    There you will find the table with the set of many IR protocols detais. But the most interesting is the titles of table columns. They will give you an idea how to store recorded sequences of IR codes. Actually, only basic analysis should be performed on any received IR code - just put it in Shift or Space coding type. After that any code can be represented as structure of times intervals in uC memory: {code length,type (Space/Shift),HeadPulse,HeadSpace,1Pulse,1Space,0Pulse,0S pace,EndSpace}+code.


    1 members found this post helpful.

  10. #10
    Full Member level 3
    Points: 2,181, Level: 10

    Join Date
    Apr 2005
    Posts
    168
    Helped
    2 / 2
    Points
    2,181
    Level
    10

    ir transmitter +avr

    hi

    i need a program code to decode rc5 sony remote control . i want to use 8051 uc but i found decoder code for 2051 uc for easytip1 code 718 from this site www.8052.com/codelib/files/rc5.c

    i can't find the technical detail of easytip remote control or find code for 8051 deocder sony rc5 code

    plz help me

    thank you



  11. #11
    Full Member level 5
    Points: 4,023, Level: 14
    Achievements:
    7 years registered

    Join Date
    Feb 2007
    Location
    33 N, 73 E
    Posts
    245
    Helped
    36 / 36
    Points
    4,023
    Level
    14

    ir transmitter and receiver circuit




  12. #12
    Advanced Member level 4
    Points: 11,875, Level: 26
    bobcat1's Avatar
    Join Date
    Jul 2002
    Posts
    1,292
    Helped
    96 / 96
    Points
    11,875
    Level
    26

    avr infrared transmitter

    Hi

    There is a nice application note for RC5 code for TI MSP430 and ZILOG Z8 bothe with C language code

    All the best

    Bobi



  13. #13
    Newbie level 1
    Points: 744, Level: 5

    Join Date
    Oct 2008
    Posts
    1
    Helped
    0 / 0
    Points
    744
    Level
    5

    ir transmitter by 8051

    he gents,

    I am developing a front panel control for a settopbox which is controlled by a pic16F886 microcontroller.The FP has to receive and deode the RC6-IR input from the remote and send the bit-stream code to the main processor.

    I couldnt find any sample C code for IR-RC6 bit stream decoder for PIC16F on the web.If somebody could share the code logic or direct me to any site where some implementation is listed.

    thanks in advance
    nevis



  14. #14
    Junior Member level 1
    Points: 435, Level: 4

    Join Date
    Dec 2010
    Posts
    19
    Helped
    2 / 2
    Points
    435
    Level
    4

    Re: ir transmitter by 8051

    hi everyone!

    I want to start and stop pwm(which drives a motor) according to the value of switch.
    Motor is on portc(RC2) and switch is on RB0.
    I am using pic16f877a and software is mikroc.
    Can anybody help me in writing c code?



+ Post New Thread
Please login