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); }
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.
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!
@@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.
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
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?
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.
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.
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
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
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);
}
I need some help brother please can you help me
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.
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!
@@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.
Button pressed... hopefully he already know that.
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.
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
Thanks.
Have updates to the IR library broken the code used here?
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)
Output pin sir..,?
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?
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.
how ir transmitter know what is pin used
I don't know why but there is no output on the irled
Guys download a lower version of the library like 2.5
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.
I think it's a 230ohm
@@simon_b_ 220*
intro took 48 secs
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
do u know how we get the bits if the code which was set to 32 in the video
Is there a circuit diagram to hook up the sender
You can find the circuit diagram on 1:37
can anyone help me with how to know the bit which was shown in video as 32
is your remote working on NEC protocol
if you want to check the protocol then run demo code present examples known as irdemo
github.com/z3t0/Arduino-IRremote ... add this library to your arduino than you will find irdemo in examples
@@aeromaddy2121 thanks
@@aeromaddy2121 pls give instructions cause i am not a pro arduino programmer
Contact me on insta bro
Hey, my maincreft server keeps chrashing, can u help?
Hey Nylax, I found this video about mijnkraft server problems, hope it helps you out! ua-cam.com/video/dQw4w9WgXcQ/v-deo.html
@@asali-channel sorry, if you just start trolling your subs I will unsub
@@asali-channel consider me #unsubbed
Oh sorry, wrong video! here you go: ua-cam.com/video/WDTkTyeBnTY/v-deo.html
@@asali-channel create ur own vid pls
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
I get it. You have to add ",32" to make codes work well.
@@abdurrahmansahin7043 did it work with 32
@@vaibhav3852 yes
@@abdurrahmansahin7043 my is not working
@@vaibhav3852 You gotto sure that you typed correct bit
It is sending nothing. I have already tried everything
Have you found any solution for it??
@@srujanendhratalla4187 have you found any solution
THANK YOU SO MUCH I DO İT AND İT WAS AMAZİNG
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
same problem
I'm not even able to see the blinking on mobile camera help me dude
damn my push button has 2 output legs :/ bruh
😍😍😍😍😍
Лайк поставил авансом, проверю. если эта хуйня не работает - вернусь и влеплю дизлайк
To slow.