IR remote tranmission for Sony TV *HELP WITH CODE*

Hi guys,

I’m very new to arduino and have a pretty basic grasp of C so far. For my first proper project I’m trying to create a remote that will control my Sony TV. Lucky for me, the example that comes with the IRremote Library has a code for the Sony Power button which looks something like this.

for (int i = 0; i < 3; i++) 
{
    irsend.sendSony(0xa90, 12); // Sony TV power code
    delay(40);
}

I’ve got this working with a click button and it is now turning my TV on/off when pressed. So far so good.

Now my problem is finding the codes for the rest of the buttons and I was hoping that someone might be able to refer me to a list. In the code above 0xa90 is used to identify the power command. I have two main questions.

  1. What is the format called when something is written like 0xa90?

  2. When searching online for Sony TV IR hexadecimal commands, I get a lot of results that look like this.

0000 0067 0000 000d 0061 0018 0030 0018 0018 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 0403

What is this format called and how do I convert it into a code like ‘0xa90’ that will work with the IRremote library? Does the library contain a list of preset command I can look at?

Any help will be greatly appreciated.

This table should have the codes you want.

unsigned int Sony_map_code[] = {
  0xA90,    //  "power",     
  0x910,    //  "0",         
   0x10,    //  "1",         
  0x810,    //  "2",         
  0x410,    //  "3",         
  0xc10,    //  "4",         
  0x210,    //  "5",         
  0xa10,    //  "6",         
  0x610,    //  "7",         
  0xe10,    //  "8",         
  0x110,    //  "9",         
  0x490,    //  "Vol Up",    
  0xc90,    //  "Vol Dn",    
   0x90,    //  "Chan Up",   
  0x890,    //  "Chan Dn",   
  0x190,    //  "Picture Up",
  0x990,    //  "Picture Dn",
  0xA50,    //  "TV/Video",  
  0x2d0,    //  "Clear",     
  0xdd0,    //  "Jump",      
  0xe90,    //  "MTS",       
  0x5d0,    //  "Display",   
  0x5d0,    //  "Sleep",     
  0x290,    //  "Muting",    
  0xd9a,    //  "Rewind",    
  0x59a,    //  "Play",      
  0x99a,    //  "Pause",     
  0x19a,    //  "Stop",      
  0xb9a,    //  "Record",    
  0x39a,    //  "FF",        
  0xcd0,    //  "AM/PM",     
  0xd10,    //  "Enter",     
  0x69a,    //  "Eject" 
};

Pete

You Sir are a true gentleman. Thank you!

hi Julzshred : i hope Sony IR transmitting Project is complete.
i also trying to run arduino IR remote Library. when i send

for (int i = 0; i < 3; i++)
{
irsend.sendSony(0xa90, 12); // Sony TV power code
delay(40);
}

in receiving i use IR Protocol analyzer software to detect ir protocaol … but ir protocal analyzer not detect my arduino send command.plz

You need to post all your code (using code tags) and also explain how the IR LED Tx and Rx are wired.

Pete

Hi all ime wondering how some one as got 0x95 from 0xa90. Ime following a project that has been updated they have changed the sony remote codes over and power was 0xa90 and its been changed to 0x95 same remote,and still works,i want to know how the 0x95 code works for power when its 0xa90. its not just the power code its all of them like bellow example.thanks

was

#define IRKEY_ONE 0x010
#define IRKEY_TWO 0x810
#define IRKEY_THREE 0x410 //Thease are the actual codes that come from remote.
#define IRKEY_FOUR 0xc10
#define IRKEY_POWER 0xa90
now

#define IRKEY_ONE 0x80
#define IRKEY_TWO 0x81
#define IRKEY_THREE 0x82 // whats been done to change them/same remote still
#define IRKEY_FOUR 0x83 // i wonder if they have been converted some how
#define IRKEY_POWER 0x95

Reason i ask is that i want to add extra functions and more buttons to an led project but need to find out how to convert the code to work.Some kind of conversion is going on i think,am i missing somthing ??? I try to add extra button codes from my remote but they dont work.
How has 0xa90 gone to 0x95 same remote same button.Also what is hex16??
Any help would be great.