Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[General] IR decoding of diffrent Protocols

Status
Not open for further replies.

sangeo

Member level 2
Joined
Jun 2, 2013
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,647
Haii all…
I am going to design a system based on an IR remote controller
So I need to understand some basic informations abour IR protocols
Which protocols is easy to design among NEC,RC5,SCIR,
Also howmany companies are following NEC protocol.
 

Domestic IR protocols are explained well here:

https://www.sbprojects.com/knowledge/ir/

Sony SIRC protocol is the easiest protocol to work with.

NEC protocol is very popular and is used by a huge number of manufacturers. Far too many to keep track of.
 
Last edited:
  • Like
Reactions: sangeo

    sangeo

    Points: 2
    Helpful Answer Positive Rating
I second that. Go with the Sony protocol, its the easiest to decode.
 

I have worked with the NEC protocol. And is working well. Don't know about other protocols.
 

i have worked with RC-5 protocol(just two days back) pretty easy one & many sites which give a detailed analysis on this protocol.
do you want code for rc-5 protocol here it is in c:
i am using 8051 microcontroller:
but u need to study first about the protocol
Code:
#include<reg51.h>
void interruptdelay(void);         //function for interrupt
void delwaste(unsigned int);	//it's to receive  the bit from  the protocol  sent by your remote	          
void DELAY(void);                             //for 13.392ms   delay to skip the reading of code upto command  
#define y P2			      //to display number in the command code  of rc5 protocol
sbit first=P0^0;
sbit sec=P0^1;
sbit third=P0^2;
sbit mybit=P3^3;						 //tsoy738 signal connected at P3^3(interrupt pin)
void timer0(void) interrupt 2           //isr routine for external hardware interrupt 
{
interruptdelay();
}
void main()
{
P3=0XFF;  //make as input
P1=0X00;   //make as output
P0=0X00;   //motors connected
P2=0X00;
while(1)
{
IE=0X84;  //low level triggered
TMOD=0X01;	  //timer 0 in mode 1 
}

}
void interruptdelay(void)
{

unsigned int z=0,y=0,t=0;
DELAY();   //13.392ms skip
		 
while(z<6)    //here in rc5 protocol the command length is of 6 bits
{
  if(mybit==0)
  {
  y=y<<1;
  y|=0X01;
  
   }
   else
   {
      y=y<<1;    
	}
   
 delwaste(1);   //1.728ms delay
  z+=1; 
}
P1=y;       //display the command code "i.e 6bits  size"

}    

void delwaste(unsigned int e)   //for e=1 creates delay of 1.728msec
{
for(;e>0;e--)
{
TH0=0XF9;
TL0=0XD4;
TR0=1;
while(TF0==0);
TR0=0;
TF0=0;
}
return;
}
void DELAY(void)   //13.392ms
{
TH0=0XCE;
TL0=0X4C;
TR0=1;
while(TF0==0);
TR0=0;
TF0=0;
return;
}
 
Last edited:
  • Like
Reactions: sangeo

    sangeo

    Points: 2
    Helpful Answer Positive Rating
Ok thanks..for your replay,I have one LG TV remote controller,one VINVERTH DVD remote,one china DVD Remote&one China VCD Controller,so Which are the protocols used by these remote controllers.
 

i too had the same problem deciding which protocol i had.
THE best solution is seeing it on oscilloscope.
If you donot have oscilloscope then in cheapest way within 30min you can make one see here https://www.instructables.com/id/Use-Your-Laptop-as-Oscilloscope/
or else the post given by hexreader you will get information about your protocol over there.
 
Last edited:

Don't know much about LG remote control, but it looks like RC5, NEC or special.

China remote controls are usually NEC format, but there is no guarantee.

Better to find an old Sony TV remote control. There is a very high chance that it SIRC 12.

Sony SIRC12 is much better documented and much easier to work with than either NEC or RC5

Buy yourself a 3-pin 38kHz IR receiver module if range is not vitally important - it will work at full range for NEC, and half range for RC5 (36kHz) or SIRC12 (40kHz).

If full range is important, match the module frequency to the transmitter frequency.
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top