Google-apper
Hovedmeny

Post a Comment On: Ken Shirriff's blog

"Testing the Arduino IR remote library"

10 Comments -

1 – 10 of 10
Anonymous Anton said...

The Sparkfun link is broken...

November 17, 2010 at 8:31 AM

Blogger JRMN said...

Is it possible to use the same arduino board for both sending and receiving IR data?

January 20, 2011 at 6:58 AM

Blogger ShadowXVII said...

Corrected Example Link;
https://github.com/Thorsten-Sick/Arduino-IRremote/tree/master/examples

June 21, 2012 at 2:50 AM

Anonymous rfac said...

Can the send/recieve be implemented on the same Arduino board? I know this has been asked before but I didn't see an answer.
Thanks in anticipation

October 24, 2012 at 8:30 AM

Blogger Iain said...

Answer to above poster - Yes - this shouldn't be a problem.


Hi Ken, I am hopelessly stuck at a certain point in getting my arduino uno universal remote to work.

I have set up my Uno with PWM pin 3 IR output and pin 13 for the ir receiver.

I have tested IR receive and it works lovely. It prints out the Hex commands:

10EF708F
- Vol Down
10EF58A7
- Vol Up


I have tried and tried to modify your IRsendDemo file to send those commands via pin 3 but it just wont work.

I tried:

irsend.sendNEC(10EF58A7, 3); // as I thought it was 32 bit hex?

I am mightily confused at the moment. I am struggling to read through IRremote.h and IRremoteInt.h


Please help!

February 21, 2013 at 8:21 AM

Blogger Iain said...

I also got this working with another remote - which is where i stole the IR led from,


if (irrecv.decode(&results)) {

long int decCode = results.value;
Serial.println(decCode);
switch (results.value) {
case 805778:
Serial.println("Forward");
digitalWrite(forwardPin, HIGH); // sets the LED on
break;



It was turning on and off LED's when I pressed the right button.

Slightly different to your:

if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}

February 21, 2013 at 8:24 AM

Blogger Iain said...

in your tutorial you say repeat this 3 times for Sony with the 40ms delay.

irsend.sendSony(0xa90, 12); // Sony TV power code


How should I modify that for my Hex codes and also, how do I know what protocol this remote is using?

All I appear to know is that it is 32bits long - which your program told me.

February 21, 2013 at 8:27 AM

Blogger פרגית said...

hi,
can i use the same port sending and receiving ir?
i need to use it on attiny and i have limited number of ports.

thanks
mor

October 27, 2013 at 1:29 AM

Anonymous Anonymous said...

Have a look at infra red remote decode test with arduino

October 18, 2016 at 3:29 AM

Blogger Unknown said...

ta yaya

December 8, 2016 at 12:39 PM

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