Arduino Lesson 2 - digitalRead & digitalWrite
HTML-код
- Опубликовано: 14 июл 2024
- The led's wiring can be found here, you can wire it up using a breadboard, although I have it soldered onto a circuit board because it's easier that way: www.arduino.cc/en/uploads/Tut...
The second in a series of tutorials to help you understand the basics of the Arduino uno. In this session we will be going over digitalReads and digitalWrites and how to use them in the "real world".
I hope you enjoy the video!
Arduino software (IDE): www.arduino.cc/en/Main/Software - Наука
I've studied countless hours about Arduino; My final on Mechatronics is on Thursday with one of the questions being on Arduinos and I spent the whole semester in lab struggling with this because I didn't know the basics, and I finally get it thanks to these tutorials.
this is a gem for the beginners of the
Brilliant tutorial. This was my first practical lesson on the Arduino and it gave me a basic understanding to get me up and running. Only got my kit out 30 minutes ago and already I'm uploading Sketches and dimming LED's. Thank You
i watch a lot of videos and yours is by far the best explained in detail. I could follow perfectly what you were doing ...thanks
Your tutorials are awesome! Thanks for that!
Good stuff. Easy to follow along. I've been wanting to add motion to my metal sculptures for years and your videos has finally helped me break through the knowledge wall :-)
Excellent videos, thanks for the help!
Please make more Arduino videos. You are an excellent teacher. I have learned a lot.
i love your videos i understand it perfectly
It saddens me to see that such a fantastic series of videos like this has garnered such a small following.
Ben, thank you for the effort you put in. You deserve way more than this. Perhaps you could weave in some conspiracy about flat earth in the video and you'd get millions of views.
Brilliant tutorials and thank you for the playlist. I have a doubt in digitalRead. In the circuit (7:24), why we need a resistor for the switch? Is only Pin 2 and 5V enough?
You teach very well thankyou :)
Thanks! :)
@@benduino7327 can you help me
BEST ON YT!!!
Very good presentation
Hello benduino,
Have you got any experience with LabView and control of stepper motors?
best way to learn
Nice Explanation.sir
Thanks a lot my friend.
how do i go about using digitalwrite to program in a button? i want to use the arduino to control a connection elsewhere to complete a circuit in a device, remotely. i dont want voltage to be present, but to only close the loop between the two wires set to the appropriate pins?
Hi Nate,
It sounds like you either want a circuit breaking switch (if you're just turning an external device on or off) or a digitalRead. If the circuit breaking switch isn't what you're thinking could you give me some more details about what you are trying to do and I can probably help! :)
8:08 int button=1
Forgive me if I'm wrong but shouldn't it be int button=2 according to schematic? 7:43
Hello Dre M, yes according to the schematic it should be :)
thank you :)
where can I buy Orange Pip seems intersting
with constants like the "led" you used, it's better to use const instead of int. Anyway good tutorial!
well you still need to use int because const isnt a datatype
how to include 2 digital pins as OUTPUT?
How can I read the status of an OUTPUT pin?
here is the code:
int led = 12;
int button = 13;
void setup() {
pinMode(led, OUTPUT);
pinMode(button, INPUT);
}
void loop() {
digitalWrite(led, LOW);
delay(1000); //how long its off
digitalWrite(led, HIGH);
delay(1000); //how long its on
}
Nice tutorial man. Question
Can we use DigitalWrite as input?
No, digitalRead is for inputs 😊
@@benduino7327 I just thought I could make an auto switch using DigitalWrite as input. Thanks man
all of this was easy and simple to follow except for the last part when you are talking about certain pins being pulled high. for some reason i dont understand what you mean by this.
High means 5 volts is being output, Low mean 0 volts is being output :) (or input in this case)
use full lesson thank you
Thank you or this
display result is not good
pen mode
That's not a bracket. That's a parenthesis.
why didn't you use a directive ie #define instead of assigning a variable? Unnecessary usage of registers. otherwise keep doing the good job :)