Arduino IR remote

Поділитися
Вставка
  • Опубліковано 6 кві 2017
  • in this video we build step by step an arduino ir remote and explaining how it works ,the circuit used and the code.
    Code and more Info on the Project page :
    www.tunmaker.tn/2017/04/07/ar...
    if you have any question or followups Place a comment Below or :
    SOCIALS:
    WebSite ► www.tunmaker.tn/
    Twitter ► / tun_maker
    Facebook ► / tunisanmaker
    Instagram ► / tunmaker
  • Наука та технологія

КОМЕНТАРІ • 16

  • @blogoblokax2677
    @blogoblokax2677 2 роки тому

    Hey! You helped me! Based on your simple sketch, I was able to write my own! Thanks from Russia.

  •  7 років тому +1

    Lovely

  • @garmischwong8551
    @garmischwong8551 6 років тому +1

    What is the number 32 for in the irsend.sendnce line do? Can I change it to other number?
    Also, when sending stuffs, you haven't tell the Arduino which port to use! How did you send it?

    • @colenelson658
      @colenelson658 5 років тому

      I had this same question about how to set up the output pin/port and it was driving me crazy!! Here's the best answer I could piece together with a little digging:
      For the Arduino UNO board, the IRremote library uses Pin 3 as its default pin. (In the schemas shown at 0:17, you can see that TunMaker used Pin 3 on his UNO.)
      Reference:
      ** This tutorial mentions in passing how the timer is set to a pin.
      learn.adafruit.com/using-an-infrared-library/sending-ir-codes
      "While we can connect an IR receiver to any available digital input pin, you can only use very specific pins for output. The library uses PWM pins and modifies the timing parameters to change the default frequency of that pin.
      "The default timer is TIMER2 on the Arduino Uno and Arduino Mega. On the Leonardo with is TIMER1. The pin numbers are pin 3 for Uno and use pin 9 for the Leonardo and Mega. If you have modified the library to use a different timer such as changing the timer number on a Leonardo to avoid conflicts with the servo library, then you will need to use a different specific pin. See section 1.4.1 Supported Platforms in the IRLib users manual for a table which shows the relationship between hardware timers and pin numbers."
      ** Here is a discussion on the Arduino forum about changing the pin config:
      forum.arduino.cc/index.php?topic=49630.0
      From this response:forum.arduino.cc/index.php?PHPSESSID=6d5smks9f92jil45mfb9oqnlk0&topic=49630.msg354580#msg354580
      "The IRremote library uses Timer 2 in a mode that only works with output on Arduino Pin 3.
      "
      The weird thing is, I read through the IRremote code and I think I found the file that detects the board type and sets up the default timer and pin, but I don't see the UNO board in there. Weird.:
      github.com/z3t0/Arduino-IRremote/blob/master/boarddefs.h
      Hope that helps!!!
      EDIT: I realized that the library that the tutorial is using on the Adafruit site is a different library than the IRremote library in this video, but they both appear to use the same default pin on the UNO board.

  • @rasool460
    @rasool460 5 років тому +1

    Thank you so much

    • @TunMaker
      @TunMaker  5 років тому

      thank you too =)

  • @rahmabouhejba2041
    @rahmabouhejba2041 7 років тому +1

    Bravoo!!

    • @TunMaker
      @TunMaker  7 років тому

      thank you very much

  • @gmachdhouha722
    @gmachdhouha722 7 років тому

    good job

    • @TunMaker
      @TunMaker  7 років тому

      thanks for the good feed-back

  • @aventuregourmandebysafa3874
    @aventuregourmandebysafa3874 7 років тому +1

    👍👍👍

  • @ahteshamtahir2870
    @ahteshamtahir2870 4 роки тому

    kindly send the library link

    • @TunMaker
      @TunMaker  4 роки тому

      Project link in the description on my website you ll find everything www.tunmaker.tn