Это видео недоступно.
Сожалеем об этом.
Arduino Workshop - Chapter Two - Using Digital Pins
HTML-код
- Опубликовано: 27 фев 2017
- The full Arduino Workshop in step-by-step format can be found here core-electroni...
In this section, we'll learn how to use the digital pins to read inputs and control outputs.
We're official retailers for Arduino in Australia - powered by makers, for makers! core-electroni...
I have struggled with arduino for years
Well done, your course content has been excellent, well structured, easy to follow
Thank you
This is one of the most well formatted and comprehensive technical instructional video sets I've ever laid eyes on. The instructor is very gifted for capturing attention and presenting content. I have five daughters one is interested in code and electronics. She's only 10 and I have trouble presenting what I know (I repair process instrumentation and automation). She has picked up so much since watching these lessons. Thank you my friend. Absolutely well done!
I'm so glad I found your clear tutorials! I had no idea about the internal resistor on the uno until today lol.
you are the best arduino teacher ive fount on all my years trying to figure out arduino thx
thank you so much for this series
Thank you for the really clear tutorials, starting with my first circuits and I was very glad to find this kind of tutorial that explains all the stuff well.
I have one questions: when I push the button on pin 2, doesn't that become a short circuit because pin 2 is then directly connected to ground? Or what prevents the currency from heating up the wire and destroying the device when the button is pressed down?
Ah ok found out that the INPUT-mode pins have a very high built-in resistor! This explains it! :)
this is where the pullup command comes in. If you don't want to use pullup you can just attach a resistor of very high resistance to the line connecting to the ground, it will protect the circuit from short circuit and also prevents ghost signals to the arduino.
Mosfets and H bridge my favorite
Thanks so much for your excellent video. I learned a lot and it was very simple. I'm excited about learning more.
mine dosent wor. can someone help me?
How to deal with high or low at power on?
Question : @9:25 he created the variable inside the void loop, why did he not declare this variable at the top with the others? Is this then a "local" variable and not a "global" variable ?
If we create the variable outside the loop and set it to 0, the code would then go into the loop and then immediately update it to the value of the button so in this case it would have no effect. If you wanted extra piece of mind (like if you were controlling a motor base on the state of the button), you could set it to a value outside the loop to ensure that it is initialised to the correct value you want.
i have copied everything from building the circuit to writing the code and this just wont work, can anyone help?
Would it be more energy efficient if when the button is not pressed, then the circuit is open, and while the button is pressed the circuit is closed.
I am guessing that is a different type of button?
This was so helpful Thank you so much
Hello! I would like to ask a question. What happens if I give to the LED pin the opposite reading of the button pin through the code?
is input pullup only applicable to active low logic programs?
This means that when your button is off the bulb glows and if the button is on the bulb dosent glow
Wish you should show how you wire it up
if i do calculations outside void setup & void loop at end of program....will my program execute serially or first it will solve whats outside the setup&loop and then setup-loops?
Can we use 1k resistor?
how the pin 2 is connected to 5 volts?
I have a question, the button is connected to pin 2 and ground while the led is connected to pin 3 and ground, then why does the led switches off when it is pressed. Please help
This will work because of the code that will be programed onto the Arduino board. He will say that if the Arduino reads that the button is pushed then it will turn on the led.
I am really enjoying this series. I do have a question though. Is there a way to use multiple buttons combinations to create a single action. Like button1=high button2=high button3=low moves 4 servos to one set of position. Then pressing button1=low button2=high button 3 =high and servos change to a different position.
Yes, and that is actually quite simple to do, you would just need an if statement, like this...
if(pin1==HIGH && pin2==HIGH && pin3 == LOW)
{
// code you want to execute
}
If it's active-low logic, shouldn't the button give a signal of 1 when connected to ground?
that not active low logic it is basically that in its normal state it is high and when its grounding it changes that value to low or "0"
Hi... have been enjoy your tutorial videos they have been a great help in my understanding of Arduino coding. I would like to ask if a 'Pull Up' Resistor should be used if the sketch is to be loaded to a ATtiny or ATMega IC or can one safely use the "INPUT_PULLUP" (mins. 4:10 - 7:29) in a Arduino Sketch. Thank you and keep up the great tutorials.
pin 3,5 and 6 could be configured as outputs or inputs?
They can all be inputs or outputs just not both at the same time
Very good!
cool dude!
amazing
I have questions
How do i contact you?
For the best support we recommend to post questions to our forum: coreelec.io/forum
Tnx..
Posted 3 years ago with 12 comments but I will add my 2 cents in anyway. The background music is highly annoying and is still used today by creators for some reason. I am not sure what study said it was a good idea but to anyone who really wants to hear what you have to say it's FN annoying!!!!!
get out of here boi
You are not paying them
So shut up
this tutorial is good, but i am still sad because while testing my program in the middle of the video it turns out the uno doesn't work with the joystick library I wanted to use for my button box. 30 day return policy time, do your research before buying shit kids
What is pinMode
The literal pinmode.
Like an led pin is name as ledpin its mode is output
pinMode is a function that can tell the arduino wether that specific pin should be used as an output (say to power an led) or an input (to read data from a button or sensor)
Useful tutorial for a beginner like me thanks for sharing and please change your hairstyle it's a bit distracting.