Arduino Controlled using TV or IR Remote

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2017
  • In this tutorial we will learn how to control our LEDs with using TV or IR remote. After this tutorial, you can control everything with your TV or IR remote.
    Required Hardware
    Arduino Board:
    goo.gl/Rqc5w2
    amzn.to/2LZr6t4
    IR Receiver Module Kit:
    goo.gl/PwBgFm
    amzn.to/2PEW6QP
    IR Sensor Only Receiver :
    goo.gl/hWqnJ7
    amzn.to/2PLnLQ8
    LED:
    goo.gl/CPAXXf
    amzn.to/3qxSs8O
    220ohm Resistor :
    goo.gl/FVgEyR
    amzn.to/3jXMJXs
    Breadboard :
    goo.gl/GjpqVW
    amzn.to/3qxLxwm
    CR2025 Coin Battery :
    goo.gl/ot2BJz
    amzn.to/3u7Gp3y
    Jumper Wires:
    amzn.to/3doetmT
    Recommended Items:
    Use Your Muscles in Project - amzn.to/3wdL45C
    37 Sensor & Module Packages - amzn.to/3m66WeQ
    Try this Robot Arm - amzn.to/3fq8DCl
    Best Resin 3D Printer - amzn.to/39tY8KB
    Arduino Compatible Kits - bit.ly/2J2AFF7
    Banggood Spring Sale - bit.ly/3slMbOn
    About IR :
    Infrared (IR) controls are often used in most electronic devices.
    This LED will give a predefined code when we press any key on the remote control and a certain frequency will also flash.
    The 38 kHz infrared receiver we use in the project demodulates the signal it receives and sends the button code to the Arduino. We can use with this receiver as long as different brand and model remote controls have 38 kHz carrier signal.The receiver has 3 pins. These are GND - VCC - Signal respectively.
    About Hex code :
    First we must find the hex codes of the buttons of remote controller.
    This way you can use another remote control instead of the included in the kit. So if you have only receiver, you can use any TV remote control. We will use the IRrecvDump example code.
    Download IR library: goo.gl/INTfWC
    Uncompress the ZIP or RAR file onto your desktop
    Place the folder into your arduinosketchfolder/libraries folder
    Rename the uncompressed folder IRremote
    Download Source Code: create.arduino.cc/editor/mert...
    Social Media:
    / mertarduino
    / mertarduino
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Source Code: create.arduino.cc/editor/mertarduinotech/9d107596-a93d-4406-835e-ecf8d63f189b/preview
    Recommended Items:
    Use Your Muscles in Project - amzn.to/3wdL45C​
    37 Sensor & Module Packages - amzn.to/3m66WeQ​
    Try this Robot Arm - amzn.to/3fq8DCl​
    Best Resin 3D Printer - amzn.to/39tY8KB​
    Arduino Compatible Kits - bit.ly/2J2AFF7​
    Banggood Spring Sale - bit.ly/3slMbOn

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

    Didn't realize that there were already such good sketches that came with the library. Thank u!

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

    Finally an ir tutorial, keep up the amazing videos ☺️

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

    Lol... I’m newbie, making my own ir project right not and i have exactly the same tv remote. So it was unexpected for me that tv remote can have two codes on the same button. I was scratching my head before you’re video showed up. Thank you so much, mate

  • @ardiantamarindra621
    @ardiantamarindra621 7 ปีที่แล้ว

    WHAT THE HELL , THIS VIDEO IS HELP ME !! THANK YOU !!
    *i feel so very happy because hardly find that way*

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

    best video for irRemote finally you solved my problem Thank you so much

  • @ekdilipkumar
    @ekdilipkumar 7 ปีที่แล้ว

    nice and clear practical video. Thank you.

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

    Thank u Sir !
    it's working and u helped me a lot Thank u again.

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

    man i love you you saved me thx

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

    Thanks Mert Arduino, it works :))))))))

  • @vanthong6964
    @vanthong6964 7 ปีที่แล้ว

    Thank you so much.

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

    GREAT..... I have a question, what if I want to light the LEDs for a duration of time?

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

    I don't understand, I found the hex values, but I'd get an error saying that the hex value wasn't declared or something like that. So I removed the hex conversion in the ir example (just commented out /*, HEX*/ from Serial.println(results.value, HEX); ) and received an 8 or 9 digit number, I took that number and defined it in my new sketch as the corresponding button numbers and just like that the code complied and it lit up the leds. Why couldn't I just use the hex value as shown in the video?

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

    that looks great

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

    Thanks for your nice video, could you help me how to simulate log key press(lets say I have to press and hold a key for 5 seconds )

  • @TrungTran-hw7ws
    @TrungTran-hw7ws 5 ปีที่แล้ว

    Can I have your background music name, feeling relaxed... Also love your project, keep up the good work.

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

    Thank you so much.
    What do you think is it not quite well if to use analogWrite(pin, 100) for LEDs (instead of (digitalWrite(pin, HIGH)).
    Then we have not to use resistors and configure pins as OUTPUTs.

    • @govorilegko
      @govorilegko 7 ปีที่แล้ว

      thank you.
      even thought if to use 100 power level instead of 255 full power level?
      is not it (100) equal to 2v?

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

    thaaank youuu very much

  • @IslamUniverse
    @IslamUniverse 7 ปีที่แล้ว

    nice work.keep going on ;)

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

    it is an awesome project

  • @user-sv3nj1fh8u
    @user-sv3nj1fh8u 6 ปีที่แล้ว

    Thanks

  • @kvlpnd
    @kvlpnd 7 ปีที่แล้ว

    Great video....

  • @vinayprakashshubham2742
    @vinayprakashshubham2742 7 ปีที่แล้ว

    can i get some idea how to make it stm 32?? can you send some links for that??

  • @Max_Weight
    @Max_Weight 7 ปีที่แล้ว

    Thank you very much man I was struggling very much but thanks to your video it works thanks man!

    • @Max_Weight
      @Max_Weight 7 ปีที่แล้ว

      Mert Arduino and Tech Any time!! ;)

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

    i want this kind of videos good

  • @AydinGokce9000
    @AydinGokce9000 7 ปีที่แล้ว

    cok yardimci oldu desekkurler

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

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

  • @huseyint
    @huseyint 7 ปีที่แล้ว

    Merhaba, KEYES marka aynı kumanda ve receiver kit ile denemeler yaptığımda aynı tuş için farklı farklı kod üretildiğini gördüm, tutuş yönüne göre rasgele farklı kodlar da okunabiliyor. Aynı testi evdeki başka IR uzaktan kumandalar ile denediğimde sonuçlar daha tutarlı, bir tuş için hep aynı kod geliyor. Bunun hakkında fikriniz var mı acaba? Teşekkürler videolar için.

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

    please make an video on ir flame sensor

  • @MDFRESCUER
    @MDFRESCUER 7 ปีที่แล้ว

    Nicely.

  • @neurokid686
    @neurokid686 7 ปีที่แล้ว

    where do you get the serial monitor pls help me SOS

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

    i dont understand 2nd remote code setup, please explain it, how to use single button for on and off led. please

  • @francescosavoja2249
    @francescosavoja2249 7 ปีที่แล้ว

    Solved, thank you...It's working well! Nice project

  • @phatoofperformance6717
    @phatoofperformance6717 7 ปีที่แล้ว +2

    When I try to upload the program to my board it keeps telling me 'unable to find numeric literal operator 'operator""FBF807' could somebody help me out please?

  • @gadgetguy2199
    @gadgetguy2199 7 ปีที่แล้ว

    love it

  • @ABID5
    @ABID5 7 ปีที่แล้ว

    What's the range?as normal ir remote?

  • @muhammediqbal5520
    @muhammediqbal5520 7 ปีที่แล้ว

    pls provide a circuit diagram for feature vedios

  • @Edmorbus
    @Edmorbus 7 ปีที่แล้ว

    very nice : )

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

    Plss upload Circuit diagram for this......

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

    I get the same error as all the other tutorials "exponent has no digits" someone help! not sure what i'm doing wrong.

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

    Sir what will be the arduino code for connecting two ir remote sensor with single arduino

  • @petermaker76
    @petermaker76 7 ปีที่แล้ว

    My aurdino problem is
    No Protocoal: Aurdino uno r3

  • @muhammadfarhan8500
    @muhammadfarhan8500 7 ปีที่แล้ว

    What is the code, if it is pressed on and when it is released off

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

    I'm down load the remote libraryin library and also in emample file. This program is open .but I can't execute it.
    The error message is
    IRremote.h: No such file or direcrtory

  • @innovationdad2398
    @innovationdad2398 7 ปีที่แล้ว

    its soooooooooo coooooooool

  • @petermaker76
    @petermaker76 7 ปีที่แล้ว

    can you please help me My aurdino board is not running correctly

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

    I am getting different values for same button

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

    code is not acessible at the website shown

  • @shivhansoti8634
    @shivhansoti8634 7 ปีที่แล้ว

    Can you create a video of controlling leds using esp8266??

  • @kaanekz
    @kaanekz 7 ปีที่แล้ว

    Farklı kumandalardan da alabiliyormuyuz sinyali elinize sağlık güzel olmuş 😂

    • @kaanekz
      @kaanekz 7 ปีที่แล้ว

      Mert Arduino Tutorial & Projects teşekür ederim detaylı açıklamanız için 😂

  • @zzzzzz...9902
    @zzzzzz...9902 7 ปีที่แล้ว +15

    It works! It works! The dislike button works! No, just kidding. The project works great. Thanks so much. Also, the like button worked.

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

      Can you please send me the program please I need to do project

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

    It's working.
    Bt after a single button press.
    I need to reset the arduino.
    Otherwise next press didn't working.

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

    I don't uploading any data in Uno constant mismatch error plz help me

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

    How did you make your IDE background dark

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

      There is a "Dark Arduino IDE" app you can download.

  • @saifriad1679
    @saifriad1679 7 ปีที่แล้ว

    😍😍😍

  • @Usq7213
    @Usq7213 7 ปีที่แล้ว

    I need same help please i have try my best for hours and only get error!
    Class decode_results has no member named"address".

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

    Can any remote control

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

    okk make a complete robot with lcd , ping , temprature , and bluetooth

  • @riseoftech4k332
    @riseoftech4k332 7 ปีที่แล้ว

    nice job, just explain a bit more the code next time

  • @adityarai7674
    @adityarai7674 7 ปีที่แล้ว

    can you make a robot with ir sensor

  • @ahmedsaman3070
    @ahmedsaman3070 7 ปีที่แล้ว

    ❤️❤️❤️❤️ cool 😎

    • @ahmedsaman3070
      @ahmedsaman3070 7 ปีที่แล้ว

      Mert Arduino Tutorial & Projects You deserve it❤️❤️❤️&you are welcome ❤️

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

    Is it possible to use mobile applications instead of remote??

  • @minigabilafresa
    @minigabilafresa 7 ปีที่แล้ว

    How is it that you use the code of the second control to set them with the same button? I do not get it :(

    • @madeariartha2546
      @madeariartha2546 7 ปีที่แล้ว

      same question

    • @minigabilafresa
      @minigabilafresa 7 ปีที่แล้ว

      The code that was used in the second control, the LED turn on with the same button to turn off.

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

    led tak to thik he. jab me isko relay board se koi high voltage ac light connect karta ho tab remote thik se kam nehi karta. 2-3bar press karne se ekbar kam karta he

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

    I cannot access the code document

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

    didnt work, someone helps me? i have the galileo board and when i compile the program appear an error called "no such file or directory" someone knowns why?

  • @innovationdad2398
    @innovationdad2398 7 ปีที่แล้ว

    and my arduino board will not connecting to laptop plese help me

  • @innovationdad2398
    @innovationdad2398 7 ปีที่แล้ว

    sir the code can't upload

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

    why do I buy a remote control for my project

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

    I Faild i think it is the code

  • @innovationdad2398
    @innovationdad2398 7 ปีที่แล้ว

    you also make a car

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

    i cant upload the scetch
    why??

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

      me too someone answer us

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

      @@yt_show7967 late reply, but did you download the library?

  • @Fabian-iy3je
    @Fabian-iy3je 6 ปีที่แล้ว

    The code doesn't work :(

  • @weamattar4204
    @weamattar4204 7 ปีที่แล้ว

    It did not work with me and I do every single steps the same :(

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

      me try kiya work ho raha he. lekin problem ek he. jab me relay se 220 line se bulb connected karta ho tab remote ka switch 3-4 bar press karnese ekbar on/off ho raha he

  • @7oda88
    @7oda88 3 ปีที่แล้ว

    Please add

  • @dariusniculescu3376
    @dariusniculescu3376 7 ปีที่แล้ว

    Dont works with arduino nano

  • @francescosavoja2249
    @francescosavoja2249 7 ปีที่แล้ว

    error:
    Class decode_results has no member named"address". Please help me

    • @francescosavoja2249
      @francescosavoja2249 7 ปีที่แล้ว

      Mert Arduino Tutorial & Projects //------------------------------------------------------------------------------
      // Include the IRremote library header
      //
      #include
      //------------------------------------------------------------------------------
      // Tell IRremote which Arduino pin is connected to the IR Receiver (TSOP4838)
      //
      int recvPin = 11;
      IRrecv irrecv(recvPin);
      //+=============================================================================
      // Configure the Arduino
      //
      void setup ( )
      {
      Serial.begin(9600); // Status message will be sent to PC at 9600 baud
      irrecv.enableIRIn(); // Start the receiver
      }
      //+=============================================================================
      // Display IR code
      //
      void ircode (decode_results *results)
      {
      // Panasonic has an Address
      if (results->decode_type == PANASONIC) {
      Serial.print(results->address, HEX);
      Serial.print(":");
      }
      // Print Code
      Serial.print(results->value, HEX);
      }
      //+=============================================================================
      // Display encoding type
      //
      void encoding (decode_results *results)
      {
      switch (results->decode_type) {
      default:
      case UNKNOWN: Serial.print("UNKNOWN"); break ;
      case NEC: Serial.print("NEC"); break ;
      case SONY: Serial.print("SONY"); break ;
      case RC5: Serial.print("RC5"); break ;
      case RC6: Serial.print("RC6"); break ;
      case DISH: Serial.print("DISH"); break ;
      case SHARP: Serial.print("SHARP"); break ;
      case JVC: Serial.print("JVC"); break ;
      case SANYO: Serial.print("SANYO"); break ;
      case MITSUBISHI: Serial.print("MITSUBISHI"); break ;
      case SAMSUNG: Serial.print("SAMSUNG"); break ;
      case LG: Serial.print("LG"); break ;
      case WHYNTER: Serial.print("WHYNTER"); break ;
      case AIWA_RC_T501: Serial.print("AIWA_RC_T501"); break ;
      case PANASONIC: Serial.print("PANASONIC"); break ;
      case DENON: Serial.print("Denon"); break ;
      }
      }
      //+=============================================================================
      // Dump out the decode_results structure.
      //
      void dumpInfo (decode_results *results)
      {
      // Check if the buffer overflowed
      if (results->overflow) {
      Serial.println("IR code too long. Edit IRremoteInt.h and increase RAWBUF");
      return;
      }
      // Show Encoding standard
      Serial.print("Encoding : ");
      encoding(results);
      Serial.println("");
      // Show Code & length
      Serial.print("Code : ");
      ircode(results);
      Serial.print(" (");
      Serial.print(results->bits, DEC);
      Serial.println(" bits)");
      }
      //+=============================================================================
      // Dump out the decode_results structure.
      //
      void dumpRaw (decode_results *results)
      {
      // Print Raw data
      Serial.print("Timing[");
      Serial.print(results->rawlen-1, DEC);
      Serial.println("]: ");
      for (int i = 1; i < results->rawlen; i++) {
      unsigned long x = results->rawbuf[i] * USECPERTICK;
      if (!(i & 1)) { // even
      Serial.print("-");
      if (x < 1000) Serial.print(" ") ;
      if (x < 100) Serial.print(" ") ;
      Serial.print(x, DEC);
      } else { // odd
      Serial.print(" ");
      Serial.print("+");
      if (x < 1000) Serial.print(" ") ;
      if (x < 100) Serial.print(" ") ;
      Serial.print(x, DEC);
      if (i < results->rawlen-1) Serial.print(", "); //',' not needed for last one
      }
      if (!(i % 8)) Serial.println("");
      }
      Serial.println(""); // Newline
      }
      //+=============================================================================
      // Dump out the decode_results structure.
      //
      void dumpCode (decode_results *results)
      {
      // Start declaration
      Serial.print("unsigned int "); // variable type
      Serial.print("rawData["); // array name
      Serial.print(results->rawlen - 1, DEC); // array size
      Serial.print("] = {"); // Start declaration
      // Dump data
      for (int i = 1; i < results->rawlen; i++) {
      Serial.print(results->rawbuf[i] * USECPERTICK, DEC);
      if ( i < results->rawlen-1 ) Serial.print(","); // ',' not needed on last one
      if (!(i & 1)) Serial.print(" ");
      }
      // End declaration
      Serial.print("};"); //
      // Comment
      Serial.print(" // ");
      encoding(results);
      Serial.print(" ");
      ircode(results);
      // Newline
      Serial.println("");
      // Now dump "known" codes
      if (results->decode_type != UNKNOWN) {
      // Some protocols have an address
      if (results->decode_type == PANASONIC) {
      Serial.print("unsigned int addr = 0x");
      Serial.print(results->address, HEX); THIS LINE MAKES PROBLEMS. CAN YOU HELP ME PLEASE?
      THANK YOU :)))
      Serial.println(";");
      }
      // All protocols have data
      Serial.print("unsigned int data = 0x");
      Serial.print(results->value, HEX);
      Serial.println(";");
      }
      }
      //+=============================================================================
      // The repeating section of the code
      //
      void loop ( )
      {
      decode_results results; // Somewhere to store the results
      if (irrecv.decode(&results)) { // Grab an IR code
      dumpInfo(&results); // Output the results
      dumpRaw(&results); // Output the results in RAW format
      dumpCode(&results); // Output the results as source code
      Serial.println(""); // Blank line between entries
      irrecv.resume(); // Prepare for the next value
      }
      }

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

      i also get the same error as Francesco Savoja
      Serial.print(results->address, HEX);
      help please i have try my best for hours!

    • @stevenyamada70
      @stevenyamada70 7 ปีที่แล้ว

      IRsendDemo won't compile #25 >Search Github issues.

    • @francescosavoja2249
      @francescosavoja2249 7 ปีที่แล้ว

      Ibrahim Osman You have to download the library,not copy-paste. Than you will find that in "examples"

    • @pursueexcellence7737
      @pursueexcellence7737 7 ปีที่แล้ว

      same problem here!!! SOS!!!

  • @howtoteen4672
    @howtoteen4672 7 ปีที่แล้ว

    Do you have any music other than that? thats just getting annoying