Pages: [1]   Go Down
Author Topic: IR Receiver Decoding  (Read 445 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 127
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi All,
I'm using Ken's IR Library and have been successull in transmitting/capturing IR Codes but I'm struggling with receiving them. I have a samsung telly which is not supported but by dumping the output and copying and pasting from PuTTY I end up with a raw dump which I then hand edited into an array similar to this...

powerOn[68]={4450,4500,550,1700,500,1750,500,1750,500,600,550,600,500,600,550,600,500,600,550,1700,550,1700,550,1700,500,600,550,600,500,600,550,600,500,650,500,600,550,1700,500,650,500,600,550,600,500,600,550,600,500,600,550,1700,550,600,500,1700,550,1700,550,1700,550,1700,500,1750,500,1750,500};

My problem is twofold, the above is edited by myself into that array, the raw data looks something like this...

0
Could not decode message
Raw (68): 28236 4550 -4400 600 -1650 600 -1600 600 -1650 600 -500 600 -550 600 -500 600 -500 600 -550 550 -1650 600 -1650 600 -1600 600 -550 550 -550 600 -500 600 -500 600 -550 600 -500 600 -1650 600 -500 600 -500 600 -550 600 -500 600 -500 600 -550 600 -1600 600 -500 600 -1650 600 -1650 600 -1600 600 -1650 600 -1600 600 -1650 600
0

Is there an easy way to compare these? I plan on having an IR recevier linked to a servo controlling my xbox/pc/tv volume (I have a wired rotary controller that I purchased years ago) and it's a pain getting up to change the volume!
I'm pretty new to coding and arduino in general so any help would be appreciated. Totally chuffed to be able to turn the telly off with an arduino and a little breadboard though - kept me entertained for at least a half hour! smiley

Thanks
 Jason
Logged

Pages: [1]   Go Up
Jump to: