How to Use Infrared Remotes and Receivers on the Arduino - Ultimate Guide to the Arduino #26

preview_player
Показать описание
Learn how to set up an infrared remote control and receiver on the Arduino, how infrared signal transmission works, and how to control the Arduino's output pins with an infrared remote controller.

This is tutorial #26 in the Ultimate Guide to the Arduino, a complete video course on the Arduino microcontroller with 45 lessons that are designed to teach anyone how to master the Arduino at any skill level. Visit our YouTube channel page to watch the entire series!

Get the 3-in-1 Arduino Smart Car and IOT Learning Kit from SunFounder here:

Or get the kit from Amazon:

Get an Arduino Uno from SunFounder here:

Visit the webpage for this video tutorial on Circuit Basics for wiring diagrams and example code:

And be sure to check out the Circuit Basics blog and social media for more articles and tutorials on the Raspberry Pi, Arduino and other DIY electronic projects!
Рекомендации по теме
Комментарии
Автор

At first I had a problem with this, I suspected it would work on an older version, but I didn't know which one, but I read the comments, set the version to 2.0.1 and everything works! Thank you for your help and bravo to the creator, but next time show what version of the library you are working on.

DanielPaszko
Автор

this is so underrated this guy deserves 100k subs

levilabs.
Автор

Sorry dont get, typed the IR code out to 7:47, tried 4 different remotes, nothing from serial print, IR flashes when press remote keys

brianbrinamo
Автор

done everything, still can't get it to work, I haven't found one single Arduino tutorial on YouTube that correctly shows you how to use a remote with Arduino

minskie
Автор

Hello, I would really appreciate it if you reply to my comment. The thing is… I want to ask if in the end of the video, did you press the button 5 again to turn of the LED? Are the buttons normally open or normally closed buttons?

faithdaphnecaliwliw
Автор

Hi, with all the buttons, when I press it, I get only no matter which one it is. What could be the reason

Ansarter
Автор

can i change what hex code a button generated ? can i make that same remote turn off my tv with the same hex code my tv remote uses?

heed
Автор

I get the following msg on the com port: "Thank you for using the IRremote library!
It seems, that you are using a old version 2.0 code / example.
This version is no longer supported!"
IRremote version 4.2.0 is installed. I also downloaded your zip file, extracted it, and placed in the lib folder.
In the msg below the sketch, it says, Invalid library found.

mohammadafdal
Автор

Good video! I copied the sketch but somehow no code appears on the screen. I tryed downgradeing it to version 2 but still nothing happens. I looked at all the comments but I still can't find any answers. Can anybody help?

tothdomonkos
Автор

Mine only outputs no matter what button i press. Can anybody explain the reasoning. I have the exact same code, I have a newer version of arduino though.

brendan
Автор

How do you "download from Github and install in the IDE"?

paulacolbath
Автор

Congratulations beautiful video. I faithfully reproduced the sketch. My remote control and my IR receiver work perfectly by themselves but no code appears on the screen. Can you give me some suggestions?

giacomovisone
Автор

Hello sir please decode the dc ceiling fan remote

WasiManak
Автор

If I where to say if receive and decoded ___ hex code than run a sketch that says go to a limit switch and stop ?

sebastianmorales
Автор

Hello friend, would you have any Arduino code for a clock with a 7-segment display to set the time with an IR remote control? Or any example? Thanks

Dancopymus
Автор

what version of the library are you using? 2.0?

lolidk
Автор

got stuck on the first step, even though i seem to have the exact same remote controller as shown in the video all the buttons transmit the same hex code - my AC remote on the other hand does seem to work and provide different hex codes, so it can't be a problem with the circuit or the code, any ideas on what i could do to fix this?

jaki
Автор

How can I added double pressing on the buttons?

jaredevans
Автор

I have problem when I connect my 5v power to sensor. Com port get disconnected to my pc. What i need to do. I try both 3.3v and 5v. Same happened. Com port get disconnected. After i removed the power it connected. I'm using Arduino Uno.

darkblender
Автор

hello sir, I am facing a problem that here 8:05 when you pressed 2 you got 3D9AE3F7, but further in the video over here 8:23 you got 0xFF18E7 HEX code for ??? please explain it to me i request

Dhanu-bcpn