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
  • НаукаНаука

Комментарии • 43

  • @joeyGalileoHotto
    @joeyGalileoHotto Год назад +3

    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.

  • @aashoosharma1553
    @aashoosharma1553 Месяц назад +1

    this is a gem for the beginners of the

  • @russellford2069
    @russellford2069 4 года назад +3

    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

  • @henniekruger9115
    @henniekruger9115 4 года назад +2

    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

  • @sptmbr19th96
    @sptmbr19th96 5 лет назад +2

    Your tutorials are awesome! Thanks for that!

  • @pcollins5334
    @pcollins5334 4 месяца назад

    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 :-)

  • @raymaas15
    @raymaas15 5 лет назад +2

    Excellent videos, thanks for the help!

  • @maryvillegas6553
    @maryvillegas6553 Год назад

    Please make more Arduino videos. You are an excellent teacher. I have learned a lot.

  • @equinox9015
    @equinox9015 5 лет назад

    i love your videos i understand it perfectly

  • @stevefranklin8452
    @stevefranklin8452 6 месяцев назад +1

    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.

  • @nihalmohammed4740
    @nihalmohammed4740 5 месяцев назад +1

    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?

  • @JIngram
    @JIngram 7 лет назад +10

    You teach very well thankyou :)

  • @victormai3218
    @victormai3218 3 года назад +2

    BEST ON YT!!!

  • @inkits1
    @inkits1 3 года назад

    Very good presentation

  • @MultiFyber
    @MultiFyber 6 лет назад

    Hello benduino,
    Have you got any experience with LabView and control of stepper motors?

  • @Thatreaper
    @Thatreaper 6 месяцев назад +1

    best way to learn

  • @mithunchandrasaha403
    @mithunchandrasaha403 3 года назад

    Nice Explanation.sir

  • @inkits1
    @inkits1 3 года назад

    Thanks a lot my friend.

  • @natemay6892
    @natemay6892 7 лет назад

    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?

    • @benduino7327
      @benduino7327  7 лет назад

      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! :)

  • @drem395
    @drem395 6 лет назад +3

    8:08 int button=1
    Forgive me if I'm wrong but shouldn't it be int button=2 according to schematic? 7:43

    • @benduino7327
      @benduino7327  4 года назад

      Hello Dre M, yes according to the schematic it should be :)

  • @psyc55
    @psyc55 5 лет назад

    thank you :)

  • @harambematata416
    @harambematata416 4 года назад

    where can I buy Orange Pip seems intersting

  • @shogunz
    @shogunz 4 года назад

    with constants like the "led" you used, it's better to use const instead of int. Anyway good tutorial!

    • @m_t_t_
      @m_t_t_ 3 года назад

      well you still need to use int because const isnt a datatype

  • @obsidiantechz1371
    @obsidiantechz1371 4 года назад

    how to include 2 digital pins as OUTPUT?

  • @aiymankhan7222
    @aiymankhan7222 3 года назад

    How can I read the status of an OUTPUT pin?

  • @susbaka6756
    @susbaka6756 2 месяца назад

    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
    }

  • @_AR3EL
    @_AR3EL 3 года назад +1

    Nice tutorial man. Question
    Can we use DigitalWrite as input?

    • @benduino7327
      @benduino7327  3 года назад

      No, digitalRead is for inputs 😊

    • @_AR3EL
      @_AR3EL 3 года назад

      @@benduino7327 I just thought I could make an auto switch using DigitalWrite as input. Thanks man

  • @nicholastamas1204
    @nicholastamas1204 5 лет назад +1

    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.

    • @benduino7327
      @benduino7327  5 лет назад

      High means 5 volts is being output, Low mean 0 volts is being output :) (or input in this case)

  • @attalaw36
    @attalaw36 4 года назад

    use full lesson thank you

  • @SpottedEagleOwls
    @SpottedEagleOwls 3 года назад

    Thank you or this

  • @hisyst
    @hisyst 4 года назад

    display result is not good

  • @Moccalocca100
    @Moccalocca100 2 года назад

    pen mode

  • @bob-ny6kn
    @bob-ny6kn Год назад +1

    That's not a bracket. That's a parenthesis.

  • @epicchrist2941
    @epicchrist2941 3 года назад

    why didn't you use a directive ie #define instead of assigning a variable? Unnecessary usage of registers. otherwise keep doing the good job :)