Arduino Uno Infrared sensor sending signal data - IR Send

Поділитися
Вставка
  • Опубліковано 28 гру 2024

КОМЕНТАРІ • 59

  • @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 2 роки тому +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  2 роки тому +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 2 роки тому

      @@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 2 роки тому

      Button pressed... hopefully he already know that.

  • @donaldmartin2640
    @donaldmartin2640 5 років тому +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  5 років тому +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 5 років тому +1

      Thanks.

  • @NathanCroucher
    @NathanCroucher 3 роки тому +1

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

    • @santiagososa2540
      @santiagososa2540 3 роки тому

      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)

  • @yousaftoki1599
    @yousaftoki1599 3 роки тому +2

    Output pin sir..,?

  • @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 4 роки тому +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.

  • @ayhamkattan3947
    @ayhamkattan3947 4 роки тому +1

    how ir transmitter know what is pin used

  • @srujanendhratalla4187
    @srujanendhratalla4187 2 роки тому +1

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

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

  • @yahyadahmene
    @yahyadahmene 4 роки тому +3

    intro took 48 secs

  • @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 5 років тому

    Is there a circuit diagram to hook up the sender

    • @asali-channel
      @asali-channel  5 років тому

      You can find the circuit diagram on 1:37

  • @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

  • @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! ua-cam.com/video/dQw4w9WgXcQ/v-deo.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: ua-cam.com/video/WDTkTyeBnTY/v-deo.html

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

      @@asali-channel create ur own vid pls

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

    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

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

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

  • @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

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

    damn my push button has 2 output legs :/ bruh

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

    😍😍😍😍😍

  • @ВаняГузенков-х8л
    @ВаняГузенков-х8л 4 роки тому

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

  • @BertHeideveld
    @BertHeideveld Рік тому

    To slow.