Google-Apps
Hauptmenü

Post a Comment On: Ken Shirriff's blog

"Controlling your stereo over the web with the Arduino infrared library"

41 Comments -

1 – 41 of 41
Blogger ubiquit23 said...

Hi,

on page http://www.arcfn.com/2009/11/controlling-your-stereo-over-web-with.html

the link "infrared library" http://www.arcfn.com/2009/11/arcfn.com/2009/08/multi-protocol-infrared-remote-library.html is dead

thanks for your work and gretings from Berlin, Germany

Mike

February 16, 2010 at 3:52 PM

Blogger Unknown said...

This really a neat project. I've gotten it to control the mini and my Samsung TV (the latter I had to change 9000 to 4500). Playing around with RC5 which it receives but have not gotten it to control the device (yet). Thanks much.

March 6, 2010 at 10:31 AM

Anonymous Anonymous said...

Great idea for a project.
I am dreaming about making one set of the web remote using arduino, however I don't know how to wired all parts together and where to connect, description of that process and a picture is not enough for me to figure out. Can any one help me and draw a sketch of how to connect LEDs and receivers etc? Something similar to this http://lgusbporthackwitharduino.wikispaces.com/file/view/Arduino-IR-emiter.png/163877791/Arduino-IR-emiter.png
that will be helpful not only me I guess.

February 16, 2011 at 8:13 AM

Anonymous Jason Wu said...

This project is great! just similar to what I want to do.
I am planning to do a universal IR remoter with Arduino. It should be combined with two parts; first one is for recording varies IR remoter via Arduino, and then store the code by PC program; the second part is to replay the code via PC program, and then transmit via Arduino.
My goal is the system should be able to adapt for NEC, SONY, Philips...IR protocol, and able to control many kinds of appliances.

Is someone also interested on that?

April 9, 2011 at 5:16 AM

Anonymous Anonymous said...

i wanted to use an actual remote to control the computer, make it swich on,switch off or use it to control the windows media player. Could u please tell me how to go about it.the only place in lirc for linux which makes this possible. can i use windows 7 and try this?

April 19, 2012 at 6:20 AM

Blogger Guy said...

Hello Im using the IRwebremote PDE and have inserted it within the IRremote library. Im developing a php script so that I can control the Ardruino to a similar way that you have done. Iam having a problem with code flashing to pin 3, the TX and RX flash when taking code from the script, but no joy with Pin 3. Im just wondering where do I find the setup for PIN 3 in the libaries just to confirm its my php script is a problem. As I cannot find the output in any of the sketches or libaries. Thank you and great work, as you gave me a clue what to do for my project :)

May 17, 2012 at 12:53 PM

Anonymous Anonymous said...

I'm having problems sending codes for changing the TV channel. How to change the code for sending the command, for example, go to channel 31?

May 20, 2012 at 3:09 PM

Anonymous Anonymous said...

Hello :) i need little help with html/java

How to make with one click button to send 2,3,4 or more different IR codes to board ??
possible or not ?

May 27, 2012 at 9:36 AM

Anonymous Anonymous said...

it is possible to send RAW data from web ? if its how ?

July 6, 2012 at 8:38 PM

Blogger Jose Pedro said...

Hi. I'm trying to do the same but I was thinking to change the ir transmitter with an optocoupler and wire it in the device board. Any of you have experience of doing this way? Whats the maximum optocouplers an output accepts?
Sorry for my english.

October 13, 2012 at 6:41 AM

Blogger Unknown said...

Thank you SO much! I was actually researching how to build a device allowing me to control my parents' home entertainment system from halfway across the state. Having me manage it for them so long left them totally inept, poor things. :(

This is a major leap ahead for me. Thanks!

October 18, 2012 at 8:55 PM

Blogger Unknown said...

Thank you SO much! I was actually researching how to build a device allowing me to control my parents' home entertainment system from halfway across the state. Having me manage it for them so long left them totally inept, poor things. :(

This is a major leap ahead for me. Thanks!

October 18, 2012 at 8:55 PM

Blogger Unknown said...

Your work has really helped me progress with my own project, I am interested in using this sketch to control my Xbox 360.

How would I go about implementing the unsigned long long into this sketch?.

Thanks,

Martin.

November 23, 2012 at 2:56 PM

Blogger Mr. Romeo said...

Great work Ken, thanks a lot.

For some reason, the application is very slow in my chromebook running Ubuntu, so I ported your idea and parts of your code to apache/php, the result is fantastic, it runs a lot faster even in my small chromebook.

Now my wife can watch the tv in the ironing room, controlling the cable box located in my bedroom (in the opposite side of the house) using her iphone.

Thanks again.

April 9, 2013 at 1:53 PM

Anonymous Anonymous said...

Hello Mr. Ken,
i have been using your infrared library for 3 months now and understand many things in your source code, but i'm very weak in web development, so i was just asking a simple question for this infrared web based code....
does your library need an Ethernet shield for arduino or does it need the computer connected to arduino to be operated "ON" since i get the internet from the computer, or something else?
thank you

June 2, 2013 at 2:55 PM

Anonymous Anonymous said...

sorry, i meant to say "does the infrared web based code need"...instead of "library"

June 2, 2013 at 2:57 PM

Blogger Unknown said...

The example above is communicating with the arduino over USB, USB is a form of serial communication...
I used a raspberry pi instead of an ethernet shield, it can run the python web server ken has above plus power & communicate with the arduino over USB... Feel free to ask any questions, I'll do my best to answer them.

June 2, 2013 at 11:30 PM

Blogger Unknown said...

Hi, I am having a lot of fun with the IRremote library! thanks.

But now I am stuck trying to send code to a Yamaha HTR-5550 receiver. I bought it without the remote (RAV-242). Without the remote I can't turn of the "Set Menu" options.

I found the service manual from hifi-engine and the manual has hex codes for the remote.

i.e. Power: Custom Code (hex) 7A and Data 1F. I tried all the send methods :) such as SendNEC(0x7a1f, 32). I have ran out of combinations to try. Please help!

For "Set Menu" Custom Code (Hex) 7A and Data 9C.

September 14, 2013 at 6:55 PM

Blogger Unknown said...

Hi, Wei Wu...

Here are the codes I dumped from my Yamaha Remote a few months ago, I'm just heading out the door to go to work...
If you have any questions post them here & I'll get back to you as quickly as I can...

Yamaha Remote for Amp Model No. VR11270

Button Code

Power------------------NEC: BE41F10E
Tape Mon-------------NEC: BE4131CE
1-------------------------NEC: BE410BF4
2-------------------------NEC: BE418B74
3-------------------------NEC: BE414BB4
4-------------------------NEC: BE41CB34
5-------------------------NEC: BE412BD4
6-------------------------NEC: BE41AB54
7-------------------------NEC: BE416B94
8-------------------------NEC: BE41EB14
9-------------------------NEC: BE411BE4
10-----------------------NEC: BE419B64
11-----------------------NEC: BE415BA4
12-----------------------NEC: BE41DB24
13-----------------------NEC: BE413BC4
14-----------------------NEC: BE41BB44
15-----------------------NEC: BE417B84
16-----------------------NEC: BE41FB04
Test---------------------NEC: BE4153AC
Effect-------------------NEC: BE41837C
Up-----------------------NEC: BE41A35C
Down-------------------NEC: BE4123DC
Left----------------------NEC: BE41E31C
Right--------------------NEC: BE41639C
Vol Up------------------NEC: BE41B14E
Vol Down--------------NEC: BE41718E

32 bits

September 15, 2013 at 1:45 AM

Blogger Unknown said...

Hi, Wei Wu

Just got home, the code you are using looks to be too small to be 32bit, more like 16...

I bought the remote for receiver so I could decode it & get on with my project...

If buying a replacement remote isn't an option for you them I suggest you use the link below, there you will find a list of remote codes for Yamaha devices.
I have used it in the past to copy codes and transmit them to a device until I found a set that worked...

http://lirc.sourceforge.net/remotes/yamaha/

September 15, 2013 at 12:38 PM

Blogger Unknown said...

Hi Martin Boyle,
Thanks for the quick response :)
I don't want to buy a $39 to $49 remote to just getting into some menu setting. Plus, I have the service manual with the code. I thought I can build my own remote with arduino.

http://lirc.sourceforge.net/remotes/yamaha/RAV243 is the closest one matches the remote code for HTR-5550. Notice it has Pre-data 0xF7 and POWER on is 0x0000000000000002 (that is like 0x02) so the number of bit is similar to mine.


September 16, 2013 at 6:41 PM

Blogger Unknown said...

Hi, Wei Wu...

I have a multi remote, I have used it to dump all the power on codes it has for Yamaha receivers & put them in a sketch for you...

I hope that one of the power on codes works for the receiver you have, if so let me know...

good luck :)




/*
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/

#include

IRsend irsend;

void setup()
{
Serial.begin(9600);
}

void loop() {
if (Serial.read() != -1) {
for (int i = 0; i < 3; i++) {
irsend.sendNEC(0x5ea1f807, 32);
delay(1000);
irsend.sendNEC(0x7e817e81, 32);
delay(1000);
irsend.sendNEC(0x1ee1f00f, 32);
delay(1000);
irsend.sendNEC(0x7e81fe01, 32);
delay(1000);
irsend.sendNEC(0x5ea17887, 32);
delay(1000);
irsend.sendNEC(0x7e8154ab, 32);
delay(4000);
}
}
}

September 17, 2013 at 2:13 AM

Blogger Unknown said...

Hi, Wei Wu...

I have a multi remote, I have used it to dump all the power on codes it has for Yamaha receivers & put them in a sketch for you...

I hope that one of the power on codes works for the receiver you have, if so let me know...

good luck :)

open the serial monitor, enter a character into the text box & hit enter to start the sketch. it will run for around 30 seconds....




/*
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/

#include

IRsend irsend;

void setup()
{
Serial.begin(9600);
}

void loop() {
if (Serial.read() != -1) {
for (int i = 0; i < 3; i++) {
irsend.sendNEC(0x5ea1f807, 32);
delay(1000);
irsend.sendNEC(0x7e817e81, 32);
delay(1000);
irsend.sendNEC(0x1ee1f00f, 32);
delay(1000);
irsend.sendNEC(0x7e81fe01, 32);
delay(1000);
irsend.sendNEC(0x5ea17887, 32);
delay(1000);
irsend.sendNEC(0x7e8154ab, 32);
delay(4000);
}
}
}

September 17, 2013 at 2:30 AM

Blogger Unknown said...

:D :D :D :D

Calling Houston, we have established communication with receiver toggling on/off with 0x5EA1F807 NEC.

I am so excited haha...

September 17, 2013 at 4:54 AM

Blogger Unknown said...

Hi Martin Boyle,

Got the rest of the code here :-)
http://lirc.sourceforge.net/remotes/yamaha/RAV16

This stupid receiver's menu for setting speakers is only in the remote! Perhaps that was the reason for the $10 receiver price haha.

September 17, 2013 at 5:08 AM

Blogger Unknown said...

Brilliant..... I'm glad you are back on track ;)

September 17, 2013 at 10:20 AM

Blogger Unknown said...

Somebody figured it out here:
http://nobbin.net/2012/12/08/converting-yamaha-nec-infrared-codes-to-lirc-format/

Service manual spec for Power is 7A-1F.

7A = 01111010 then reverse the bits = 01011110 = 5E (byte 1)

FF - 5E = A1 (byte 2)

1F = 00011111 then reverse the bits = 11111000 = F8 (byte 3)

FF - F8 = 07 (byte 4)

Final answer: 5EA1F807

September 23, 2013 at 7:08 PM

Blogger Unknown said...

Im not sure why I'm finding this so hard but I can't seem to capture and replay any codes.

For example I have a volume up key on a Sony CD remote;
481
Decoded SONY: 481 (12 bits)
Raw (26): 2174 2450 -550 650 -550 1200 -600 600 -550 650 -550 1250 -550 650 -550 700 -500 650 -550 600 -550 650 -550 700 -500 1250

And a volume up key on a Samsung TV;
68733A46
Unknown encoding: 68733A46 (32 bits)
Raw (68): -29974 4500 -4350 600 -1600 600 -1600 600 -1650 600 -500 600 -500 600 -500 600 -500 600 -500 600 -1600 600 -1600 600 -1650 600 -500 600 -500 600 -500 550 -550 600 -500 600 -1600 600 -1650 600 -1600 600 -500 600 -500 600 -500 600 -500 650 -450 600 -500 600 -500 650 -500 600 -1600 600 -1600 600 -1600 600 -1600 650 -1600 600

How on earth do I translate these to the char+hex code used in these examples? Thanks Dan

December 21, 2013 at 4:26 PM

Blogger SPech said...

@Dan Miles:
Samsung is nearly NEC Format but with different Start/End Header. I have modified the code as seen here: http://www.spech.de/blog/article/universalfernbedienung
Maybe someone can add this to the library.

December 25, 2013 at 11:10 AM

Anonymous Anonymous said...

First of all thanks Ken for this great post! Your library works very good and thanks for the examples. However I have a small problem with my Aiwa stereo, I receive the IR codes form the remote but when I send them trough Arduino the stereo doesn't recognize them.

Here is on\off code that your library translates as NEC 32 bit code: 76044FC0

And this are lirc codes: http://lirc.sourceforge.net/remotes/aiwa/RC-7AS06

Neither code is accepted from the stereo.
Is it possible that the Aiwa stereo can't accept this codes because it uses different IR receiver form that I'm using on my Arduino?

And can someone adjust the arduino code to accept raw codes?

April 1, 2014 at 12:21 PM

Blogger Unknown said...

Hi Anonymous, Can you post your Arduino code?

April 1, 2014 at 12:30 PM

Anonymous Anonymous said...

Martin I'm using Ken's original Arduino code.
It would be very useful if someone could adapt this Arduino code to accept raw IR codes.


For example to implement this code in Ken's code:
http://www.instructables.com/files/orig/F7A/SNFL/GVOW4WOZ/F7ASNFLGVOW4WOZ.pde

April 1, 2014 at 2:59 PM

Blogger Unknown said...

Hi Anon.

Try this script...

/*
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/

#include

IRsend irsend;

void setup()
{
Serial.begin(9600);
}

void loop() {
if (Serial.read() != -1) {
for (int i = 0; i < 3; i++) {
irsend.sendNEC(0x76044c0, 32);
delay(4000);
}
}
}


What Arduino are you using?

April 1, 2014 at 3:54 PM

Anonymous Anonymous said...

Thanks Martin for your help.
I tried your code, but no luck. I think the problem is that the Arduino, for some reason, don't receives the wright code and that's why my stereo doesn't understands the codes. I can send codes from 3 other remotes but not this Aiwa remote. Du you think that is possible to send this lirc codes?

http://lirc.sourceforge.net/remotes/aiwa/RC-7AS06

April 1, 2014 at 5:09 PM

Blogger Unknown said...

Is it a cd player/stereo or a receiver?

April 1, 2014 at 5:14 PM

Anonymous Anonymous said...

It is cd player/stereo, this codes worked from my Nokia E51 mobile phone.

April 1, 2014 at 5:26 PM

Anonymous Anonymous said...

this is my project, only the first remote doesn't work.

http://darko84.dyndns.org:8099/

April 1, 2014 at 5:59 PM

Blogger Unknown said...

Hi Anon, This is a long shot... The only code I had for your make of stereo was coded as RC5...

Can you try the script below...
The comment box keeps removing the IRremote.h from the script because it thinks its a HTML tag, you'll need to include it yourself...

Entering a char in the serial monitor txt box will send the code...

/*
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/

#include

IRsend irsend;

void setup()
{
Serial.begin(9600);
}

void loop() {
if (Serial.read() != -1) {
for (int i = 0; i < 3; i++) {
irsend.sendRC5(0xd0c, 12);
delay(4000);
}
}
}

April 1, 2014 at 6:55 PM

Blogger kama_tech said...

Greetings someone here?

I can lend a hand, there will be an example of how to send codes panasonic right through the web, following the irwebremote example, or I can add that you can send codes panasonic

December 10, 2014 at 10:20 AM

Anonymous Doulase said...

Aiwa Issue
Refering to Anon's isseu using AIWA-Remotecodes. I also tried to decode Aiwa and was happy to find out that the lib showed NEC-Codes coming from the Aiwa-remote but in fact they are not!
You can identify a real NEC-Code by checking every other byte of the received code e.g. NEC:1D-E2-10-EF where E2 is inverted 1D and EF is inverted 10. If you check the Aiwa-Codes you'll find out that those codes are not following this rule. That's why sending out NEC-Codes to Aiwa will not work.
In my current project I want to translate Kenwood remote codes to Aiwa codes. As a workaround for above problem I'm sending raw-codes to the Aiwa, which works fine on the Arduino MEGA but on the breadboard UNO I'm stucked using the SWITCH-CASE command. It only works for 9 cases if I have more than 10 cases there ist now code transmitted at all. :(

January 21, 2015 at 11:03 PM

Blogger krekr said...

Thanks! I was given a Harman receiver without the remote and was able to learn a cheap programmable remote the important buttons (volume, power) through an Arduino! Best regards, Gregor van Egdom (www.krekr.nl)

August 27, 2015 at 7:23 AM

You can use some HTML tags, such as <b>, <i>, <a>

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot