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

  Рет қаралды 74,875

Circuit Basics

Circuit Basics

Күн бұрын

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 KZbin channel page to watch the entire series!
Get the 3-in-1 Arduino Smart Car and IOT Learning Kit from SunFounder here:
www.sunfounder...
Or get the kit from Amazon:
US Amazon: amzn.to/3W1Mahh
DE Amazon: amzn.to/3j0oETn
JP Amazon: amzn.to/3UYrHZG
UK Amazon: amzn.to/3uTJZAC
CA Amazon: amzn.to/3W2vExN
Get an Arduino Uno from SunFounder here:
www.sunfounder...
Visit the webpage for this video tutorial on Circuit Basics for wiring diagrams and example code:
www.circuitbas...
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!
www.circuitbas...
Facebook: / circuitbasic
Twitter: / circuitbasics
Instagram: / circuitbasics

Пікірлер: 72
@DanielPaszko
@DanielPaszko 2 ай бұрын
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.
@flashgordonrocks
@flashgordonrocks 2 ай бұрын
this worked for me also, thank you!
@ARJPRX
@ARJPRX 6 ай бұрын
this is so underrated this guy deserves 100k subs
@faithdaphnecaliwliw905
@faithdaphnecaliwliw905 5 ай бұрын
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?
@brianbrinamo8943
@brianbrinamo8943 3 ай бұрын
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
@heed7496
@heed7496 10 ай бұрын
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?
@minskie
@minskie 5 ай бұрын
done everything, still can't get it to work, I haven't found one single Arduino tutorial on KZbin that correctly shows you how to use a remote with Arduino
@tobibakare5452
@tobibakare5452 3 ай бұрын
Same! Have you found a solution
@Garett.1214
@Garett.1214 Ай бұрын
You have to go into the examples folder and under irremote use the receiverDemo file or the simpleReciever file. It seems this file is obsolete and he didn't mention it.
@mohammadafdal774
@mohammadafdal774 9 ай бұрын
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.
@tr_2sc1970
@tr_2sc1970 8 ай бұрын
I have the same issue.
@Garett.1214
@Garett.1214 Ай бұрын
Follow what is said in the message. Go the examples and pick the simpleReciever file. It should display the code on it.
@Dancopymus
@Dancopymus 7 ай бұрын
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
@giacomovisone6535
@giacomovisone6535 Жыл бұрын
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?
@CaHeoMapMap
@CaHeoMapMap Жыл бұрын
Check your baudrate. It could be a reason
@CrazyKZ_productions
@CrazyKZ_productions Жыл бұрын
i have the same issue there is no serial output showing up
@baconking1423
@baconking1423 9 ай бұрын
try this script: #include const int RECV_PIN = 7; IRrecv irrecv(RECV_PIN); decode_results results; void setup() { Serial.begin(9600); irrecv.enableIRIn(); } void loop() { if (irrecv.decode(&results)) { Serial.print("Received IR Signal: 0x"); Serial.println(results.value, HEX); irrecv.resume(); } }
@tothdomonkos9761
@tothdomonkos9761 3 ай бұрын
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?
@jaki1876
@jaki1876 3 ай бұрын
same boat, can't find anything on the new version of the library (4.4.0), other than endless pages on github none of which i understand
@lolidk6196
@lolidk6196 Жыл бұрын
what version of the library are you using? 2.0?
@defalt5482
@defalt5482 11 ай бұрын
The newer version needs different code. I can help if u're facing problems
@brendan2609
@brendan2609 11 ай бұрын
Mine only outputs FFFFFFFF, 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.
@nicolasfite9236
@nicolasfite9236 10 ай бұрын
You have to use library version 2.0. That solved the issue for me!
@Determinator21
@Determinator21 10 ай бұрын
F
@键仙
@键仙 8 ай бұрын
​@@nicolasfite9236only 2.0?
@E-4-elecTronic
@E-4-elecTronic 6 ай бұрын
Mine also same problem
@narmishanair
@narmishanair 6 ай бұрын
@@nicolasfite9236how did u do that?
@paulacolbath5079
@paulacolbath5079 Ай бұрын
How do you "download from Github and install in the IDE"?
@jaki1876
@jaki1876 Жыл бұрын
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 - FFFFFF... 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?
@Ansarter
@Ansarter Жыл бұрын
Hi I have the same problem with permanent code FFFFFF. Did you solve this problem?
@titigr
@titigr 11 ай бұрын
You need use 2.0 library
@titigr
@titigr 11 ай бұрын
@@Ansarteryou need use 2.0 library version
@khoalenguyendang5587
@khoalenguyendang5587 11 ай бұрын
@@titigrhey bro, can u show me how to use 2.0 library?
@titigr
@titigr 11 ай бұрын
Discord ,WhatsApp,instagram for ?video
@WasiManak
@WasiManak 6 ай бұрын
Hello sir please decode the dc ceiling fan remote
@Ansarter
@Ansarter Жыл бұрын
Hi, with all the buttons, when I press it, I get only ffffff, no matter which one it is. What could be the reason
@mahmutkornek7804
@mahmutkornek7804 8 ай бұрын
It happens to me too
@IskandarSodiqjonov
@IskandarSodiqjonov 7 ай бұрын
me too @@mahmutkornek7804
@sebastianmorales8679
@sebastianmorales8679 2 ай бұрын
If I where to say if receive and decoded ___ hex code than run a sketch that says go to a limit switch and stop ?
@jaredevans8518
@jaredevans8518 11 ай бұрын
How can I added double pressing on the buttons?
@darkblender1114
@darkblender1114 9 ай бұрын
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.
@Dhanu-bc8pn
@Dhanu-bc8pn Жыл бұрын
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 2...............how ??? please explain it to me i request you...............
@yorha2b278
@yorha2b278 5 ай бұрын
Some of the methods have been deprecated really fast 😞
@tr_2sc1970
@tr_2sc1970 8 ай бұрын
It doesn't work for me. I get multiple codes for each button. Inconsistency.
@xno_elysiumx3744
@xno_elysiumx3744 6 ай бұрын
I had the same problem but could not fix it, yet.
@fxry5943
@fxry5943 5 ай бұрын
Have you found a solution for this?
@tr_2sc1970
@tr_2sc1970 5 ай бұрын
@@fxry5943 Unfortunately not yet, someone promised me in instructables he would do something, I have been waiting for months!
@tr_2sc1970
@tr_2sc1970 4 ай бұрын
@@fxry5943 no, not yet.
@winstuffman
@winstuffman 9 ай бұрын
where is code i only install zip file next what i do
@suharto69blayboy
@suharto69blayboy 8 ай бұрын
Code does not work :(
@tacbeast4841
@tacbeast4841 5 ай бұрын
Wired the receiver as instructed, the receiver burned
@kapilytgamer4121
@kapilytgamer4121 6 ай бұрын
Me only FFFFFFFFFFF hex code is showing no matter what button i press please anybody solve my and others problem i didn't able to find any video about it on KZbin please anybody solve this issue or make video about it🙏🙏🙏❤️
@poornachandrarao9867
@poornachandrarao9867 6 ай бұрын
Same problem
@icctech
@icctech 4 ай бұрын
Use 2.0.1 library files, it's working
@tygrisek38
@tygrisek38 9 ай бұрын
my hex code is doing ffffffff
@RoseElias
@RoseElias 7 ай бұрын
You have to use library version 2.0. That solved the issue for me!
@SchwanaCARDHUT
@SchwanaCARDHUT Жыл бұрын
Bravo 👏 👏 et merci ............
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 7 МЛН
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 16 МЛН
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,9 МЛН
Using IR Remote Controls with the Arduino
35:28
DroneBot Workshop
Рет қаралды 935 М.
EEVblog #506 - IR Remote Control Arduino Protocol Tutorial
23:56
Wifi scanner and jammer using NRF24L01
3:07
Babak Stars
Рет қаралды 63 М.
Recording and replaying Infrared signals from remote controls
12:53
The coolest robot I've ever built!
19:40
Thomas Burns
Рет қаралды 4,7 МЛН