Source Code: create.arduino.cc/editor/mertarduinotech/6d296b6c-86ba-4ed8-88fe-736caeb47e86/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
I am fairly new at using the arduino boards and every time I try to light up an LED it never works but this is the first time I managed to have a working LED project!!!!! I cannot express how proud I am of myself but it goes without saying that you definitely helped me step by step. I was getting discouraged but this simple project brought me on track thanks :)
I have some questions 1) what is the different between ground beside pin 13 and ground on power as in 1:20? 2) how to determine suitable amount of resistor that I should use in the circuit? and thank you for posting this kind of video. I love it :D
Good video. I technically suggest to remove an error in programming. It should just show at the instant of turning on/off led on serial monitor instead of constant messages. This could be achieved by little change in programming ofcourse. Good luck.
Why some button setups do need 5v while others do not? The ones that do not need to connect to 5V has one side connects to GNP and the other side connects to a pin for input
buy a starter arduiono kit do the basic led try the basic button led set up the wires find an error struggle to find the error realise you put a 2 pin button check for 4 pin button realise you don't have a 4 pin button
It's to avoid circuit when you press the switch. Giving 10k resistance to ground make then short circuit current very less..and your circuit will work perfectly!!
So there are two completely separate circuits? It isn't like a single circuit being 'completed' when the button is pushed it is actually the software 'realizing' the button is pushed and then telling the led to light?
Hi there. I wanted to toggle two led's with one push button. (One led instantly on as soon the arduino gets on) . And then toggle the led's . Any guidance would be greatly appericiated :)
wait i have a problem.. what if the led is alredy glowing(BUT its not in full capacity), and when i push the button the led starts glowing fully. how can i fix this or where did i made a mistake??...
So it depends on where yellow wire(input) line up with right? Let say if it lines up with positive, it will read HIGH(push button to turn off) If it lines up with ground it will read LOW(push button to turn on). Is my understanding correct?
hey i just noticed u too have a Arduino clone and not the original. This is the same i bought (by mistake) from online store. Just wanted to ask you if it works just fine or have some drawbacks? *PLEASE REPLY, I AM SO SAD ABOUT THIS.*
Why do you have to add the ground to the button? When you do not push the button it will read zero, but when you do there are both 5v and gnd running through the arduino so what does the arduino read?
Gostaria de fazer uma pergunta fora do contexto do vídeo, tenho uma plaquinha eletrônica de um fliperama que usa esse micro botão tátil para ligar a tela, só que eu gostaria de colocar esse botão com acionamento externo só que a madeira que uso é de 15mm aí toda vez que eu preciso ligar/desligar tenho que abrir por trás e apertar o botão, eu queria tipo uma capa para eu furar a madeira e colocar para acionar o botão por fora sem ter que abrir esse gabinete. Obs: não manjo nada de solda.
Add an ldr on the breadboard, connect it with a resistor to ground, another ldr pin with positive, in between the ldr and resistor put an arduino pin into the analog pins and type in the program if(ldr==###) //### the numbers which you want the ldr to light up the led then which usually ranges between 150 to 900 depending on the ldr you are using and the light intensity then { digitalWrite(Led, HIGH); //this for led directly, if you want it for the button then you have to insert an extra variable to turn on the button } else{ digitalWrite(Led, LOW); }
Dear Mert, thankyou for you wonderful video!! can you please give me advice on how I can connect an 10W Led with 12V Led Driver Directly onto Arduino board? i tried to do it, but it didnt work... Thankyou :-)
Hell Mert, thankyou for your reply and help; this is the 12v led driver here: Driver Input Voltage: 12-24V DC Output Voltage: 9-12V Output Current: 900mA+-5% can support 10pcs high power 10W led 3 in serial and 3 in parallelwww.ebay.com/itm/331653946252?_trksid=p2057872.m2749.l2649&var=540791276919&ssPageName=STRK%3AMEBIDX%3AIT Thanks :-)
man, i succed to burn up a arduino uno, becouse you don't show clear how the push button is inserted! was my fault that i follow your clip....next time put olso the electric diagram!
I does not work at all,I tried it by plugging out and in, and even removing the resistors,please fix this or I will have to unsubscribe, because I need a channel I can trust to have the right information.
You might have not connected the resistor with your push button or might have connected wrongly.Due to which when you press the button, +ve and -ve supply gets short circuited and your arduino gets restarted. Check it :)
Source Code: create.arduino.cc/editor/mertarduinotech/6d296b6c-86ba-4ed8-88fe-736caeb47e86/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
I am fairly new at using the arduino boards and every time I try to light up an LED it never works but this is the first time I managed to have a working LED project!!!!! I cannot express how proud I am of myself but it goes without saying that you definitely helped me step by step. I was getting discouraged but this simple project brought me on track thanks :)
I've watched a lot of push-button-to-control-led videos, this is the only one that worked for me. Thanks!
Been looking for a video that works and FINALLY found yours. Thank you!
const int LedPin = 2;
const int buttonPin = 4;
int buttonState = 0;
void setup() {
Serial.begin(9600);
pinMode(LedPin, OUTPUT);
pinMode(buttonPin, INPUT);
}
void loop() {
buttonState = digitalRead(buttonPin);
if (buttonState ==HIGH) {
digitalWrite(LedPin, HIGH);
Serial.println("LED ON +1");
}
else {
digitalWrite(LedPin, LOW);
Serial.println("LED OFF -0");
}
}
OMG! THIS WAS SOO EASY THANK YOU!!!
Finally, thought it would be so easy but the config of the push button was confusing me, your video helped me to get it right, thanks
I have some questions
1) what is the different between ground beside pin 13 and ground on power as in 1:20?
2) how to determine suitable amount of resistor that I should use in the circuit?
and thank you for posting this kind of video. I love it :D
Good video. I technically suggest to remove an error in programming. It should just show at the instant of turning on/off led on serial monitor instead of constant messages. This could be achieved by little change in programming ofcourse. Good luck.
+Mert Arduino Tutorial & Projects Good luck
can i have the codes ?
Why some button setups do need 5v while others do not? The ones that do not need to connect to 5V has one side connects to GNP and the other side connects to a pin for input
the cable management: 🤩
buy a starter arduiono kit
do the basic led
try the basic button led
set up the wires
find an error
struggle to find the error
realise you put a 2 pin button
check for 4 pin button
realise you don't have a 4 pin button
sad
My starter kit came with the four pin button.
You can also use internal pull up resitor or pull down
omg. Finally a video that I understand!!!!!!!
I'm new to this. Why do we connect a 10k resistor between switch and ground?
It's to avoid circuit when you press the switch. Giving 10k resistance to ground make then short circuit current very less..and your circuit will work perfectly!!
IT WORKED I AM GLADE AND SO HAPPY
Thanks! Straight to the point.
So there are two completely separate circuits? It isn't like a single circuit being 'completed' when the button is pushed it is actually the software 'realizing' the button is pushed and then telling the led to light?
this is amazing but i want a push button press on time the led alwasy on and next push led off and stay off plz one video on it thanks to you
Just a question: Is it possible to turn on the leds using steering buttons of my sim instead? Thanks
insetad of purple wire, which coloured wire can we use ??
Thank you very much from Mexico. Yours videos are amazing.
Hi there. I wanted to toggle two led's with one push button. (One led instantly on as soon the arduino gets on) . And then toggle the led's . Any guidance would be greatly appericiated :)
wait i have a problem.. what if the led is alredy glowing(BUT its not in full capacity), and when i push the button the led starts glowing fully. how can i fix this or where did i made a mistake??...
So it depends on where yellow wire(input) line up with right? Let say if it lines up with positive, it will read HIGH(push button to turn off) If it lines up with ground it will read LOW(push button to turn on).
Is my understanding correct?
Consider using static constexpr, instead of a regular const.
Can you help me to my project this video I'm looking to my project but I want to add a timer and lcd on it
worked, thank u!
why does it continuously print log message? It something wrong with the code? It doesn't make sense.
hey i just noticed u too have a Arduino clone and not the original. This is the same i bought (by mistake) from online store. Just wanted to ask you if it works just fine or have some drawbacks? *PLEASE REPLY, I AM SO SAD ABOUT THIS.*
It's okay.There are no big differences.
Don't be sad..!! Clones are just low quality versions..!! Everything works fine as Original board..!! But Original is so lovely...!! 😊
Does it matter where I put the led on the breadboard?
NO
why my led has a delay, if i press it and release, it will wait 1 second before the led turns off, i didn't put a delay in the script
it says the "expected unqualified-id before 'if'
it says that for me but for else
Thank you! This worked for me.
why do you need a resistor with the switch? thanks
To avoid short circuit ..!! As you forcefully turn the input pin to 5V or 0V it creates a short circuit and can damage your ardiuno board.
Works properly!
Thanks
does their have to be a resistor on the button
At 2:13 can you explain why the top leg? What would happen if you connected the wire to the bottom pin, two slots to the left?
sir puch switch k sath resistor q lagaya ha??
Very helpful - thanks!
Compulsory to use the red LED? 0:16
Any color LED you can use.!!❤️
@@TechieBaksh Ty🌅
Why do you have to add the ground to the button? When you do not push the button it will read zero, but when you do there are both 5v and gnd running through the arduino so what does the arduino read?
it will read 5V :)
Gostaria de fazer uma pergunta fora do contexto do vídeo, tenho uma plaquinha eletrônica de um fliperama que usa esse micro botão tátil para ligar a tela, só que eu gostaria de colocar esse botão com acionamento externo só que a madeira que uso é de 15mm aí toda vez que eu preciso ligar/desligar tenho que abrir por trás e apertar o botão, eu queria tipo uma capa para eu furar a madeira e colocar para acionar o botão por fora sem ter que abrir esse gabinete.
Obs: não manjo nada de solda.
mostra como compilas !!! USO EL MISMO CODIGO Y NO FUNCIONA.
Hey how to intialize timer and when i press the pushbutton that read time and display how it read time please explain me
How can i include an ldr in this programm?
Add an ldr on the breadboard, connect it with a resistor to ground, another ldr pin with positive, in between the ldr and resistor put an arduino pin into the analog pins and type in the program
if(ldr==###) //### the numbers which you want the ldr to light up the led then which usually ranges between 150 to 900 depending on the ldr you are using and the light intensity then
{ digitalWrite(Led, HIGH); //this for led directly, if you want it for the button then you have to insert an extra variable to turn on the button
}
else{
digitalWrite(Led, LOW);
}
ty
Why have you written serial.begin(9600) ?
What does that mean ?
it is just for troubleshooting. Serial.print() wont work without declaring serial.begin()
its usb port to get know which serial starting from 9600 bits per second
Im here because i wont probably understand my teacher when she teach us this😭
One time while u push the button it shold be contionous on....dont be stop..while u put second button it should be stop...make that kind of video
Dear Mert, thankyou for you wonderful video!! can you please give me advice on how I can connect an 10W Led with 12V Led Driver Directly onto Arduino board? i tried to do it, but it didnt work... Thankyou :-)
Hell Mert, thankyou for your reply and help; this is the 12v led driver here:
Driver
Input Voltage: 12-24V DC
Output Voltage: 9-12V
Output Current: 900mA+-5%
can support 10pcs high power 10W led 3 in serial and 3 in parallelwww.ebay.com/itm/331653946252?_trksid=p2057872.m2749.l2649&var=540791276919&ssPageName=STRK%3AMEBIDX%3AIT
Thanks :-)
you can use a relay or a mosfet
Ayyo nandri dhevaime
'
better use quiet silent push tactile switch...
not like noise sound click click
why doesnt this work for me?
you save my life
Many times that background noise when You try to look at a video. Better try to make a comment. At least not that noise
man, i succed to burn up a arduino uno, becouse you don't show clear how the push button is inserted! was my fault that i follow your clip....next time put olso the electric diagram!
i want to control 5 led with five buttons....can you make it?
Yes simply make another 5 set of those but the - shoulde be alll together
Hey nice video but my led lamp does not turn off when i not press the buttom insted it blinks, why?
Nice Blog :)
Arduinosuz da yapilabilir
I does not work at all,I tried it by plugging out and in, and even removing the resistors,please fix this or I will have to unsubscribe, because I need a channel I can trust to have the right information.
try checking if your port is correct or your code or your wiring instead of blaming it. Illiterate shit
@@RuzGaming get a fucking life
My arduino turns off instead
When you press the button, the 5v and GND connect and arduino switches off. Check the connections again
Patrick is a mecha
when i push the button my arduino restarts
this means you did wrong wiring
You might have not connected the resistor with your push button or might have connected wrongly.Due to which when you press the button, +ve and -ve supply gets short circuited and your arduino gets restarted. Check it :)
Kendi videon yokmu hacı
HÁT HOLAAFASZOMBA VAN A KÓD????
Nice music
Just headache watching it
why
well mine blinks too
too much wiring...
muy chafa
movements too fast
Try slowing it down from the settings
lllllllllllllllllllllllllllllllllllllllllllaaaaaaaaaaaaaaaaaaaammmmmmmmmmmmmmmeeeeeeeeeeeeeeeeeee
dont watch , cant see where this guy puts the wirers or anything
does their have to be a resistor on the button
yes otherwise the led will be half lit all the time
movement too fast