ARDUINO: IR REMOTE CONTROL OF LEDS

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 มิ.ย. 2024
  • Controlling LEDs using remote control and IR sensor
    Subscribe to my channel: bit.ly/2LiMpF0
    Check out my other tutorials involving the use of IR remote control:
    i). IR remote Control of a 5V 4 Channel Relay Module with Arduino: • IR REMOTE CONTROL OF A...
    ii). Remote controlled Robot Car using Arduino: • HOW TO CONTROL 4WD ROB...
    iii).Controlling 28BYJ-48 Stepper Motor using ULN2003 Driver and IR remote: • Controlling 28BYJ-48 S...
    iv). Controlling MP3 player using DFPlayer with IR remote: • IR REMOTE CONTROLED MP...
    =============================================
    Recommended components for this setup
    =============================================
    i)KOOBOOK 2Sets HX1838 NEC Infrared IR Wireless Remote Control Sensor Module IR Receiver Module DIY Kit for arduino: amzn.to/2P5bTpa
    ii) Tolako Infrared Wireless Remote Control IR Kit Controller for Arduino -
    amzn.to/2TJ6GTb
    iii).ELEGOO UNO Project Super Starter Kit with Tutorial and UNO R3 Compatible with Arduino : amzn.to/3440pq7
    For full codes visit the link :
    mytectutor.com/arduino-ir-rem...
    DISCLAIMER: This video description contains affiliate links. If you buy any item using these product links, I may receive a small commission. I would appreciate your support in this way!
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 104

  • @daraghdunn1885
    @daraghdunn1885 4 ปีที่แล้ว +4

    Thank you. This worked for me! I had to revisit my code a few times because of typo's but once corrected it worked perfectly

  • @joelmarkjmj
    @joelmarkjmj ปีที่แล้ว +1

    Thanks bro thanks a lot you are the genuine guy over the internet

  • @manthan14190
    @manthan14190 5 ปีที่แล้ว +1

    Did you try to run this project with external power Supply. Not with laptop or pc usb power. 5 v dc power Supply.

  • @wandersonsilva-fx1cs
    @wandersonsilva-fx1cs 2 ปีที่แล้ว

    Your project is impressive! Teacher it is possible to control 4 leds with attiny and IR remote?

  • @mohamedshameer8629
    @mohamedshameer8629 2 ปีที่แล้ว

    Will the code work with athmel studio as well ?

  • @user-cb7ly2rt7q
    @user-cb7ly2rt7q 5 ปีที่แล้ว +2

    شكرا جزيلا . معلومة مفيدة

  • @step_freeskills101
    @step_freeskills101 ปีที่แล้ว +1

    what is the library used for this, I dont see any IRremote.h but only IRremote.hpp

  • @danielcastiella684
    @danielcastiella684 2 ปีที่แล้ว +1

    Thank u my bro

  • @studyelectrictech1236
    @studyelectrictech1236 6 ปีที่แล้ว +2

    Thanks laoshi

  • @doyouknow3483
    @doyouknow3483 5 ปีที่แล้ว +2

    Very good

  • @thanhphongthich73
    @thanhphongthich73 5 ปีที่แล้ว +1

    thank bro...

  • @shrikantnikam2426
    @shrikantnikam2426 2 ปีที่แล้ว +1

    I what to like your most popular video

  • @c47tejassamant66
    @c47tejassamant66 2 ปีที่แล้ว

    Can we declare a button that will witch off all the leds?

  • @ikuzweaime3574
    @ikuzweaime3574 6 ปีที่แล้ว

    Wel done

  • @afif-tech2673
    @afif-tech2673 3 ปีที่แล้ว +2

    Your awesome, your videos help me a lot to develop my projects.

    • @mytectutor
      @mytectutor  3 ปีที่แล้ว

      Glad to hear it!

  • @melvinedwardsii4282
    @melvinedwardsii4282 3 ปีที่แล้ว +5

    For the newer people watching this, I had to use version 1.0.0 for this to work as expected. Getting the newest version(~3.x) may cause issues

    • @zamightybanana3830
      @zamightybanana3830 3 ปีที่แล้ว +1

      Thank you for the notice

    • @user-iu6kf3zb9s
      @user-iu6kf3zb9s ปีที่แล้ว +1

      I was about to throw my ir reciever and remote into the trash, but you saved it :D

  • @user-vb3fh2jf8z
    @user-vb3fh2jf8z 5 ปีที่แล้ว

    Using the same type of remote and Bizher different codes, one of them

  • @marcelmatovic5485
    @marcelmatovic5485 5 ปีที่แล้ว +1

    thanx much

  • @alonattar3836
    @alonattar3836 5 ปีที่แล้ว +2

    DUDE THANK YOU SO MUCH!!
    you helped me a lot!

    • @mytectutor
      @mytectutor  5 ปีที่แล้ว

      You are welcome..... don't forget to sub and like

  • @personalaccount3332
    @personalaccount3332 4 ปีที่แล้ว

    How to check the ir sensor is working or not

  • @okusitinotahitua1020
    @okusitinotahitua1020 4 ปีที่แล้ว

    thank your Mr Professional

  • @iscanine
    @iscanine 4 ปีที่แล้ว

    it said that case label '16724175' not within a switch statement

  • @thebusinessman7384
    @thebusinessman7384 4 ปีที่แล้ว +3

    i get only 1 code, but we have same controller. I checked it. And random numbers show up. Please help me

    • @PanosDramaGRE
      @PanosDramaGRE 4 ปีที่แล้ว

      you have to get different codes for every button. you just replace them with yours

  • @tohinmahmud3354
    @tohinmahmud3354 4 ปีที่แล้ว

    i don't fined unique code. every time i press a button and its show me different value in every single press . i can not fined appropriate value on serial monitor. please give me a solution.

  • @matheussteinmetz
    @matheussteinmetz 4 หลายเดือนก่อน

    Hi, I have a IR control just like yours and it outputs FFFFFFFF when I press any button. How to solve?

  • @manthan14190
    @manthan14190 6 ปีที่แล้ว

    hello i have done decoding of remote -but on serial monitor some values automatically appears when i press remote button it show me remote code. but after tht some values continuously appears on serial monitor. i think when i press remote button only that time some values should appear only.

    • @mytectutor
      @mytectutor  6 ปีที่แล้ว

      which kind of remote are you using? And then when decoding you should not press the remote button for too long because if you observe in the tutorial when you press the button for long you get some very long numbers that appear continuously yet we are interested in the shorter codes. Please subscribe to my channel

  • @willembarnhoorn4972
    @willembarnhoorn4972 3 ปีที่แล้ว +1

    Hello Mytectutor,
    I can't find on my IDE in File > examples, neither in Sketch > library > Librarymaster > Decode_IR ... cliq ... the screen of the IDE gives on his tab: "mar26a" .. (??) ... but OK.... verify: OK than upload: OK ..... wishfull to the Monitor ( COM5), push a button of the remoter.....NOTHING. :(
    I think that I am close.... however ?

  • @geoduino1233
    @geoduino1233 3 ปีที่แล้ว +5

    every button of my remote writes 0 and what to do?

    • @green_quadrix
      @green_quadrix 3 ปีที่แล้ว

      have you figure it out? cuz i have the same problem😥

    • @geoduino1233
      @geoduino1233 3 ปีที่แล้ว +1

      @@green_quadrix yep. Install the same version of library as shown in the video

    • @green_quadrix
      @green_quadrix 3 ปีที่แล้ว +1

      @@geoduino1233 Thank you so much! its working now!😊

  • @jackbrian5237
    @jackbrian5237 6 ปีที่แล้ว

    Nice explanation..

  • @allrounderdip
    @allrounderdip 3 ปีที่แล้ว

    I got an error message
    IRremote.h: No such file or directory
    p
    lease help me.

  • @shannon5531
    @shannon5531 3 ปีที่แล้ว

    Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"
    C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope
    int RECV_PIN = TKD2; // the pin the IR receiver is connected to
    ^
    exit status 1
    Error compiling for board Arduino/Genuino Uno.
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

  • @ungnhanvaoprofilecuatoi2191
    @ungnhanvaoprofilecuatoi2191 3 ปีที่แล้ว +2

    The function decode(&results)) is deprecated and may not work as expected! Just use decode() - without any parameter.

    • @shantanukudav2148
      @shantanukudav2148 3 ปีที่แล้ว

      It's still not working, inspite of removing &results

  • @alwaysrocks6302
    @alwaysrocks6302 3 ปีที่แล้ว +3

    i tried it with tv remote,but the values are changing even if i pressed the same button

    • @giorgiolelmi8175
      @giorgiolelmi8175 3 ปีที่แล้ว +2

      same

    • @iniyansaravanavel4307
      @iniyansaravanavel4307 2 ปีที่แล้ว

      @@giorgiolelmi8175 then its problem in you reciever.
      i had the same problem.but after i changed my reciever and it worked fine

  • @saeedshakeel2427
    @saeedshakeel2427 3 ปีที่แล้ว

    can you paste your code somewhere we can copy it of, I'm having trouble reading it.

    • @mytectutor
      @mytectutor  3 ปีที่แล้ว

      The code is on my website. Please follow the link provided in the video description.

  • @ibrahimbasheer4319
    @ibrahimbasheer4319 4 ปีที่แล้ว

    what to do my ir remote is not lighting up please help

    • @AiroPlayz
      @AiroPlayz 2 ปีที่แล้ว

      Just get a camera and look form it sorry for replying after 2 years lol

  • @Nojuster
    @Nojuster 3 ปีที่แล้ว

    what resistors are those

    • @BL4D3_420
      @BL4D3_420 ปีที่แล้ว +1

      If you still care 2 years later, they are 1k resistors

    • @Nojuster
      @Nojuster ปีที่แล้ว

      @@BL4D3_420 Thanks man, you came in real clutch

  • @suhaanmahajan5910
    @suhaanmahajan5910 3 ปีที่แล้ว

    can I use a transistor?

  • @micahezracastro1735
    @micahezracastro1735 5 ปีที่แล้ว +1

    There's an error in the #include please help.

    • @mytectutor
      @mytectutor  5 ปีที่แล้ว +2

      make sure u have the IRremote library included in your Arduino IDE.

    • @xc5jie573
      @xc5jie573 5 ปีที่แล้ว

      How will i know if i have IRremote?

    • @KJ7JHN
      @KJ7JHN 4 ปีที่แล้ว

      What I've done to get around this is to download the Arduino-IRremote-master zip from githup, open the folders until i find the IRremote.H. I then select all the files in the folder and compress them into a new zip file. After all that, you can goto, in Arduino IDE, sketch, include library, add.Zip library. Then select the new zip you've made and it automatically adds the .H file to your library list. Seems to work okay. On some .H and .CPP files you'll need to update the paths/dirrectories where some things are found.

  • @ameersabry4933
    @ameersabry4933 6 ปีที่แล้ว +2

    good job Thanks can you send me the code

    • @mytectutor
      @mytectutor  6 ปีที่แล้ว

      please watch the whole video. The code is included.. Don't forget to subscribe too.

    • @isav.2411
      @isav.2411 4 ปีที่แล้ว

      yeh

  • @prokoptamas3009
    @prokoptamas3009 4 ปีที่แล้ว

    where is the libraris link?????

  • @beidouuser8017
    @beidouuser8017 4 ปีที่แล้ว +1

    It says 'TKD2' was not declared in this scope
    Send help pls

    • @animeamv4309
      @animeamv4309 4 ปีที่แล้ว +1

      I know i'm late but if anyone has this issue you have to delete a library called something like "robot ir" i forgot what was it's name

    • @beidouuser8017
      @beidouuser8017 4 ปีที่แล้ว +1

      @@animeamv4309 holy damn
      dont worry its all good now i just reinstalled arduino

    • @animeamv4309
      @animeamv4309 4 ปีที่แล้ว +1

      @@beidouuser8017 okay good

  • @arjunk1456
    @arjunk1456 5 ปีที่แล้ว +6

    ir remote code is giving error

    • @havehalkow
      @havehalkow 5 ปีที่แล้ว +1

      See if you have the IRremote.h library installed, this could be an issue

  • @user-qh7vc7ou8b
    @user-qh7vc7ou8b 5 ปีที่แล้ว +8

    what the heck! it's not working!

    • @aLQuarter
      @aLQuarter 5 ปีที่แล้ว

      it is working for me

    • @stevo7638
      @stevo7638 4 ปีที่แล้ว

      Same

    • @jaysernal8701
      @jaysernal8701 3 ปีที่แล้ว

      @@stevo7638 its working properly

  • @guillermobarragan2831
    @guillermobarragan2831 4 ปีที่แล้ว

    there is an error compiling for my arduino mega 2560

  • @vidhanshukachhwaha2773
    @vidhanshukachhwaha2773 4 ปีที่แล้ว

    Where are the numbers appearing, on which software

  • @listofgames1912
    @listofgames1912 5 ปีที่แล้ว +2

    exit status 1
    IRremote.h: No such file or directory

    • @mytectutor
      @mytectutor  5 ปีที่แล้ว

      You should install the IRremote.h librabry in your Arduino IDE.

    • @prashantgurung9552
      @prashantgurung9552 5 ปีที่แล้ว

      @@mytectutor how to do that

    • @prashantgurung9552
      @prashantgurung9552 4 ปีที่แล้ว +1

      Restaurace u Radka a Filipa thanks

  • @ImNOTfUnnio
    @ImNOTfUnnio 3 ปีที่แล้ว

    How pls help

  • @nxchvs
    @nxchvs 5 ปีที่แล้ว +2

    it isn't working

  • @neojain7174
    @neojain7174 3 ปีที่แล้ว

    decode value is coming 0 and light is not working this is coming too The function decode(&results)) is deprecated and may not work as expected! Just use decode() - without any parameter.

  • @zyadd5089
    @zyadd5089 3 ปีที่แล้ว +1

    #include is giving an error pls help

    • @MemeScope
      @MemeScope 3 ปีที่แล้ว +1

      You have to install a library

  • @angelmorales8793
    @angelmorales8793 5 ปีที่แล้ว

    Can I use with lilypad?

  • @jessadango2629
    @jessadango2629 5 ปีที่แล้ว

    the link cannot be open.pls send me the source code.thanks a lot

    • @mytectutor
      @mytectutor  5 ปีที่แล้ว +1

      u can watch the video upto the end the code is included fully. OR send me your email and i send u the code

    • @cherishtiffanydtv5984
      @cherishtiffanydtv5984 2 ปีที่แล้ว

      ​@@mytectutor can I have too? I can't open also..

  • @UnvaultedYT
    @UnvaultedYT 2 ปีที่แล้ว

    Man I’m trying for three days it doesn’t work what’s the wrong
    He say bool or decode too much, something like that
    Pls I need solve me the problem

  • @MehrdadShirazi007
    @MehrdadShirazi007 3 ปีที่แล้ว

    I wish I could understand your english

  • @afiqhaiqal3443
    @afiqhaiqal3443 4 ปีที่แล้ว

    Please send me a code

  • @bhavaldawda3835
    @bhavaldawda3835 5 ปีที่แล้ว +1

    something is wrong in the code

    • @mytectutor
      @mytectutor  5 ปีที่แล้ว

      What exactly is wrong?

    • @neojain7174
      @neojain7174 3 ปีที่แล้ว

      @@mytectutor The function decode(&results)) is deprecated and may not work as expected! Just use decode() - without any parameter.
      this coming with 0

  • @user-eq8gr8vo7h
    @user-eq8gr8vo7h 3 ปีที่แล้ว

    where is the code

  • @fernandoabdulmaguire1960
    @fernandoabdulmaguire1960 2 ปีที่แล้ว

    no me funciona

  • @user-cy3zx7nr6i
    @user-cy3zx7nr6i 3 ปีที่แล้ว +1

    there is a wrong in code

    • @mytectutor
      @mytectutor  3 ปีที่แล้ว

      Please always be specific about the error you find in the code because as you can see very many people have used this code before and it works fine.

    • @neojain7174
      @neojain7174 3 ปีที่แล้ว

      @@mytectutor The function decode(&results)) is deprecated and may not work as expected! Just use decode() - without any parameter.
      and 0

  • @nshiva2151
    @nshiva2151 3 ปีที่แล้ว

    why you ppl give such a code with so many errors?? what the hell a beginner would do

  • @electorart1337
    @electorart1337 5 ปีที่แล้ว

    download the library online and then use