Paul -- I am so grateful to you for making all these great lessons. The IR sensor is really fun. I listen to every single one of your videos all the way through. You are LEGEND!! P.S. Agree that gas station coffee is not as good as homemade. For students - the library has been changed since this video was made. You have to download the older library that Paul uses.
For everyone who got a strange error regarding a "deprecated" function, try switching the IR library to an earlier version (for example, 2.8.0)! Great video by the way Paul!
Happy Holidays Paul! Another great lesson to pass on to my students. This is a great tutorial because it deals with a real life application, our television remote control. Students tend to show greater interest in lessons that explain real life technology they interact with every day. Also, adding a remote to your project takes things to an entirely new level. Thanks again and Marry Christmas. I have found that electronics is a nice shelter from the craziness of the world. I may not be able to solve the world's problems but I can solve my project problems!
I am legend. I was able to finish this homework. Also, the IRreceiver library has been updated since you did this lesson, and the code you provided threw an error message saying that the code might give unreliable results. I was able to track down the changes and modify the code as required, and got it working without asking others for assistance. Thank you Paul for your lessons and your encouragement. In the past when I have tried to learn programming I would have given up long before this. You are also a legend! Thank you
We are still watching. Lovely videos, thank you, Paul. Newbies will appreciate your detailed method of tutoring more after watching other videos that don't explain anything as neat as you do
I am legend. One of the things that this lesson taught me was the value of looking at the community comments and support below. I too couldn't get the library that the tutorial uses 2.2.3 to work with the commands, as Paul had given them, but you guys helped, and I was able to use the latest IRremote library 3.6.1. and the code changes suggested by you out there in the community kind enough to share. You guys are so cool - all help greatly appreciated Thank you. I'm sure Paul would appreciate the support network being so robust too. Fun to play with the remote control.
Man, this was a journey, but I AM LEGEND! Using the very latest library. Was up til 3am last night and couldn't get any meaningful prints. At a complete loss today, I removed everything from the breadboard, put it all back, and rewired it. Like nothing was ever wrong, it worked! Stole code from various sources since I couldn't find a very concise official documentation... Probably didn't look hard enough.... But after tinkering for a while, seeing what was really needed, and what wasn't, I have a code structure that looks exactly like Teach's, but uses updated commands and gets rid of unnecessary and deprecated lines. Although Teach probably doesn't like us giving away answers, due to the number of folks who have, with recent library versions, had loads of trouble, below is the very simplest version I could make work as expected. There have been a few versions posted in these comments (big thank you to you folks!). Only giving away what's needed to set up the receiver and get a serial mon print. IRRemote library version 3.7.1 (July 2022). NOTE: Oddly, I am only able to read 2 digit hex values from this remote and receiver combo... If anyone can explain that, I would love to know! The code below works for me, though! #include int IRpin = 9; int cmd; int dt=250; void setup() { Serial.begin(9600); IrReceiver.begin(IRpin); } void loop() { while (! IrReceiver.decode()) { } cmd=IrReceiver.decodedIRData.command; Serial.println("HEX: " + String(cmd, HEX)); delay(dt); IrReceiver.resume(); OTHER NOTE: I tried using IrReceiver.decodedIRData.decodedRawData to store in our "cmd" variable, but every remote button would read the same value. It was a lot longer than the 2 digits I was getting, though which was almost interesting...
I was getting FFFFFFFF for every reading. Checked my very short, very simple code 1000 times and even burned up my IR receiver by wiring it backwards while troubleshooting. I finally discovered that the IRRemote library version I was using (4.1.2) has a problem. I reverted back to IRRemote v3.5.2, stole an IR receiver from an old heater, and I'm back in business!
This lesson almost had me giving up on learning to program Arduinos. I uploaded the program and every time I pressed the remote button it gave me a different number...completely different and never repeated. Also, it was a 7 digit number instead of a 5 digit like you got. Then I read about the library version issue. I converted from 2.X to 3.X, thanks to someone's excellent comment below. Same exact result. Then I went back to version 2.8.1 as someone else suggested. Same exact result. Then I went back to 2.2.3 like you used. Same exact result. I checked, rechecked, re-recheck, re-re-rechecked and re-re-re-re-re-rechecked my code. It was exactly the same as yours. Hours trying to research on the internet did not help. Finally, it just happened that a new IR sensor just came in the mail. I had ordered it for a project I'm going to build once I learn Arduino programming a little better. Out of curiosity, I plugged the new one into my circuit and BOOM! it started working perfectly. Each button on the remote is now giving a single, discrete 5-digit number. I can only assume the Elegoo IR sensor was not working properly. Now I need to work on regrowing all the hair I pulled out trying to figure this out.
I have a fix for those of you getting nothing but zeros!! It's the library! I pulled my hair out for hours, then went back to where Paul downloaded his OLDER version (2.2.3). I deleted the newer version, installed 2.2.3 and everything worked properly!!
Paul, I posted a review on Amazon regarding the Arduino mega 2560 and in the comments I mentioned your lessons, hopefully this will get more subscribers.
LEGEND ! oooh loving this one. mapped it out a treat. Cut & paste from the serial monitor was a handy method ... I noticed my spare TV controllers created a HEX signal too. Very interesting. Most excellent video as always. Thank you.
I am legend. I have completed the homework as assigned. Thank you once again for the great lesson. My knowledge and experience with the Arduino just keeps growing. Thanks for all that you do Paul. You are one of the greats.
Wow, finally got it working, libraries are updated and commands also updated, but i did what you taught us to debug one thing at a time. Thank you Paul you are still "LEGEND"!!!
Thank you so much for making a refreshed tutorial I've learned many Arduino from you and I've been in countless electronics competitions thanks to your knowledge. also I got an offer to teach at my high school which became my first job. I wish for you to have THE BEST DAY for giving this information for free. I really don't know what or, where I am now if I didn't watch your Arduino tutorials 3 years ago. this really means a lot to me. I can't stop thanking you :D.
With the amount of time that has passed since this lessons upload and now, there have been many changes to libraries and things. I spent three frustrating days on this and somewhat have it working but most of the commands from the library are very different. As frustrating as it was, it helped me learn a lot, both through practice as well as all the reading and research I did while figuring it out.
I'm LEGEND! I cleaned it up a little by saving the Serial.println until AFTER all the if statements. Saves a bit of typing and keeps the size down a bit. Thanks for the lessons, Paul!
hi Paul for some reason my readings on the serial monitor are just FFFFFF not sure if it's my remote or the irrecv, but overall I have truly been educated on this channel, lots of gratitude for your lessons in this Arduino series
@@ouicmoijim3549 Change to an older library, 02.8 will work with Paul's commands. FYI, I had the same problem when I first rand Paul's program. Good Luck!!
Hi Paul. I came back to this lesson and several others to help my son with a project. It is great to see all the new comments and all the interesting feedback. Thanks again!
@@paulmcwhorter Your passion to ice coffee seems to be almost unrealistic so I offer you a dose of freshing ice coffee☺️ cheers! 🙂🥤And 'kiitos' in finnish language is 'thanks' 🙂
Another great lesson, Paul. I did the homework without going to the next lesson. Instead of using a bunch of if statements, I used a switch statement. The default case prints, "I didn't get that...." if it does not understand a button press.
i was a victim of software update, so, none of the code shown here worked with updated IR library.. Had to figure out how the new code worked. I did not have a remote or IR receiver.. bought the IR receiver from amazon.. stole an old tv remote and got going.. happy that i was able to do that and stay with the lesson.. (i had to drop the Humidity and temp lesson because of the same SW update issue i think..) i will go back and figure out a way to make that work too.. But, yes Paul, you made me think... Thank you for all your efforts. I see that I am 3 years late, and you are onto new video lessons.. eager to join you there.. after i get to the end of this series.. till then adios...
Hi Paul, "I Am Legend". You have spoken about the power of Arduinos. Well, this tutorial has given me a glimpse into the world of possibilities I now have at my finger tips to control the magic of IR. I am so excited to get started on my homework! Thank you so much for your knowledge of IR and the beautiful way you share it. Your disastrous episode with your "gas station" coffee, reminded me of a marquee along side a southwest Texas highway in front of a truck stop several years ago. The marquee was too small to hold all the words the sign was intended to convey to the passing truckers.. The last line of the marque read " DIESEL FRIED CHICKEN". Paul, that scrumptious chicken would have gone well your "gas station" coffee.
I'm just getting started on adding my Arduino remote to a sound sensor circuit. I'm creating a box to control some lights that will flash with music, but also go into other sequences when called up by the remote. I'll keep you posted! Thanks for all your had work on this!
I am legend, I had a few issues getting this code to work with the latest library version. Had to downgrade to an earlier version to work. Another great video Paul.
After the Stranahan's, I got a little wild and decided to play around. I dug out the LCD Display and calculator code from Lesson 48 and made an IR remote calculator with an LCD display.
It's good to see ya after a long time. Wonderful tutorial. Wanna see more interesting projects like this! God bless you for doing such an amazing work, for the students from all over the world..!
I need to watch this video over and over again fully understand what is happing here. I must say again, you are the greatest legend in Arduino Teacher for me. My request to you that you make another new session about Arduino projects. I guess your 68 videos are primary level projects and programming. We need a little advance level after finishing your 68 classes. Where we go then? I would say, you make another 32 classes about Arduino advanced level projects the basis of your 68 videos. Then your 100 videos will complete us a Arduino programmar.
thank you! i'm doing a project for school making a box that opens using a remote control. it's my second or third arduino and your tutorials are really helpful!
You most likely saved me regarding a college assignment I have haha. So far got 100% on everything, your videos playing their part in that. Arduino and Microcontrollers are definitely things I enjoy, will for sure invest time into personal projects and things.
Just a heads up with the newer version of this library the IR.decode does NOT work. I got the message: "warning: 'bool IRrecv::decode(decode_results*)' is deprecated: Please use IrReceiver.decode() without a parameter and IrReceiver.decodedIRData. . [-Wdeprecated-declarations] while(IR.decode(&cmd)==0) { }" So I used: "while(IrReceiver.decode()==0) { }" and it compiled. I use library version 4.1.2
I've been with you since lesson 1. I really appreciate the way you go in depth to help us learn so much more than just what we need to do, but why we're doing it. I always do my homework, I usually throw in a few extra challenges for myself when your lessons inspire me to do so. I never have commented since the videos are a few years old, but now that I see how many people are still actively involved I wish I'd been commenting all along. I loved seeing that you also have a site involving Bible studies. I haven't checked it out yet, but I plan to at some point. I'm actually working on a book, slowly, that will hopefully help inspire people to read The Bible for themselves. The book, if I ever finish it, will address several widely taught topics that scripture teaches very differently from the mainstream views. I believe that too many teachers just repeat the scriptures that have been ascribed to the same views they've supported their whole lives. Instead we should be searching out the scriptures for ourselves to find out what God is teaching us and adjust our beliefs accordingly. Just like Arduino and other electronic devices can seem beyond the average person's understanding until they jump in and spend some time with them. God's word can feel out of reach for many, but nothing is more worthy of our time and effort than finding out the truth about why we exist, and what awaits us once we find the truth and live our lives according to those findings. I, like many others, would love to see you continue this series with many of the other peripherals included in The Most Complete Starter Kit. I have the set that includes the Mega 2560, but I believe the Complete Uno kit has all of the same attachments. We're ALL holding our breath waiting to see if you upload more lessons for our Arduinos while we wait for the price of the Raspberry Pi to come back down to earth, SCHHHHHHHH... Boom!
I used the Release 3.3 of the IR Remote library, which is not compatible with release 2.2.3 used in the lesson. After some research, I found that the following changes have to be made: 1- It is not necessary to define the IRrecv and the decode_results objects (IR and cmd in the lesson); 2 - In the setup() function, the IR.enableIRIn() command is replaced with the IrReceiver.begin(IRpin,ENABLE_LED_FEEDBACK) or the IrReceiver.begin(IRpin,DISABLE_LED_FEEDBACK) depending on if you want a LED feedback from the Arduino board. 3 - In the loop function the condition IR.decode(&cmd)==0 in the waiting cycle is replaced by IrReceiver.decode()==0 4 - The contents of cmd.value is in IrReceiver.decodedIRData.decodedRawData. Hence, the command Serial.print(cmd.value,HEX) must be replaced with Serial.print(IrReceiver.decodedIRData.decodedRawData,HEX) 5 - The codes of the buttons are different. In the new release, the bits are reversed. Each code has 4 bytes. The 4 least significant bytes are the same for all buttons. They are all equal to 0xFF00. Since the codes of release 2.2.3 are bit reversed, their 2 most significant bytes are 0 and the codes seem to have 3 bytes. After these changes, I could replicate the lesson and do the homework. In the homework, I have removed the 4 LSB because they are the same for all buttons. I also reversed the code bits to compare with the ones of the lesson. Finally, the IR receiver is not totally responsive. Sometimes it misses a code or gives the wrong one.
you are a lifesaver, thank you!! Agreed, I keep getting bad codes as well. The series has been great until now so I think to keep my sanity I will stop here and move on to python!!!
yes noticed the same, quite a mess but it is very easy to revert to a previous version from the library manager for the sake of the tutorial. And very poor response and erratic, sometimes better then other times, important to tune the delay... found 500 works better.
Best projectttt..... I'm sooooo happy you did this. I waited for it. You are my best teacher!!! Please consider doing a project with Bluetooth, a motion sensor (that can give off an alarm when quail birds visit a rice farm) and please control a device over the internet. GOD BLESS YOU SIRRR!!!!!
My Elegoo remote only showed F's decoded. I ended up using a Github updated code. Sounds strange but it worked with a Sharp TV remote. The rest of Paul's projects worked out great. He is a great instructor 😊
I am legend, I did the homework without you describing it as just an experiment and a small setup sort of thing with intentions to make my commands and functions easier and faster with this sensor. Thanks a lot and I really like your videos. 😄
• 16:08 - Every byte of space counts in a microcontroller, so it's better to get used to using a BYTE instead of an INT for pin numbers since you probably aren't going to have more than 256 pins. (You can also use #defines, but unless it's a 64-bit microcontroller, that'll probably just end up using the same amount of SRAM as an INT.) • 22:11 - That's why indentation is important (python makes it mandatory).
I like putting the IR.resume() command at the very first line inside the void loop() I think of it as a command that is used to start the detection-and-decoding of IR signals by the IR sensor. and I'd like to think of the IR.decode(&cmd) as the command that instructs the sensor if the cmd variable already contains an IR signal. Great great lesson Sir Paul. Thank you for this!
If you are having problems with the version 3.0 of the IR libraries (the default versions if installing for the first time), you can always go back and install an earlier version. I went back to Version 2.6.1 and the code worked.
I am Legend. Thanks Sir.. Whenever I complete an assignment, I feel so elated that I got a feeling that I can control anything :)... I know that still lot to learn for me and do. I am very Happy.. Thanks Sir!...
Just watched your video. IN case you were unaware the "FFFFFFFF" that you saw is an indication that you were repeating a button press (if you hold the button down longer than a short while), it is interpreted as you wanting to repeat the button press.
I did the homework in a nice way (using functions and creating lists of elements in order to compare them and avoid writing many "if" statements). :) Thank you very much for the amazing tutorials. I followed them from the first one and with them it was much better and easier to get into Arduino (Computer Science Student). Once I finish my exams, I will start to watch the other tutorials that you have because I am sure that they are amazing. :D Again, thank you very much for doing these videos.
for those in 2024, same Issue here with the current 4.4 library, with this code, you need 2.2.3 or some 2.2 library version 1. go to library in IDE arduino 2.type IRremote 3. use drop down to choose version 2.2.3 to downgrade update 4.restart Arduino IDE follow these 4 steps and you will be able to read what is on the video, with this exact code
I AM LEGEND. I had a message from the library that the code used is not supported. Downgraded to version 2.6 and it works as shown. I’m glad it’s not a bigger remote with more buttons ;-)
*If you're using version 3.01 of the IRremote library:* #include int RECV_PIN = 9; void setup() { Serial.begin(9600); IrReceiver.begin(RECV_PIN, ENABLE_LED_FEEDBACK); // Start the receiver } void loop() { while (IrReceiver.decode()==0) { } Serial.println(IrReceiver.decodedIRData.decodedRawData, HEX); delay(250); IrReceiver.resume(); // Receive the next value }
This does not work with the latest IRremote library. Because of the web page you mentioned I was able to use an earlier version 2.6.1. While I was struggling to get this working I looked at many tutorials and yours was by far the easiest to follow. Initially I thought you were being over simplistic and slow and dismissed your video. I was so wrong, now I am thankful and will watch more of your tutorials. I am 62 years old and have just started on my arduino journey. Never too old to learn new things. :-) Liked and subscribed.
Mr Paul McWhorter You are a GOD!!!! Thank you so much now I can resume working on my arduino robot car project because I was stuck on this for a very loooong time!!!! also instead of an if statement you guys should use the switch case statement and it s easier and faster.
Great videos the best ive seen i am trying to do some projects for my car and your tutorials are helping me learn Arduino and develop my projects thanks.
Hello Paul. Yes I did the homework using a for loop for every button. I expect you have a neater way. Just seen your preview on the robot car. Looks interesting. Have a kit on order. Thanks for all the lessons.
Great video i use these videos to help with diffrent projects at a time I'm thinking about just going through all of them and completing them all soon after this project anyways thanks for the great video
Love your videos. thank you! I have several of these remotes and IR modules but have done nothing with them yet. I think I'll start building some things now.
Thanks! Great video! Also, the comments here were helpful too. e.g. some of the commands are deprecated with the older library - found that from comments below. (current library v3.0.1 as of now) My 2 cents in case it helps anyone..... I found out the remote that comes with this kit is kinda junky with very poor inconsistent results even at only a few feet away, but my old TV remote works MUCH better with no misses, no lag or delays and that's from about 20-30 feet away. That's IR for you I guess, good for small fun projects.
I am legend. Well that was interesting a bit laborious but I guess telling us were we could include a library wouldn't be so much fun. Roll on the next lesson!
Same problem without the burn. Reverted to and seems to work. Got a deprecated msg on compile first time. Also am using my TV remote to test values and ensure the remote receiver is working. Did the same thing with my Crunchlabs IR Turret robot. Cool.
Thank you for not editing out your mistakes. I learn a lot by just watching them pop up and you figuring out what they are and correcting them.
Glad to help
Paul -- I am so grateful to you for making all these great lessons. The IR sensor is really fun. I listen to every single one of your videos all the way through. You are LEGEND!! P.S. Agree that gas station coffee is not as good as homemade. For students - the library has been changed since this video was made. You have to download the older library that Paul uses.
I did my homework and I have come all the way through lesson number one; Paul, your lessons are pretty darling. Long live Paul!.... fan from Ethiopia
Only a few number of people are watching your videos :(
Remember one thing grandpa,u are sharing a lot of knowledge to us, and we are very grateful :)
Grandpa?
@@Me-su6bx is there the aliexpress in india?
For everyone who got a strange error regarding a "deprecated" function, try switching the IR library to an earlier version (for example, 2.8.0)!
Great video by the way Paul!
thanks for this Justin, my project just wouldn't work!
thanks. didn't read your comment earlier. After figuring out it for myself, read your comment.
yoo man thank you so much I kept getting ffffff and I thought maybe the hardwrae was faulty
Great tip - thanks a lot :)
The amount of knowledge you’ve been sharing with us is impeccable!
More to come!
Happy Holidays Paul! Another great lesson to pass on to my students. This is a great tutorial because it deals with a real life application, our television remote control. Students tend to show greater interest in lessons that explain real life technology they interact with every day. Also, adding a remote to your project takes things to an entirely new level. Thanks again and Marry Christmas. I have found that electronics is a nice shelter from the craziness of the world. I may not be able to solve the world's problems but I can solve my project problems!
I forgot to say "I am legend" (with a small "l" due to a lot of extra work due to error messages in order to make it work properly)
I am legend. I was able to finish this homework. Also, the IRreceiver library has been updated since you did this lesson, and the code you provided threw an error message saying that the code might give unreliable results. I was able to track down the changes and modify the code as required, and got it working without asking others for assistance. Thank you Paul for your lessons and your encouragement. In the past when I have tried to learn programming I would have given up long before this. You are also a legend! Thank you
can you please upload the code of receiving th ir signals
@@gairikdhar5175 #include
const byte IR_RECEIVE_PIN = 10;
void setup()
{
Serial.begin(115200);
Serial.println("IR Receive test");
IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);
}
void loop()
{
if (IrReceiver.decode())
{
Serial.println(IrReceiver.decodedIRData.command, HEX);
delay(500);
IrReceiver.resume();
}
}
//upload IRremote.h to 4.1.2, the accuracy is waaay better !))
We are still watching. Lovely videos, thank you, Paul. Newbies will appreciate your detailed method of tutoring more after watching other videos that don't explain anything as neat as you do
I am legend. One of the things that this lesson taught me was the value of looking at the community comments and support below. I too couldn't get the library that the tutorial uses 2.2.3 to work with the commands, as Paul had given them, but you guys helped, and I was able to use the latest IRremote library 3.6.1. and the code changes suggested by you out there in the community kind enough to share. You guys are so cool - all help greatly appreciated Thank you. I'm sure Paul would appreciate the support network being so robust too.
Fun to play with the remote control.
Man, this was a journey, but I AM LEGEND! Using the very latest library. Was up til 3am last night and couldn't get any meaningful prints. At a complete loss today, I removed everything from the breadboard, put it all back, and rewired it. Like nothing was ever wrong, it worked! Stole code from various sources since I couldn't find a very concise official documentation... Probably didn't look hard enough.... But after tinkering for a while, seeing what was really needed, and what wasn't, I have a code structure that looks exactly like Teach's, but uses updated commands and gets rid of unnecessary and deprecated lines.
Although Teach probably doesn't like us giving away answers, due to the number of folks who have, with recent library versions, had loads of trouble, below is the very simplest version I could make work as expected. There have been a few versions posted in these comments (big thank you to you folks!). Only giving away what's needed to set up the receiver and get a serial mon print. IRRemote library version 3.7.1 (July 2022).
NOTE: Oddly, I am only able to read 2 digit hex values from this remote and receiver combo... If anyone can explain that, I would love to know! The code below works for me, though!
#include
int IRpin = 9;
int cmd;
int dt=250;
void setup() {
Serial.begin(9600);
IrReceiver.begin(IRpin);
}
void loop() {
while (! IrReceiver.decode()) {
}
cmd=IrReceiver.decodedIRData.command;
Serial.println("HEX: " + String(cmd, HEX));
delay(dt);
IrReceiver.resume();
OTHER NOTE:
I tried using IrReceiver.decodedIRData.decodedRawData to store in our "cmd" variable, but every remote button would read the same value. It was a lot longer than the 2 digits I was getting, though which was almost interesting...
This is going to be a great series. I've been working OLED displays and PIR sensors and this should work well with this IR pad. Have a great week.
I was getting FFFFFFFF for every reading. Checked my very short, very simple code 1000 times and even burned up my IR receiver by wiring it backwards while troubleshooting. I finally discovered that the IRRemote library version I was using (4.1.2) has a problem. I reverted back to IRRemote v3.5.2, stole an IR receiver from an old heater, and I'm back in business!
I'm glad you said that
This lesson almost had me giving up on learning to program Arduinos. I uploaded the program and every time I pressed the remote button it gave me a different number...completely different and never repeated. Also, it was a 7 digit number instead of a 5 digit like you got. Then I read about the library version issue. I converted from 2.X to 3.X, thanks to someone's excellent comment below. Same exact result. Then I went back to version 2.8.1 as someone else suggested. Same exact result. Then I went back to 2.2.3 like you used. Same exact result. I checked, rechecked, re-recheck, re-re-rechecked and re-re-re-re-re-rechecked my code. It was exactly the same as yours. Hours trying to research on the internet did not help. Finally, it just happened that a new IR sensor just came in the mail. I had ordered it for a project I'm going to build once I learn Arduino programming a little better. Out of curiosity, I plugged the new one into my circuit and BOOM! it started working perfectly. Each button on the remote is now giving a single, discrete 5-digit number. I can only assume the Elegoo IR sensor was not working properly. Now I need to work on regrowing all the hair I pulled out trying to figure this out.
Thanks, I also have this issue. Always getting different results when pressing the same button. Which IR sensor did you get?
I have a fix for those of you getting nothing but zeros!! It's the library!
I pulled my hair out for hours, then went back to where Paul downloaded his OLDER version (2.2.3). I deleted the newer version, installed 2.2.3 and everything worked properly!!
Thanks it worked!
Thank you for saving me a lot of time.
You are a hero
Thanks for that. I was getting a message to use "decode()" but couldn't make it work.
I struggled with this too! I found that I had to use quotation marks around the library name rather than the
I am legend, not bad for a 69 year old. Too cold in N.Z for iced coffee, as below zero here, red wine works.
Great series Paul.
I don't even watch any other arduino videos anymore. The risk/reward benefit just doesn't compare to this man's consistency.
Paul, I posted a review on Amazon regarding the Arduino mega 2560 and in the comments I mentioned your lessons, hopefully this will get more subscribers.
LEGEND ! oooh loving this one. mapped it out a treat. Cut & paste from the serial monitor was a handy method ... I noticed my spare TV controllers created a HEX signal too. Very interesting. Most excellent video as always. Thank you.
LEGEND!
I am legend. I have completed the homework as assigned. Thank you once again for the great lesson. My knowledge and experience with the Arduino just keeps growing. Thanks for all that you do Paul. You are one of the greats.
Paul, you are a true legend. Words cant describe how much these tutorials have helped me make whatever I want. THANK YOUUUUUUU!!!!!!!!!
Great to hear!
Hooked a brother up with these tutorials. You're an amazing teacher. Thanks Paul :)
I am legend. This is the first time I've been able to actually do all the homework before the next session. Life is good.
It's getting more interesting every time ... and I am a legend, but still humble ... unfortunately I see these lovely series comming to an end ...
I am legend! You really are a gifted teacher. I haven't been bored at all and your enthusiasm for the subject is contagious!
I AM LEGEND .So far your the best teacher i have come across that makes Arduino projects easy👌👌
Thanks!
Wow, really appreciate that. Thanks!
I was literally wondering if this was possible yesterday!
I am only on lesson 20, but I look forward to this one!!
Wow, finally got it working, libraries are updated and commands also updated, but i did what you taught us to debug one thing at a time. Thank you Paul you are still "LEGEND"!!!
Did you get it to work by using the updated library commands? Or did you downgrade your library and use the commands that Paul used in the video?
Thank you so much for making a refreshed tutorial I've learned many Arduino from you and I've been in countless electronics competitions thanks to your knowledge. also I got an offer to teach at my high school which became my first job. I wish for you to have THE BEST DAY for giving this information for free. I really don't know what or, where I am now if I didn't watch your Arduino tutorials 3 years ago. this really means a lot to me. I can't stop thanking you :D.
Did the homework, been frustrated as not been able to get my PMcW fix due to nonsense distractions. Back now and loving it even more.
With the amount of time that has passed since this lessons upload and now, there have been many changes to libraries and things. I spent three frustrating days on this and somewhat have it working but most of the commands from the library are very different.
As frustrating as it was, it helped me learn a lot, both through practice as well as all the reading and research I did while figuring it out.
Post the code plzz
I'm LEGEND! I cleaned it up a little by saving the Serial.println until AFTER all the if statements. Saves a bit of typing and keeps the size down a bit. Thanks for the lessons, Paul!
Nice work!
hi Paul for some reason my readings on the serial monitor are just FFFFFF not sure if it's my remote or the irrecv, but overall I have truly been educated on this channel, lots of gratitude for your lessons in this Arduino series
I have the same problem! Did you found the solution?
@@ouicmoijim3549 Change to an older library, 02.8 will work with Paul's commands. FYI, I had the same problem when I first rand Paul's program. Good Luck!!
Hi Paul. I came back to this lesson and several others to help my son with a project. It is great to see all the new comments and all the interesting feedback. Thanks again!
Glad it was helpful!
Kiitos!
Wow, thanks Tropo, this is a real encouragement. Also, glad you enjoyed the videos of Pius singing. Be blessed.
@@paulmcwhorter Your passion to ice coffee seems to be almost unrealistic so I offer you a dose of freshing ice coffee☺️ cheers! 🙂🥤And 'kiitos' in finnish language is 'thanks' 🙂
We are grateful Paul, thank you. I've jumped a few lessons but now need to find your hexadecimal tutorial.
Another great lesson, Paul. I did the homework without going to the next lesson. Instead of using a bunch of if statements, I used a switch statement. The default case prints, "I didn't get that...." if it does not understand a button press.
i was a victim of software update, so, none of the code shown here worked with updated IR library.. Had to figure out how the new code worked. I did not have a remote or IR receiver.. bought the IR receiver from amazon.. stole an old tv remote and got going.. happy that i was able to do that and stay with the lesson.. (i had to drop the Humidity and temp lesson because of the same SW update issue i think..) i will go back and figure out a way to make that work too.. But, yes Paul, you made me think... Thank you for all your efforts. I see that I am 3 years late, and you are onto new video lessons.. eager to join you there.. after i get to the end of this series.. till then adios...
you are real change maker to the world , look how old are you but despite your age look what you do ,great job uncle
This lesson could not have come at a better time. The day after I completed it, I was able to debug a problem with the remote to my treadmill.
Hi Paul, "I Am Legend". You have spoken about the power of Arduinos. Well, this tutorial has given me a glimpse into the world of possibilities I now have at my finger tips to control the magic of IR. I am so excited to get started on my homework! Thank you so much for your knowledge of IR and the beautiful way you share it.
Your disastrous episode with your "gas station" coffee, reminded me of a marquee along side a southwest Texas highway in front of a truck stop several years ago. The marquee was too small to hold all the words the sign was intended to convey to the passing truckers.. The last line of the marque read " DIESEL FRIED CHICKEN". Paul, that scrumptious chicken would have gone well your "gas station" coffee.
I'm just getting started on adding my Arduino remote to a sound sensor circuit. I'm creating a box to control some lights that will flash with music, but also go into other sequences when called up by the remote. I'll keep you posted! Thanks for all your had work on this!
This is amazing. It opens up new vistas for all. You are the superstar.
I am legend....Thank you Paul for making so many legends and creating this legendaryyyy series
I am legend, I had a few issues getting this code to work with the latest library version. Had to downgrade to an earlier version to work.
Another great video Paul.
Great to hear!
I am a Legend, I also included LEDs to turn it on and off with the remote, Thank you so much Mr. Paul for this great tutorial
LEGEND!
After the Stranahan's, I got a little wild and decided to play around. I dug out the LCD Display and calculator code from Lesson 48 and made an IR remote calculator with an LCD display.
Okay! I am Legend, having used a backdated library, everything is working great, now, on to the next lesson!!! Thanks, Paul!
LEGEND!
It's good to see ya after a long time. Wonderful tutorial. Wanna see more interesting projects like this! God bless you for doing such an amazing work, for the students from all over the world..!
I love your videos man. I’m working on an IR project now and this is clutch. Thank you!
I am Legend all 17 commands are now fully operational. Thank your Mr Paul 🤓
Nice work!
Thanks a lot for your lessons. Very easy to understand steps and terms even if you are a beginner in text coding.
I need to watch this video over and over again fully understand what is happing here. I must say again, you are the greatest legend in Arduino Teacher for me. My request to you that you make another new session about Arduino projects. I guess your 68 videos are primary level projects and programming. We need a little advance level after finishing your 68 classes. Where we go then? I would say, you make another 32 classes about Arduino advanced level projects the basis of your 68 videos. Then your 100 videos will complete us a Arduino programmar.
Thanks Paul! Always great trainings. did the HW " I am legend" I am so glad that you teach. You have a great gift.
Fantastic!
Great lesson. Glad you were getting the same intermittent glitchy results and not just me.
thank you! i'm doing a project for school making a box that opens using a remote control. it's my second or third arduino and your tutorials are really helpful!
You most likely saved me regarding a college assignment I have haha. So far got 100% on everything, your videos playing their part in that. Arduino and Microcontrollers are definitely things I enjoy, will for sure invest time into personal projects and things.
Just a heads up with the newer version of this library the IR.decode does NOT work. I got the message: "warning: 'bool IRrecv::decode(decode_results*)' is deprecated: Please use IrReceiver.decode() without a parameter and IrReceiver.decodedIRData. . [-Wdeprecated-declarations]
while(IR.decode(&cmd)==0) { }" So I used: "while(IrReceiver.decode()==0) { }" and it compiled.
I use library version 4.1.2
I've been with you since lesson 1. I really appreciate the way you go in depth to help us learn so much more than just what we need to do, but why we're doing it. I always do my homework, I usually throw in a few extra challenges for myself when your lessons inspire me to do so.
I never have commented since the videos are a few years old, but now that I see how many people are still actively involved I wish I'd been commenting all along.
I loved seeing that you also have a site involving Bible studies. I haven't checked it out yet, but I plan to at some point. I'm actually working on a book, slowly, that will hopefully help inspire people to read The Bible for themselves. The book, if I ever finish it, will address several widely taught topics that scripture teaches very differently from the mainstream views. I believe that too many teachers just repeat the scriptures that have been ascribed to the same views they've supported their whole lives. Instead we should be searching out the scriptures for ourselves to find out what God is teaching us and adjust our beliefs accordingly. Just like Arduino and other electronic devices can seem beyond the average person's understanding until they jump in and spend some time with them. God's word can feel out of reach for many, but nothing is more worthy of our time and effort than finding out the truth about why we exist, and what awaits us once we find the truth and live our lives according to those findings.
I, like many others, would love to see you continue this series with many of the other peripherals included in The Most Complete Starter Kit. I have the set that includes the Mega 2560, but I believe the Complete Uno kit has all of the same attachments. We're ALL holding our breath waiting to see if you upload more lessons for our Arduinos while we wait for the price of the Raspberry Pi to come back down to earth, SCHHHHHHHH... Boom!
Excellent. Check out the Bible videos . . . sounds like we have a similar perspective on things.
Hi Paul, as always, great lesson, thank you. I did the homework by using the switch..case command, made it very easy.
I used the Release 3.3 of the IR Remote library, which is not compatible with release 2.2.3 used in the lesson. After some research, I found that the following changes have to be made:
1- It is not necessary to define the IRrecv and the decode_results objects (IR and cmd in the lesson);
2 - In the setup() function, the
IR.enableIRIn()
command is replaced with the
IrReceiver.begin(IRpin,ENABLE_LED_FEEDBACK)
or the
IrReceiver.begin(IRpin,DISABLE_LED_FEEDBACK)
depending on if you want a LED feedback from the Arduino board.
3 - In the loop function the condition
IR.decode(&cmd)==0
in the waiting cycle is replaced by
IrReceiver.decode()==0
4 - The contents of
cmd.value
is in
IrReceiver.decodedIRData.decodedRawData.
Hence, the command
Serial.print(cmd.value,HEX)
must be replaced with
Serial.print(IrReceiver.decodedIRData.decodedRawData,HEX)
5 - The codes of the buttons are different. In the new release, the bits are reversed.
Each code has 4 bytes. The 4 least significant bytes are the same for all buttons. They are all equal to 0xFF00. Since the codes of release 2.2.3 are bit reversed, their 2 most significant bytes are 0 and the codes seem to have 3 bytes.
After these changes, I could replicate the lesson and do the homework. In the homework, I have removed the 4 LSB because they are the same for all buttons. I also reversed the code bits to compare with the ones of the lesson.
Finally, the IR receiver is not totally responsive. Sometimes it misses a code or gives the wrong one.
you are a lifesaver, thank you!! Agreed, I keep getting bad codes as well. The series has been great until now so I think to keep my sanity I will stop here and move on to python!!!
THANKS4THIS!!
yes noticed the same, quite a mess but it is very easy to revert to a previous version from the library manager for the sake of the tutorial. And very poor response and erratic, sometimes better then other times, important to tune the delay... found 500 works better.
Loved This series so much!! Thank you so much for everything so far... Would it be possible for you to do a RFID reader tutorial at some point ??
id love an RFID Reader tutorial :D
Best projectttt.....
I'm sooooo happy you did this. I waited for it. You are my best teacher!!!
Please consider doing a project with Bluetooth, a motion sensor (that can give off an alarm when quail birds visit a rice farm) and please control a device over the internet.
GOD BLESS YOU SIRRR!!!!!
My Elegoo remote only showed F's decoded. I ended up using a Github updated code. Sounds strange but it worked with a Sharp TV remote. The rest of Paul's projects worked out great. He is a great instructor 😊
I am legend, I did the homework without you describing it as just an experiment and a small setup sort of thing with intentions to make my commands and functions easier and faster with this sensor. Thanks a lot and I really like your videos. 😄
I am legend and so are you. Great work you're doing here, keep it up.
• 16:08 - Every byte of space counts in a microcontroller, so it's better to get used to using a BYTE instead of an INT for pin numbers since you probably aren't going to have more than 256 pins. (You can also use #defines, but unless it's a 64-bit microcontroller, that'll probably just end up using the same amount of SRAM as an INT.)
• 22:11 - That's why indentation is important (python makes it mandatory).
White space is ignored in C++, and I think the guy can program, he isn't watching your video.
I like putting the IR.resume() command at the very first line inside the void loop()
I think of it as a command that is used to start the detection-and-decoding of IR signals by the IR sensor.
and I'd like to think of the IR.decode(&cmd) as the command that instructs the sensor if the cmd variable already
contains an IR signal.
Great great lesson Sir Paul.
Thank you for this!
P.S. I am Legend
Takk!
WOW, thanks once again. Appreciate all your help!
Thank you for a good lecture. Btw, the latest IRremote library (version 3.0) has deprecated many of the functions from the sketch.
I am printing a deprecated message for the (&cmd) any suggestion where I need to go here?
@@j.davidslaugh5761 remove the "&cmd" from the code.
@@tobinsexton6246 well, we tried . does not work
If you are having problems with the version 3.0 of the IR libraries (the default versions if installing for the first time), you can always go back and install an earlier version. I went back to Version 2.6.1 and the code worked.
I am Legend. Thanks Sir.. Whenever I complete an assignment, I feel so elated that I got a feeling that I can control anything :)... I know that still lot to learn for me and do. I am very Happy.. Thanks Sir!...
Just watched your video. IN case you were unaware the "FFFFFFFF" that you saw is an indication that you were repeating a button press (if you hold the button down longer than a short while), it is interpreted as you wanting to repeat the button press.
I did the homework in a nice way (using functions and creating lists of elements in order to compare them and avoid writing many "if" statements). :)
Thank you very much for the amazing tutorials. I followed them from the first one and with them it was much better and easier to get into Arduino (Computer Science Student). Once I finish my exams, I will start to watch the other tutorials that you have because I am sure that they are amazing. :D
Again, thank you very much for doing these videos.
for those in 2024, same Issue here with the current 4.4 library, with this code, you need 2.2.3 or some 2.2 library version
1. go to library in IDE arduino
2.type IRremote
3. use drop down to choose version 2.2.3 to downgrade update
4.restart Arduino IDE
follow these 4 steps and you will be able to read what is on the video, with this exact code
I am legend. Completed the homework. Excited on what we're going to do with this.
I AM LEGEND. I had a message from the library that the code used is not supported. Downgraded to version 2.6 and it works as shown. I’m glad it’s not a bigger remote with more buttons ;-)
LEGEND!
Thanks again Paul....Amazing possibilities with IR technology....Had some issues downloading the library but ..I AM LEGEND!
*If you're using version 3.01 of the IRremote library:*
#include
int RECV_PIN = 9;
void setup()
{
Serial.begin(9600);
IrReceiver.begin(RECV_PIN, ENABLE_LED_FEEDBACK); // Start the receiver
}
void loop()
{
while (IrReceiver.decode()==0)
{
}
Serial.println(IrReceiver.decodedIRData.decodedRawData, HEX);
delay(250);
IrReceiver.resume(); // Receive the next value
}
thanks a lot!
Thank you Mr.McWhorter, you explain so easily!
Greetings Paul, I always enjoy your lessons.
Ciao
Glad to hear that!
An updated version of this may be needed as IRremote library has updated from 2.0 to 3.0 and things have changed.
Maybe that explains why I can't get this to work
That was a really nice lesson Paul and looks like it will have some good uses
This does not work with the latest IRremote library.
Because of the web page you mentioned I was able to use an earlier version 2.6.1.
While I was struggling to get this working I looked at many tutorials and yours was by far the easiest to follow.
Initially I thought you were being over simplistic and slow and dismissed your video.
I was so wrong, now I am thankful and will watch more of your tutorials.
I am 62 years old and have just started on my arduino journey.
Never too old to learn new things. :-)
Liked and subscribed.
Mr Paul McWhorter You are a GOD!!!! Thank you so much now I can resume working on my arduino robot car project because I was stuck on this for a very loooong time!!!! also instead of an if statement you guys should use the switch case statement and it s easier and faster.
Great videos the best ive seen i am trying to do some projects for my car and your tutorials are helping me learn Arduino and develop my projects thanks.
Hello Paul. Yes I did the homework using a for loop for every button.
I expect you have a neater way. Just seen your preview on the robot car.
Looks interesting. Have a kit on order. Thanks for all the lessons.
Great video i use these videos to help with diffrent projects at a time I'm thinking about just going through all of them and completing them all soon after this project anyways thanks for the great video
Hi Sir, watching from the Phils. Thanks for your tutorials. :)
Welcome!
I am legend. This is the best way to go thru the Covid-19 lock down.
100% like me with all the tabs open and hope there's no more gas station coffee another great video always helpful and useful
Great teaching and clear. I stay the whole night to watch your tutorials, please could program a remote control of a drone ? And thanks
it's simple after you explain. thank you very much!
I am legend, although I did have to reference the Arduino website for the new library command syntax. Thank you Paul for your fun videos 😊
I am legend. Glad I finally caught up with all the videos.
Love your videos. thank you!
I have several of these remotes and IR modules but have done nothing with them yet.
I think I'll start building some things now.
"I am legend"
btw You're an ULTRA LEGEND
Thanks! Great video! Also, the comments here were helpful too. e.g. some of the commands are deprecated with the older library - found that from comments below. (current library v3.0.1 as of now) My 2 cents in case it helps anyone..... I found out the remote that comes with this kit is kinda junky with very poor inconsistent results even at only a few feet away, but my old TV remote works MUCH better with no misses, no lag or delays and that's from about 20-30 feet away. That's IR for you I guess, good for small fun projects.
I am legend.
Well that was interesting a bit laborious but I guess telling us were we could include a library wouldn't be so much fun.
Roll on the next lesson!
Same problem without the burn. Reverted to and seems to work. Got a deprecated msg on compile first time. Also am using my TV remote to test values and ensure the remote receiver is working. Did the same thing with my Crunchlabs IR Turret robot. Cool.