Get Started in Electronics #10 - Using the Infrared Remote and Sensor

  Рет қаралды 37,211

BV3D: Bryan Vines

BV3D: Bryan Vines

Күн бұрын

Пікірлер: 93
@tikav2411
@tikav2411 3 жыл бұрын
Awesome! I learned so much in this series. Keep posting and keep it up! Great puns :)
@jackwilliam9455
@jackwilliam9455 3 жыл бұрын
It would be cool if you could make a video where you showed us how to set up a buzzer with the remote. Thank you for this awesome series!
@TheURS50
@TheURS50 3 жыл бұрын
Please continue on with the series i have a lot of unused components that i really want to use
@IncreaseLearning
@IncreaseLearning 3 жыл бұрын
I've learned so much while watching these Arduino videos. You're an excellent teacher. I hope to learn more from you from this Elegoo Super Starter Kit.
@Siriusz7
@Siriusz7 3 жыл бұрын
why are you soooooooooo good at explaining ?? but really i have learned a lot from this series and i hope you keep uploading awesome videos
@micr0chap
@micr0chap 7 ай бұрын
The coding detail in this demo is really valuable to me with what I'm trying to develop since my project requires redefining the functions of the remote's 21 keys. Thanks heaps, Bryan. (subscribed)
@IncreaseLearning
@IncreaseLearning 3 жыл бұрын
I sincerely appreciate your explanations and humor!!!
@TheByers1
@TheByers1 Жыл бұрын
thanks , i was so glad when you said you were not using the code that came with the kits i had been trying using the code that came with kit and others on the web. do you know how awesome and helpful you are. the builtin codes are awful . yes i can spend hours figuring it out and learn a little but i learned a lot more following you and your explanations.
@googleuser298
@googleuser298 3 жыл бұрын
Every time I pick up a new hobby I look up videos about it and you have some on it as well. My dude lol
@muradmustafazade6282
@muradmustafazade6282 3 жыл бұрын
Another great video! However, please everybody pay attention to order of the cabels,if you have another type of receiver. For example, number of my receiver is 1838(written on top of the receiver) and i almost burnt it, because the cabel order shawn on the video was different than mine😂
@joshpegg4575
@joshpegg4575 3 жыл бұрын
Love the video man keep it up
@BV3D
@BV3D 3 жыл бұрын
Thanks, will do! 👍
@WhiteNucklin
@WhiteNucklin 3 жыл бұрын
lol i love your jokes. im starting from scratch as a level 0 programmer and am working my way through your lessons. i really appreciate your channel. subscribed. happy holidays my guy
@shaygoldin
@shaygoldin 7 ай бұрын
This awesome video needs to be uodated. thank you
@oliverstride3104
@oliverstride3104 3 жыл бұрын
Great Video, Keep it up.
@BV3D
@BV3D 3 жыл бұрын
Thanks, Olly 😀
@michaelcorley8089
@michaelcorley8089 Жыл бұрын
Excellent video!
@adamlibre2908
@adamlibre2908 3 жыл бұрын
thank youuuuu so much this is outstanding
@zeoberlerb6371
@zeoberlerb6371 Жыл бұрын
mr vines, your jokes are what keeps me from short-circuiting my bloodstream :D
@tikav2411
@tikav2411 3 жыл бұрын
Cool video! If u know, could u make a video about how to use the rgb matrix board? I have one but can't figure out how to work it. Thanks for this series :)
@theborednerds
@theborednerds Жыл бұрын
Hey Bryan, When I go to the link in the description for Elegoo, it takes me to V1.0, which I already have, not V2.0 which appears to have the library "IR.h". Help!
@DanielOBrien_Argentiumfox
@DanielOBrien_Argentiumfox 2 жыл бұрын
As of August 2022, the download on Elegoo doesn't seem to provide the "IR" file anymore, so I can't "#include..." the correct ".h" files for this tutorial to work. And it can no longer be found in the Arduino Library lists. It doesn't recognize the "IRrecv" command also. Any ideas? I really want to learn how to use this IR sensor. I love this video series though. Great job so far.
@glodu9302
@glodu9302 7 күн бұрын
Did you fixed this problem ? Can’t find it anywhere
@pat022860
@pat022860 8 ай бұрын
YOU ARE AMAZING THANK YOU
@1830mof
@1830mof 2 жыл бұрын
Really nice presentation style.
@vibinoutside
@vibinoutside 3 жыл бұрын
how come my second library didn't load? I couldn't check the file because IR.h didn't exist? How do I get around this? Cheers
@EnduringGuerila
@EnduringGuerila 2 жыл бұрын
My kit didn't include an "IR.h" file either, just came with the "IRremote.h." You can download the version he uploaded if you want the file.
@IncreaseLearning
@IncreaseLearning 3 жыл бұрын
Super video! I applauded for $5.00 👏👏
@BV3D
@BV3D 2 жыл бұрын
Hi Seth! I realize this is like a year late, but THANK YOU very much! KZbin rolled out this Applaud feature (now called Super Thanks) but, until very recently, didn't give creators an easy way to find them. Now they have, and I wanted to say I am grateful for your support!
@nigelcarter6487
@nigelcarter6487 3 жыл бұрын
Hi Brian I love the videos. I have the kit and am starting to use it, but when are you going to do more of the videos for the kit please? Regards, Nigel
@godricentertainment
@godricentertainment Жыл бұрын
Again great stuff. Unfortunately I couldn't follow along with this video because the files that you have on this video is very different from the ones on the link below.
@kwouters
@kwouters 3 жыл бұрын
I just discovered this video and your channel, and it's phenomenal! I'm working with exactly the same kit you're using, and I have a couple of observations from doing this project. 1. The version of the IRremote library is crucial for this sketch to work properly. I could only get it to work with 2.80. I know there were MAJOR changes with the 3.X versions, but I couldn't even get it to work with 2.81. Your video helped me figure out the source of my issue, and this solved my frustration. 2. The sketch works great, with the exception of one button: the FastForward. For some reason, this button displays "FAST FORWADOWN " in the serial monitor. I assumed there was a typo in the IR.h file, but I can't find it. Does your kit/sketch also display the wrong name for this button? Any ideas why this would happen? Thanks again for your awesome work! I'm definitely a new fan!!
@rafalocity
@rafalocity 3 жыл бұрын
If you are still interested: You are right, the error comes from the IR.h file. It seems to do this when the strings of text in the keyBuf array are too long. Change the length of the strings in the declaration of the array. In other words, you should have something like this: char keyBuf[][15] = {everything here stays the same};
@kwouters
@kwouters 3 жыл бұрын
@@rafalocity Thank you so much for the explanation! I still have a lot to learn about Arduino sketches. 😀
@rafalocity
@rafalocity 3 жыл бұрын
@@kwouters You're welcome! Keep on learning!
@alessiobruna370
@alessiobruna370 3 жыл бұрын
hi Bryan, thanks for your videos! after 10 lession with you i got the first truble but i can't figure it out; quickly: my Serial.begin(9600) doesn't show my nothing else than "IR Receiver Button Decode "; with every button i press the receiver is blinking (red led on the board) but nothing is Printed on my serial monitor.....how???!
@faimaim1015
@faimaim1015 3 жыл бұрын
Im having the same problem and the led doesn’t turn off i left it alone for a while came back it turned off but soon as i touched it again after a couple uses it went back to the same thing led on and when you press the button it lights up more and I literally copied the code and its not working im so confused
@gent55a
@gent55a 3 жыл бұрын
same here
@gent55a
@gent55a 3 жыл бұрын
I figured it out. There are 2 steps you need to try in the following order. A) Most probably you have installed the latest version of IRRemote library (as I have done) which was updated about a week ago and has some syntax changes. Modify your code so that it reflects them. I will paste my working example below for your reference. B) I read that IRRemote library sometimes conflicts with preinstalled IR Robot Remote Control libraries. Try deleting them. I hope this helps!
@seansanchez9730
@seansanchez9730 3 жыл бұрын
also posted a comment about the same issue without seeing this thread, still havnt been able to get it working though Edit: i figured it out! read my original comment under this video for a walkthrough
@yertelt5570
@yertelt5570 2 жыл бұрын
Almost 10K views and less than 400 likes?? Come on guys, the Dad jokes alone are worth a like!! 🤣🤣🤣
@cacidy8833
@cacidy8833 2 жыл бұрын
So true
@eljohnthefam
@eljohnthefam 3 жыл бұрын
My monitor says "The function decode(&results)) is deprecated and may not work as expected! Just use decode() without a parameter and IrReceiver.decodedIRData. ." what do i do?
@sjawad7299
@sjawad7299 Жыл бұрын
I can’t find the instruction to the IR.H file and I can’t find the Irremote by Shiriff. Can you please help. Thank you
@ebrown2469
@ebrown2469 2 жыл бұрын
I have been trying to follow this lesson. The information you have is very different than what downloads from elegoo. The file auto-downloads. I have been unable to download the sketch that is as up-to-date as yours.
@HallofWisdom
@HallofWisdom 2 жыл бұрын
--- me too. the download is the same as the CD, from 2019 --- 11APR22
@wherami
@wherami 2 жыл бұрын
If you are watching this in the future now the updated material is oct 2020
@sjawad7299
@sjawad7299 Жыл бұрын
Do you know the treat to get the same file?
@andrewsontop
@andrewsontop Жыл бұрын
i have a problem, when i connect every cable, (i checked and they are successfully connected correctly), the red led on the ir receiver just turns on and keeps there, which first i didnt mind but when the code didnt work i tried disconnecting the yellow one, and now the receiver worked, but i cant use it cause it has no pin point to make me use the code, help please
@mattiasilverii3188
@mattiasilverii3188 Жыл бұрын
I have a different code called IR_Receiver_Module... I don't know what to do! Great video though as always!
@criticalgrower
@criticalgrower 9 ай бұрын
Thank you!!i also would love to make reviews!!😊
@shashanksherkar392
@shashanksherkar392 Жыл бұрын
I am facing issues while making a 4 relay module driven AC switchboard controlled by IR Remote. Can you help me? I am from India, so the remote could be different and I don't have the extra .h file you had with all codes. I need to retrieve codes first using code from KEN SHIRIFF example and then develop code using retrieved HEX values for my project. Please let me know if you can help, thanks already.
@Andy_Tibbs
@Andy_Tibbs Жыл бұрын
some more work on the thumbnails and this channel will BLOW UP!! love this channel
@duller9430
@duller9430 2 жыл бұрын
Could you make an updated tutorial to this because IRremote by shirif does not exist anymore only IRemote by Armin Joachimseyer also elegoo has updated there code . If you do make an updated tutorial thanks you
@brendan2609
@brendan2609 2 жыл бұрын
Shriff does exist, but the code is different. Im having issues as well.
@spikekent
@spikekent 3 жыл бұрын
Another highly entertaining & educational video. Keep the #DadJokes coming. Thanks Bryan
@tbrandx2
@tbrandx2 3 жыл бұрын
I've been thinking that I'd like to learn more about coding the Arduino. How did you get started? Is it more like Java or C++?
@devonjasper3545
@devonjasper3545 3 жыл бұрын
The Arduino uses C as its programming language.
@kailauren8434
@kailauren8434 3 жыл бұрын
You abandoned me! Will you be doing videos for all of the code that comes with the starter kit? I need to motion-activate a step motor and I can't go on without you.
@max_dee
@max_dee 10 ай бұрын
Library has since been deprecated. Receiver still flashes for input but nothing is printed on the monitor. Instead, I get the following warning in the Serial Monitor: --------------------------------------------------- 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! Please use one of the new code examples from the library, available at "File > Examples > Examples from Custom Libraries / IRremote". Start with the SimpleReceiver or SimpleSender example. ------------------------------------------ I did try some of the 'examples' code but they weren't compatible with this lesson. Any ideas
@rayzr8945
@rayzr8945 2 ай бұрын
Did you ever figure it out? I got similar issues
@max_dee
@max_dee 2 ай бұрын
@@rayzr8945 Sorry mate, I don't honestly recall. I have a feeling a moved onto another exercise with my Arduino.
@brendan2609
@brendan2609 2 жыл бұрын
I look at your video and copied all the code, and changed mg version to see if it works and am getting error within the IR.ino portion.
@EduTechNeer
@EduTechNeer Жыл бұрын
Okay so I know this tutorial was posted a while ago and the PDF Elegoo tutorial was posted even longer ago but the code simply did not work for me. The first thing I had to do was write a program that decoded each button by printing it's HEX number in the serial monitor because the ones in the code were wrong. After doing that I wrote the code below. It is not elegant but it gets the job done. #include "IRremote.h" IRrecv IR(11); int ledPin = 8; void setup() { IR.enableIRIn(); pinMode(ledPin, OUTPUT); Serial.begin(9600); } void loop() { if(IR.decode()) { if(IR.decodedIRData.decodedRawData == 0xBA45FF00){Serial.println("POWER");} if (IR.decodedIRData.decodedRawData ==0xB847FF00) {Serial.println("FUNC/STOP");} if (IR.decodedIRData.decodedRawData == 0xB946FF00) {Serial.println("VOL+");} if (IR.decodedIRData.decodedRawData == 0xBB44FF00) {Serial.println("FAST BACK");} if (IR.decodedIRData.decodedRawData == 0xBF40FF00) {Serial.println("PAUSE");} if (IR.decodedIRData.decodedRawData == 0xBC43FF00) {Serial.println("FAST FORWARD");} if (IR.decodedIRData.decodedRawData == 0xF807FF00) {Serial.println("DOWN");} if (IR.decodedIRData.decodedRawData == 0xEA15FF00) {Serial.println("VOL-");} if (IR.decodedIRData.decodedRawData == 0xF609FF00) {Serial.println("UP");} if (IR.decodedIRData.decodedRawData == 0xE619FF00) {Serial.println("EQ");} if (IR.decodedIRData.decodedRawData == 0xF20DFF00) {Serial.println("ST/REPT");} if (IR.decodedIRData.decodedRawData == 0xE916FF00) {Serial.println("0");} if(IR.decodedIRData.decodedRawData == 0xF30CFF00) {Serial.println("1");} if(IR.decodedIRData.decodedRawData == 0xE718FF00) {Serial.println("2");} if(IR.decodedIRData.decodedRawData == 0xA15EFF00) {Serial.println("3");} if(IR.decodedIRData.decodedRawData == 0xF708FF00) {Serial.println("4");} if(IR.decodedIRData.decodedRawData == 0xE31CFF00) {Serial.println("5");} if(IR.decodedIRData.decodedRawData == 0xA55AFF00) {Serial.println("6");} if(IR.decodedIRData.decodedRawData == 0xBD42FF00) {Serial.println("7");} if(IR.decodedIRData.decodedRawData == 0xAD52FF00) {Serial.println("8");} if(IR.decodedIRData.decodedRawData == 0xB54AFF00) {Serial.println("9");} delay(1000); IR.resume(); } }
@hildachris-amadin4212
@hildachris-amadin4212 Жыл бұрын
could you upload that to a drive and link it?
@HackerFlavio
@HackerFlavio Жыл бұрын
i updated your code: #include int receiver = 11; // Signal Pin of IR receiver to Arduino Digital Pin 11 /*----( Declare objects )----*/ IRrecv irrecv(receiver); // create instance of 'irrecv' /*----( Function )----*/ void translateIR() // takes action based on IR code received // describing Remote IR codes { switch(irrecv.decodedIRData.decodedRawData) { case 0xBA45FF00: Serial.println("POWER"); break; case 0xB847FF00: Serial.println("FUNC/STOP"); break; case 0xB946FF00: Serial.println("VOL+"); break; case 0xBB44FF00: Serial.println("FAST BACK"); break; case 0xBF40FF00: Serial.println("PAUSE"); break; case 0xBC43FF00: Serial.println("FAST FORWARD"); break; case 0xF807FF00: Serial.println("DOWN"); break; case 0xEA15FF00: Serial.println("VOL-"); break; case 0xF609FF00: Serial.println("UP"); break; case 0xE619FF00: Serial.println("EQ"); break; case 0xF20DFF00: Serial.println("ST/REPT"); break; case 0xE916FF00: Serial.println("0"); break; case 0xF30CFF00: Serial.println("1"); break; case 0xE718FF00: Serial.println("2"); break; case 0xA15EFF00: Serial.println("3"); break; case 0xF708FF00: Serial.println("4"); break; case 0xE31CFF00: Serial.println("5"); break; case 0xA55AFF00: Serial.println("6"); break; case 0xBD42FF00: Serial.println("7"); break; case 0xAD52FF00: Serial.println("8"); break; case 0xB54AFF00: Serial.println("9"); break; default: Serial.println("Other button:"); break; } delay(100); } //END translateIR void setup() /*---( SETUP: RUNS ONCE )---*/ { Serial.begin(9600); Serial.println("IR Receiver Button Decode"); irrecv.enableIRIn(); // Start the receiver } /*-(end setup )--*/ void loop() /*---( LOOP: RUNS CONSTANTLY )---*/ { if (irrecv.decode()) // have we received an IR signal? { translateIR(); irrecv.resume(); // receive the next value } }/* -(end main loop )- */
@tsuri_yankee
@tsuri_yankee 3 жыл бұрын
how does it know what pins are the input from the receiver?
@BV3D
@BV3D 3 жыл бұрын
That's a great question, and I didn't address it in the video. The receiver pin is defined in the IR.h file, on line 4: *#define** RECEIVER 11* This is used in IR.ino, on line 7: *IRrecv irrecv(RECEIVER);* So, the RECEIVER label is defined as 11, and then that value is used when setting up an instance of IRrecv.
@wherami
@wherami 2 жыл бұрын
Sadly elegoo removed this test code from latest download.
@seansanchez9730
@seansanchez9730 3 жыл бұрын
hello! I've been enjoying your videos very much but for some reason, the included source code with this module doesn't seem to work. i think it has something to do with a recent update to the IRremote library. but I am getting lots of orange error text and can't get the serial monitor to register pressed remote buttons Problem solved!! at 7:38 when he shows what to install he is installing the old library which doesn't compile the code properly anymore remove any IR libraries you may have installed by going to documents>arduino>libraries and deleting any libraries named IR, IRremote, etc then go to your IRremote module and copy the IRremote library folder to the Arduino libraries folder. your code should now work as expected! ps. this advice came straight from elegoo customer service but they have not yet responded about whether or not they will be updating their example codes to match the new updated 3.0.1 IRremote library
@rhettorical_
@rhettorical_ 3 жыл бұрын
Thank you!
@tushitapatel5782
@tushitapatel5782 Жыл бұрын
Why do some tools need a power5 v while others don't?
@badgerfool1980
@badgerfool1980 Жыл бұрын
They have different code for this now and I don't know if it's just me (I may have a faulty remote or something) but the code out of the box gives some odd outputs to the serial monitor. I tried to add an if statement for the led similar to yours and got it to sort of work.. the led blinks instead of staying on or off ¯\_(ツ)_/¯
@duller9430
@duller9430 2 жыл бұрын
I cant seem to find this code example I can only find code from 2016 I can think it does the same thing though Edit I think it’s the same it just doesn’t include ir and uses the code name for buttons
@jeisinga
@jeisinga 10 ай бұрын
the part 2 moduler learning is no longer there
@cole6364
@cole6364 3 жыл бұрын
how do i code it? i code java but how i get app can just use any coder?
@MINECRAFTGAMERS233
@MINECRAFTGAMERS233 6 күн бұрын
CAN YOU LINK THE CODE I HAVE ARDUINO IDE BUT NOT THE CODE
@brendan2609
@brendan2609 2 жыл бұрын
When i download the file from the internet, my code is different than yours, I understand it was probably updated, but I can’t get it to work. Ive watched many other videos, but it never works. If anyone knows what to do id appreciate feedback. Thanks.
@HallofWisdom
@HallofWisdom 2 жыл бұрын
--- me too. the download is the same as the CD, from 2019 --- 11APR22
@josephgritsenko3900
@josephgritsenko3900 3 жыл бұрын
it didnt want to put the other tab thier
@tikav2411
@tikav2411 3 жыл бұрын
# There's always the "remote" possibility of something going wrong
@josephgritsenko3900
@josephgritsenko3900 3 жыл бұрын
STUPID STUPID his jokes r STUPID
@jeisinga
@jeisinga 10 ай бұрын
unfortaintly the irremote.h is not longer downladable
@kuchen_im_glas
@kuchen_im_glas Жыл бұрын
4:14 Deutschland (Germany)
@gregbennett2437
@gregbennett2437 Жыл бұрын
Did not work.
@HackerFlavio
@HackerFlavio Жыл бұрын
this worked for me: #include int receiver = 11; // Signal Pin of IR receiver to Arduino Digital Pin 11 /*----( Declare objects )----*/ IRrecv irrecv(receiver); // create instance of 'irrecv' /*----( Function )----*/ void translateIR() // takes action based on IR code received // describing Remote IR codes { switch(irrecv.decodedIRData.decodedRawData) { case 0xBA45FF00: Serial.println("POWER"); break; case 0xB847FF00: Serial.println("FUNC/STOP"); break; case 0xB946FF00: Serial.println("VOL+"); break; case 0xBB44FF00: Serial.println("FAST BACK"); break; case 0xBF40FF00: Serial.println("PAUSE"); break; case 0xBC43FF00: Serial.println("FAST FORWARD"); break; case 0xF807FF00: Serial.println("DOWN"); break; case 0xEA15FF00: Serial.println("VOL-"); break; case 0xF609FF00: Serial.println("UP"); break; case 0xE619FF00: Serial.println("EQ"); break; case 0xF20DFF00: Serial.println("ST/REPT"); break; case 0xE916FF00: Serial.println("0"); break; case 0xF30CFF00: Serial.println("1"); break; case 0xE718FF00: Serial.println("2"); break; case 0xA15EFF00: Serial.println("3"); break; case 0xF708FF00: Serial.println("4"); break; case 0xE31CFF00: Serial.println("5"); break; case 0xA55AFF00: Serial.println("6"); break; case 0xBD42FF00: Serial.println("7"); break; case 0xAD52FF00: Serial.println("8"); break; case 0xB54AFF00: Serial.println("9"); break; default: Serial.println("Other button:"); break; } delay(100); } //END translateIR void setup() /*---( SETUP: RUNS ONCE )---*/ { Serial.begin(9600); Serial.println("IR Receiver Button Decode"); irrecv.enableIRIn(); // Start the receiver } // }/*-(end setup )--*/ void loop() /*---( LOOP: RUNS CONSTANTLY )---*/ { if (irrecv.decode()) // have we received an IR signal? { translateIR(); irrecv.resume(); // receive the next value } }/* -(end main loop )- */
@glowingplutonium3345
@glowingplutonium3345 Жыл бұрын
@@HackerFlavio Do you know how to make the led turn on?
@AlanTaylorShearer
@AlanTaylorShearer 3 жыл бұрын
I R Baboon.
@BV3D
@BV3D 3 жыл бұрын
I M Weasel 😂
@AlanTaylorShearer
@AlanTaylorShearer 3 жыл бұрын
@@BV3D hehe glad you got the reference and it made you smile.
@BV3D
@BV3D 3 жыл бұрын
Michael Dorn voicing Weasel was one of the best parts of that show. Thanks for reminding me of it!
@AlanTaylorShearer
@AlanTaylorShearer 3 жыл бұрын
@@BV3D truly. Keep up the good work fella.
@cole6364
@cole6364 3 жыл бұрын
some thing wrong # dad joke +_+
Get Started in Electronics #11 - Use the LCD Screen with an Uno
12:13
BV3D: Bryan Vines
Рет қаралды 37 М.
Using IR Remote Controls with the Arduino
35:28
DroneBot Workshop
Рет қаралды 936 М.
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 4,2 МЛН
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 27 МЛН
Get Started in Electronics #1 - Elegoo Arduino Uno Super Starter Kit
22:17
BV3D: Bryan Vines
Рет қаралды 303 М.
Get Started in Electronics #9 - Using the DHT11 Humidity & Temp Sensor
15:33
Get Started in Electronics #5 - Active & Passive Buzzers w/ Arduino Uno
18:04
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
The Tri Folding Phone Durability Test! - someone has to try...
11:41
JerryRigEverything
Рет қаралды 1,2 МЛН
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
RC Robot Car - RC Controls and Arduino
47:53
DroneBot Workshop
Рет қаралды 218 М.
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 4,2 МЛН