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

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ค. 2023
  • 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 TH-cam channel page to watch the entire series!
    Get the 3-in-1 Arduino Smart Car and IOT Learning Kit from SunFounder here:
    www.sunfounder.com/products/s...
    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.com/products/a...
    Visit the webpage for this video tutorial on Circuit Basics for wiring diagrams and example code:
    www.circuitbasics.com/arduino...
    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.circuitbasics.com
    Facebook: / circuitbasic
    Twitter: / circuitbasics
    Instagram: / circuitbasics
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @levilabs.
    @levilabs. 2 หลายเดือนก่อน

    this is so underrated this guy deserves 100k subs

  • @heed7496
    @heed7496 6 หลายเดือนก่อน +2

    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?

  • @jaredevans8518
    @jaredevans8518 7 หลายเดือนก่อน

    How can I added double pressing on the buttons?

  • @Dancopymus
    @Dancopymus 3 หลายเดือนก่อน

    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

  • @faithdaphnecaliwliw905
    @faithdaphnecaliwliw905 หลายเดือนก่อน +1

    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?

  • @minskie
    @minskie 22 วันที่ผ่านมา +1

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

  • @darkblender1114
    @darkblender1114 5 หลายเดือนก่อน

    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.

  • @giacomovisone6535
    @giacomovisone6535 10 หลายเดือนก่อน +1

    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 8 หลายเดือนก่อน

      Check your baudrate. It could be a reason

    • @CrazyKZ_productions
      @CrazyKZ_productions 8 หลายเดือนก่อน

      i have the same issue there is no serial output showing up

    • @baconking1423
      @baconking1423 5 หลายเดือนก่อน

      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();
      }
      }

  • @lolidk6196
    @lolidk6196 7 หลายเดือนก่อน +1

    what version of the library are you using? 2.0?

    • @defalt5482
      @defalt5482 6 หลายเดือนก่อน +2

      The newer version needs different code. I can help if u're facing problems

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

    Bravo 👏 👏 et merci ............

  • @Dhanu-bc8pn
    @Dhanu-bc8pn ปีที่แล้ว +1

    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...............

  • @Ansarter
    @Ansarter 8 หลายเดือนก่อน +4

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

  • @WasiManak
    @WasiManak 2 หลายเดือนก่อน

    Hello sir please decode the dc ceiling fan remote

  • @mohammadafdal774
    @mohammadafdal774 5 หลายเดือนก่อน +1

    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 3 หลายเดือนก่อน

      I have the same issue.

    • @Progamer-qi1xd
      @Progamer-qi1xd 17 วันที่ผ่านมา

      listen brother you are using the new library you need to go and downgrade the library from where you can see your IRremote lib👍

  • @jaki1876
    @jaki1876 10 หลายเดือนก่อน +6

    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 8 หลายเดือนก่อน +1

      Hi I have the same problem with permanent code FFFFFF. Did you solve this problem?

    • @titigr
      @titigr 7 หลายเดือนก่อน +1

      You need use 2.0 library

    • @titigr
      @titigr 7 หลายเดือนก่อน

      @@Ansarteryou need use 2.0 library version

    • @khoalenguyendang5587
      @khoalenguyendang5587 6 หลายเดือนก่อน

      @@titigrhey bro, can u show me how to use 2.0 library?

    • @titigr
      @titigr 6 หลายเดือนก่อน +1

      Discord ,WhatsApp,instagram for ?video

  • @yorha2b278
    @yorha2b278 19 วันที่ผ่านมา

    Some of the methods have been deprecated really fast 😞

  • @brendan2609
    @brendan2609 6 หลายเดือนก่อน +14

    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 6 หลายเดือนก่อน +2

      You have to use library version 2.0. That solved the issue for me!

    • @Determinator21
      @Determinator21 6 หลายเดือนก่อน +1

      F

    • @user-ur5vx9sr2e
      @user-ur5vx9sr2e 4 หลายเดือนก่อน

      ​@@nicolasfite9236only 2.0?

    • @E-4-elecTronic
      @E-4-elecTronic 2 หลายเดือนก่อน +1

      Mine also same problem

    • @narmishanair
      @narmishanair 2 หลายเดือนก่อน

      @@nicolasfite9236how did u do that?

  • @nikomose
    @nikomose 5 หลายเดือนก่อน

    where is code
    i only install zip file next what i do

  • @user-pv7nh7qn2v
    @user-pv7nh7qn2v 3 หลายเดือนก่อน

    Code does not work :(

  • @tr_2sc1970
    @tr_2sc1970 3 หลายเดือนก่อน

    It doesn't work for me. I get multiple codes for each button. Inconsistency.

    • @xno_elysiumx3744
      @xno_elysiumx3744 หลายเดือนก่อน +1

      I had the same problem but could not fix it, yet.

    • @fxry5943
      @fxry5943 26 วันที่ผ่านมา +1

      Have you found a solution for this?

    • @tr_2sc1970
      @tr_2sc1970 25 วันที่ผ่านมา

      @@fxry5943 Unfortunately not yet, someone promised me in instructables he would do something, I have been waiting for months!

    • @tr_2sc1970
      @tr_2sc1970 3 วันที่ผ่านมา

      @@fxry5943 no, not yet.

  • @tacbeast4841
    @tacbeast4841 26 วันที่ผ่านมา

    Wired the receiver as instructed, the receiver burned

  • @Progamer-qi1xd
    @Progamer-qi1xd 17 วันที่ผ่านมา

    I😂🤣 have the same hex codes

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

    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 TH-cam please anybody solve this issue or make video about it🙏🙏🙏❤️

  • @tygrisek38
    @tygrisek38 5 หลายเดือนก่อน

    my hex code is doing ffffffff

    • @RoseElias
      @RoseElias 2 หลายเดือนก่อน

      You have to use library version 2.0. That solved the issue for me!