Push Button and LED with Arduino(code explained) | Control LED with push button | Arduino Tutorial 3

  Рет қаралды 58,577

Tech at Home

Tech at Home

4 жыл бұрын

Part-3:
* Explanation of digitalRead()
* Working with Push button and LED
Code & Circuit :
drive.google.c...
Learn Arduino programimng even without components (Online Arduino Simulator) :
Tutorial video - • How to learn Arduino u...
Part - 4(IR sensor) : • IR Sensor and LED with...
Product Links
Arduino Uno : www.flyrobo.in...
OR
amzn.to/46vgG9z
Follow us on Instagram :
/ tech_at_home
Like us on Facebook :
/ tech-at-home-220885266...
#ArduinoTutorials#LEDblink#techathome
Thanks for watching!
Like Share and Subscribe

Пікірлер: 32
@sewingmachinesindetail
@sewingmachinesindetail 9 ай бұрын
Thank you for this tutorial. I like to ask you about the types of the parameters used. When You use PinMode(6,INPUT). Could it have been PinMode(s,INPUT) ? Cound s have been declared as a constant instead of an integer? Do digitalRead(s) require, that you use an integer as parameter?
@techathome
@techathome 8 ай бұрын
Welcome! Not necessarily int. You can also use byte as datatype. Since the value(6) is small and accommodate within 255(max size of byte). But Const is a keyword. You can use this for pin declarations since the pin number is fixed. Ex: const int s= 6; or const byte s= 6;
@sewingmachinesindetail
@sewingmachinesindetail 8 ай бұрын
@@techathome Thank you. 🙂
@farwakhan878
@farwakhan878 8 ай бұрын
Sir what if the push button have four terminals then how will i connect that. In your video it had only two terminals but the push button i got having four terminals
@techathome
@techathome 8 ай бұрын
There is no difference in the functionality. 4 pin buttons are used to control two devices together, but you can still use the same in this case. Keeping the button pressed, check which two pins are getting connected used continuity tester(on multimeter)
@farwakhan878
@farwakhan878 8 ай бұрын
​@@techathome thanku sir😊
@rohanshiragaonkar917
@rohanshiragaonkar917 Ай бұрын
Thank u sir
@sojunkchandra
@sojunkchandra 8 ай бұрын
Wonderful❤
@techathome
@techathome 8 ай бұрын
Thanks 🤗
@Lifeandlittleones
@Lifeandlittleones 9 ай бұрын
The link you have provided for code and circuits is not open for any video.pleaee help
@techathome
@techathome 9 ай бұрын
That is compressed file. Install winRaR software on your computer and extract using it.
@tinmihalic6618
@tinmihalic6618 9 ай бұрын
How to make simulink model to make it work instead of coding
@techathome
@techathome 9 ай бұрын
I have not tried it.
@sukhWins
@sukhWins Жыл бұрын
Greatly explained
@techathome
@techathome Жыл бұрын
Thank you!
@electronicsideas1361
@electronicsideas1361 7 ай бұрын
If button is pressed 3 times with then..LED ON HOW TO DO HELP ME
@techathome
@techathome 7 ай бұрын
You have to keep a counter and monitor the value until 3 count. Can you send request on mail: deepakhd20@gmail.com
@novideos9144
@novideos9144 3 жыл бұрын
Starting and ending circuit are different
@adilabusafa
@adilabusafa 11 ай бұрын
أهلاً وسهلاً ومرحباً بك-شكراً لك-يتعذر التعليق-لا أعلم .
@sarimabdullah3606
@sarimabdullah3606 2 жыл бұрын
it is not working
@sriumeshsandala7674
@sriumeshsandala7674 Жыл бұрын
Can we use 1k resistor?
@techathome
@techathome Жыл бұрын
You can use
@kemaketseforkssebitiela3089
@kemaketseforkssebitiela3089 8 ай бұрын
I thought he was suppose to use analogRead instead of digitalRead since he is using an input device.
@techathome
@techathome 8 ай бұрын
analogRead and digitalRead are two different functions to be used depending on the type of input device. Here I am using push button which is digital, so digitalRead. In case of analog inputs like potentiometer, sensors you have to use analogRead.
@theslog69
@theslog69 2 жыл бұрын
best tutorials love it .
@techathome
@techathome 2 жыл бұрын
Thank you
@dvgelectrician1605
@dvgelectrician1605 3 жыл бұрын
super
@techathome
@techathome 3 жыл бұрын
Thanks
@wiambekkal7663
@wiambekkal7663 6 ай бұрын
it doesn't work!!!!!!!!
@techathome
@techathome 6 ай бұрын
Check the connection.
@tusharankushpetkar5360
@tusharankushpetkar5360 Жыл бұрын
Circuite diagram are not open
@techathome
@techathome Жыл бұрын
Download complete rar file and extract
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 9 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 35 МЛН
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 51 МЛН
Arduino - Turn LED On and Off With Push Button
23:33
Robotics Back-End
Рет қаралды 116 М.
Can You Forge Tungsten?
16:14
Alec Steele
Рет қаралды 838 М.
Arduino Tutorials: Control a LED with a push Button || tinkercad
13:42
SBS online classes
Рет қаралды 90 М.
Arduino Tutorials: Control a LED with a Button
8:14
HackTheWorld
Рет қаралды 402 М.
OLED Displays with Arduino - I2C & SPI OLEDs
41:41
DroneBot Workshop
Рет қаралды 1,1 МЛН
How to Program a Push Button with an Arduino
9:45
Robot Research Lab
Рет қаралды 85 М.
Arduino push button led | arduino button led projects
5:53
Mr ElectroUino
Рет қаралды 46 М.
#samsung #retrophone #nostalgia #x100
0:14
mobijunk
Рет қаралды 15 МЛН
Первый взгляд на Pixel 9
21:01
Rozetked
Рет қаралды 379 М.