1. You can now buy finished microcontroller project from us, Check out the Store for the complete list of projects.
  2. Need a custom project, Send us some details about your project. So that we can quote the price for it.

Help For RC5 Infrared Remote

Discussion in 'Electronic Projects Design/Ideas/Reviews' started by amanjeetindia, Dec 17, 2007.

  1. amanjeetindia

    amanjeetindia New Member

    Likes Received:
    0
    Trophy Points:
    0
    dear sir

    i am desinging a circuit for infrared remote controls with using Keil C.
    but i am confused which remote will be used..Can i use any infrared remote control which we use in our day to day life like tv,vieeo,cd player etc remotes. can i use my tv remote made by Videocon or LG Tv Reomote.


    Aman
    Do Not Wait For Destiny
  2. Binu

    Binu Administrator

    Likes Received:
    143
    Trophy Points:
    63
    Use any 100channel Assembled sets TV remote or use any phillips TV remote.
  3. amanjeetindia

    amanjeetindia New Member

    Likes Received:
    0
    Trophy Points:
    0
    DEAR SIR

    I SUPPOSE IN CASE OF PHILIPS HERE IS NO CHANNEL BOUNDATIONS 100,200 OR DOES NOT MATTER, MUCH CHANNEL IT SHOULD SUPPORT BUT THE REMOTE SHOULD ME MADE PHILIPS .

    AM I RIGHT...?

    AMAN

    Aman
    Do Not Wait For Destiny
  4. Binu

    Binu Administrator

    Likes Received:
    143
    Trophy Points:
    63
    I haven't checked it. I am using normal 100 channel remote. [:p]
  5. anitha_bogi

    anitha_bogi New Member

    Likes Received:
    0
    Trophy Points:
    0
    first decide on which protocol you'll be using i,e - Sony format, Phillips(RC5) or Samsung's format.

    RC5 (phillips) bi-phasing format is easy to decode, all the Phillips remotes can be used if u r using RC5 format just include all Device ID codes like "00" ( default ID code for TVs)
    01H etc in your decoding routine and you can use all RC5 remotes
  6. deniss

    deniss New Member

    Likes Received:
    0
    Trophy Points:
    0
    I have c code for aiwa remote. It works fine. Need it?
  7. Tapan@Deas

    Tapan@Deas New Member

    Likes Received:
    0
    Trophy Points:
    0
    I had tryed enough to do the RC5 Decoder project or IR Remote control, but it does not work any way,
    I tried with the assembly code that given on the web site, It does not response .
    I have tryed with c code, But here alose It does not decode , but i can see the response, What to do.
  8. Tapan@Deas

    Tapan@Deas New Member

    Likes Received:
    0
    Trophy Points:
    0
    I have tryed with the Following C program, Can any one help me out where I am wrong

    #include <at89x51.H>
    # include<stdio.h>
    # include "lcd.h"

    # define SWPort P1 // port definition

    sbit IR = P3^3; // pin's definitions
    sbit SW1 = P1^0;
    sbit SW2 = P1^1;
    sbit SW3 = P1^2;
    sbit SW4 = P1^3;
    sbit SW5 = P1^4;
    sbit SW6 = P1^5;
    sbit SW7 = P1^6;
    sbit SW8 = P1^7;


    void delay_3024ms(); // delay function for 3.024ms
    void delay_1728ms();
    void delay_4752ms(); // delay function for 4.752ms
    void ReadAddr(void); // Read Address
    void ReadCmd(void); // Read Command
    bit ReadBit(void); // Read Bit

    unsigned char temp,addr,cmd; // result in the form of Commands,Address
    bit FLIP,TOG=0; // bits

    char buffer[10];
    void main() // main program
    {
    TMOD=0X01; // timer 0 mode 1 (16 bit mode)
    SWPort=0x00;

    LCDInitialize();
    LCDWriteString("Key:");


    while(1)
    {
    while(IR==1);
    // delay_3024ms();
    // FLIP=IR;
    delay_4752ms();
    ReadAddr();
    ReadCmd();
    P1=cmd;
    sprintf(buffer,"Key:%d",cmd);
    LCDClear();
    LCDWriteString(buffer);

    }
    }


    void delay_3024ms(void) // delay of ms
    {
    TH0=0XF5; // 3.024ms
    TL0=0X1D;
    TR0=1;
    while(TF0==0);
    TR0=0;
    TF0=0;
    }


    void delay_1728ms(void) // delay of 1.728ms
    {
    TH0=0XF9; //TH0=0XF9; // 1.728ms
    TL0=0XC7; //TL0=0XC7;
    TR0=1;
    while(TF0==0);
    TR0=0;
    TF0=0;
    }
    void delay_4752ms(void) // delay of 1.728ms
    {
    TH0=0XEE; // 4.752ms
    TL0=0XE4;
    TR0=1;
    while(TF0==0);
    TR0=0;
    TF0=0;
    }

    bit ReadBit(void)
    {
    return(IR); // return value of IR line
    }

    void ReadCmd(void)
    {
    unsigned char i;
    cmd = 0;

    for (i=0;i<6;i++)
    {

    cmd|=ReadBit()? 0x01<<i:cmd;
    delay_1728ms();

    // P1=cmd;
    }
    }


    void ReadAddr(void)
    {
    unsigned char i;
    addr = 0;
    for (i=0;i<5;i++)
    {

    addr|=ReadBit()? 0x01<<i:addr;
    delay_1728ms();

    }
    }
Loading...

Share This Page