Arduino Tutorial 31- How to Use the Infrared (IR) Remote

preview_player
Показать описание
Let's see how to add an Infrared remote to your Arduino projects. This lesson helps you to get started with this simple and awesome IR technology.

Best Arduino Starter Kit 👇
--------------------------------------------------------------------

► Get Your First Arduino Starter Kit 👇:

--------------------------------------------------------------------
✅ My current Productivity Setup 👇:

--------------------------------------------------------------------

FOLLOW ME:
--------------------------------------------------------------------

► All content by Enjoy Mechatronics is 100% free. I believe that education should be freely available to everyone.
Рекомендации по теме
Комментарии
Автор

I kiss your heart, brother.
I have been trying to set up this damn remote for about two hours and no complicated approach or solution from the Internet seemed help, except for your coherent, simple, and logical code.
May your problems go away like mine.

yasinkotere
Автор

you are the best 👍
i search many tutorials, no one works
finally, i watch this
this really works
just look at the way you code this can tell that you totally know these

二一-mb
Автор

Thank you so much. It's quite something when I spend hours trying to figure out how to set up my own IR Remote, but nothing works. Then I came across your video, followed exactly what you did, and it ended up working! Once again, thank you!!!!

williampicca
Автор

Another excellent video presentation. You manage to include every project detail and give the information clearly and succinctly, without a wasted word. Great job!

AllanWallsPhotography
Автор

Thanks man. I was really stuck on this lesson for the IR remote. I think I got it nailed down now.

EduTechNeer
Автор

here is the code for lazy ones : #include <IRremote.h>
IRrecv IR(3);
int ledPin = 8;
void setup( ) {
// put your setup code here, to run once:
IR.enableIRIn( );
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}

void loop() {
// put your main code here, to run repeatedly:
if(IR.decode( ) ){
Serial.println(IR.decodedIRData.decodedRawData, HEX);
== 0xEA15FF00){
digitalWrite(ledPin, HIGH);
}
== 0xF807FF00){
digitalWrite(ledPin, LOW);
}
delay(1500);
IR.resume( );
}
}

diaxx
Автор

Your video help me to make it work, thank you. the fact that you also mentionned the library version really help. I guess many people has trouble with it because there is incompatibility between the code suggest and the library version currently install on their system

siAppDesign
Автор

Best Tutorial i could find on Youtube. Many Thanks!!!

insanity
Автор

Thank you so much mate .I have watched lot of videos nothing had worked for me. You saved my life dude, I have a project on this.

india_venom
Автор

OMG FINALLY IVE BEEN LOOKING EVERYWHERE FOR A VIDEO THAT WORKS AND THIS IS THE ONLY ONE IVE FOUND THANK YOU

HamBoga
Автор

Hi i am not sure if u can help but for some reason when i use try and do the hexadecimal stuff only some values get read and if so its just 0 on the serial monitor

mrfuzzball
Автор

Thank you for your tutorials. Your arduino tutorials are very useful and I like the fact that you mention exactly which library to use, because they can get confusing.

michalb.
Автор

Straight to the point, very well done!

jsn
Автор

Thanks you, I spent many time to set up this system but it didn't work but today i find this video despite simple code but it work very well, again thanks you very much!

Tanlee
Автор

Very well explained sir. Clear, simple and concise code. Thank you

devyanshgarg
Автор

In your serial monitor, make sure to set it to 9600 baud at the bottom otherwise you might end up with something odd showing up

TacoAlligator
Автор

THANK YOU SO MUCH. i have a lot of problems decodifing my ir control with other methods

yari
Автор

Hie thanks for the straight forward tutorial but am having a problem with the HEX of each remote button, when l press the same button l get a different HEX number, what could be the problem???

kudakwashemudzingwa
Автор

I want to ask you, can you tell me where you get that like code like that "decode "IR " , I mean where, I have been. searching it, please reply, thanks

stevielut
Автор

If i want to apply it at real lights with high voltage electric power can i directly connect them or should i use a relay for that?

zeranimator