Arduino Uno Infrared sensor sending signal data - IR Send

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • Today we send infrared signals with an Arduino Uno IR sensor. We will continue on the previous Infrared video where we first learned how to read out infrared signals.
    All my code will be available on my Patreon page:
    / 27972760
    www.patreon.com/asali
    Links:
    Infrared receiver: • Arduino uno infrared r...
    Button tutorial: • Arduino Uno led push b...
    Infrared sender
    amzn.to/2RFHeP3
    Arduino Uno kit
    amzn.to/2H4femD
    Credits:
    Music:
    Classique - Francis Preve
    Thumbnail & video icons:
    Licensed by creativecommons...
    Arrow icon by www.flaticon.c...
    Infrared: www.freepik.com/

Комментарии • 60

  • @mistergears130
    @mistergears130 Год назад +8

    for the updated version of the library you must specify what pin is the sender, and you must specify what protocol the library will use
    the right code is:
    #include
    const int button = 4;
    bool buttonState = false;
    IRsend irsend(3);
    void setup() {
    Serial.begin(9600);
    pinMode(button, INPUT);
    }
    void loop() {
    buttonState = digitalRead(button);
    if(buttonState){
    irsend.sendNEC(0xYOURCODE, YOURBITS);
    Serial.println("sent");
    }
    delay(40);
    }

    • @Aqidshah
      @Aqidshah Год назад

      I need some help brother please can you help me

  • @archernelson5510
    @archernelson5510 Год назад +3

    How does this channel not have more subscribers!? I just spent the last hour searching youtube for videos on how to emit infrared signals using my Arduino and almost all were overcomplicated or irrelevant, unlike this video which is quick, easy and works a treat. Thank you, Asali.

    • @asali-channel
      @asali-channel  Год назад +1

      Some more channel attention would have been helpfull but unfortunately I am now not in a great position anymore to continue uploading videos every month. Perhaps in the near future I will be able to pick up where I left off. Thank you for the kind words Archer!

    • @archernelson5510
      @archernelson5510 Год назад

      @@asali-channel Fair enough man, thanks anyways for uploading so much over the years. The information in your videos still helps a bunch of people years after they've been up.

    • @keto4life197
      @keto4life197 Год назад

      Button pressed... hopefully he already know that.

  • @anokhautomation4453
    @anokhautomation4453 2 года назад +2

    Very useful tutorial.
    If I want to send hex code what should I do?
    Instead of NEC I can insert 0x??
    Please advise.

  • @donaldmartin2640
    @donaldmartin2640 4 года назад +2

    I'm new to all this. Sorry, don't we need an OUTPUT pin to fire the IR sender? Pardon my newness. thank for the support.

    • @asali-channel
      @asali-channel  4 года назад +1

      That's a very good question! We actually should but the library IRremote automatically assigns pin 3 to output for the IR sender. If you would like to change pin 3 you would have to alter the library, here's a discussion about this topic: github.com/z3t0/Arduino-IRremote/issues/218

    • @donaldmartin2640
      @donaldmartin2640 4 года назад +1

      Thanks.

  • @birdost8448
    @birdost8448 3 года назад

    THANK YOU SO MUCH I DO İT AND İT WAS AMAZİNG

  • @srujanendhratalla4187
    @srujanendhratalla4187 2 года назад +1

    I don't know why but there is no output on the irled

  • @NR-vf2tk
    @NR-vf2tk 2 года назад +1

    Hi, could you please advice on how to increase the transmitter's range? I would like at least 3m. My TV remote works without me pointing to my receiver. How can I emulate my TV remote? Why is it so powerful?

  • @nathanwebb4959
    @nathanwebb4959 3 года назад +1

    Hi, when I try this I get message "request for member 'sendNEC' in 'irsend', which is of non-class type 'IRsend()'" when trying to compile.... code looks very similar to yours!. Any idea what i've done wrong? Thanks
    I included IR Remote library- followed by IRsend irsend(); before setup function and irsend.sendNEC(0x1FE20DF, 32); in the button low condition area.

  • @yahyadahmene
    @yahyadahmene 4 года назад +3

    intro took 48 secs

  • @yousaftoki1599
    @yousaftoki1599 2 года назад +2

    Output pin sir..,?

  • @ayhamkattan3947
    @ayhamkattan3947 4 года назад +1

    how ir transmitter know what is pin used

  • @NathanCroucher
    @NathanCroucher 3 года назад +1

    Have updates to the IR library broken the code used here?

    • @santiagososa2540
      @santiagososa2540 2 года назад

      I lowered the version of the library to version 2.5 so that it works for me. I did not walk with the last one (IRRemote)

  • @tacobender5000
    @tacobender5000 Год назад

    Can you tell us what resistors to use? I'm not familiar with the color codes, so the diagram you have makes this difficult. Especially worried because some of the colors on my resistors are hard to tell apart.

  • @nisarrazzaq5929
    @nisarrazzaq5929 4 года назад

    Your video is really good but I am running in a problem now.
    My remote gives two codes on one button on two consecutive clicks. I get 15 and 815 for one button and for Power button it is C and 80C .
    It's a " Nobel" TV remote and I can't find binary bit code of it. Can you please tell me what's it's code

    • @vaibhav3852
      @vaibhav3852 4 года назад

      do u know how we get the bits if the code which was set to 32 in the video

  • @tannerreinhardt3972
    @tannerreinhardt3972 4 года назад

    Is there a circuit diagram to hook up the sender

    • @asali-channel
      @asali-channel  4 года назад

      You can find the circuit diagram on 1:37

  • @abdurrahmansahin7043
    @abdurrahmansahin7043 4 года назад

    am I the only one who gets this error: no matching function for call to 'IRsend::sendNEC(long unsigned int&)' where did I do wrong

  • @juliuslehmann9455
    @juliuslehmann9455 3 года назад

    It is sending nothing. I have already tried everything

    • @srujanendhratalla4187
      @srujanendhratalla4187 2 года назад

      Have you found any solution for it??

    • @Aqidshah
      @Aqidshah Год назад

      @@srujanendhratalla4187 have you found any solution

  • @nylax4396
    @nylax4396 5 лет назад +3

    Hey, my maincreft server keeps chrashing, can u help?

    • @asali-channel
      @asali-channel  5 лет назад +8

      Hey Nylax, I found this video about mijnkraft server problems, hope it helps you out! ruclips.net/video/dQw4w9WgXcQ/видео.html

    • @nylax4396
      @nylax4396 5 лет назад

      @@asali-channel sorry, if you just start trolling your subs I will unsub

    • @nylax4396
      @nylax4396 5 лет назад

      @@asali-channel consider me #unsubbed

    • @asali-channel
      @asali-channel  5 лет назад +1

      Oh sorry, wrong video! here you go: ruclips.net/video/WDTkTyeBnTY/видео.html

    • @nylax4396
      @nylax4396 5 лет назад

      @@asali-channel create ur own vid pls

  • @RandomlySelectedUserName
    @RandomlySelectedUserName 3 года назад

    damn my push button has 2 output legs :/ bruh

  • @vaibhav3852
    @vaibhav3852 4 года назад

    can anyone help me with how to know the bit which was shown in video as 32

    • @aeromaddy2121
      @aeromaddy2121 4 года назад

      is your remote working on NEC protocol
      if you want to check the protocol then run demo code present examples known as irdemo

    • @aeromaddy2121
      @aeromaddy2121 4 года назад

      github.com/z3t0/Arduino-IRremote ... add this library to your arduino than you will find irdemo in examples

    • @vaibhav3852
      @vaibhav3852 4 года назад

      @@aeromaddy2121 thanks

    • @vaibhav3852
      @vaibhav3852 4 года назад

      @@aeromaddy2121 pls give instructions cause i am not a pro arduino programmer

    • @aeromaddy2121
      @aeromaddy2121 4 года назад

      Contact me on insta bro

  • @nisarrazzaq5929
    @nisarrazzaq5929 4 года назад

    Like you are using 32 for your remote and I can't mine one also
    0x812 or 0x12 isn't working on TV.
    Mean no code is being transmitted by it led but it can be seen blinking on mobile camera

  • @yogeshitaliya473
    @yogeshitaliya473 5 лет назад

    😍😍😍😍😍

  • @ВаняГузенков-х8л
    @ВаняГузенков-х8л 3 года назад

    Лайк поставил авансом, проверю. если эта хуйня не работает - вернусь и влеплю дизлайк

  • @BertHeideveld
    @BertHeideveld 11 месяцев назад

    To slow.