Это видео недоступно.
Сожалеем об этом.

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...

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

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

    I have struggled with arduino for years
    Well done, your course content has been excellent, well structured, easy to follow
    Thank you

  • @Jeff_Seely
    @Jeff_Seely 3 года назад +5

    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!

  • @d3bbi339
    @d3bbi339 4 года назад +15

    I'm so glad I found your clear tutorials! I had no idea about the internal resistor on the uno until today lol.

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

    you are the best arduino teacher ive fount on all my years trying to figure out arduino thx

  • @shreyash2806
    @shreyash2806 2 года назад +1

    thank you so much for this series

  • @karvasika
    @karvasika 7 лет назад +5

    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?

    • @karvasika
      @karvasika 7 лет назад +2

      Ah ok found out that the INPUT-mode pins have a very high built-in resistor! This explains it! :)

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

      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.

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

    Mosfets and H bridge my favorite

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

    Thanks so much for your excellent video. I learned a lot and it was very simple. I'm excited about learning more.

  • @shmuelschreiber109
    @shmuelschreiber109 2 года назад +1

    mine dosent wor. can someone help me?

  • @hansdegroot652
    @hansdegroot652 10 месяцев назад

    How to deal with high or low at power on?

  • @clems6989
    @clems6989 22 дня назад

    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 ?

    • @Core-Electronics
      @Core-Electronics  18 дней назад

      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.

  • @ZaOneJohnny
    @ZaOneJohnny 2 года назад +1

    i have copied everything from building the circuit to writing the code and this just wont work, can anyone help?

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

    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?

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

    This was so helpful Thank you so much

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

    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?

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

    is input pullup only applicable to active low logic programs?

  • @jeevansurendran
    @jeevansurendran 6 лет назад +1

    This means that when your button is off the bulb glows and if the button is on the bulb dosent glow

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

    Wish you should show how you wire it up

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

    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?

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

    Can we use 1k resistor?

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

    how the pin 2 is connected to 5 volts?

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

    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

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

      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.

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

    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.

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

      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
      }

  • @qwertyqwerty-qs1yj
    @qwertyqwerty-qs1yj 4 года назад

    If it's active-low logic, shouldn't the button give a signal of 1 when connected to ground?

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

      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"

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

    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.

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

    pin 3,5 and 6 could be configured as outputs or inputs?

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

      They can all be inputs or outputs just not both at the same time

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

    Very good!

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

    cool dude!

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

    amazing

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

    I have questions
    How do i contact you?

    • @Core-Electronics
      @Core-Electronics  4 года назад

      For the best support we recommend to post questions to our forum: coreelec.io/forum

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

    Tnx..

  • @homedad3324
    @homedad3324 4 года назад +4

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

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

    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

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

    What is pinMode

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

      The literal pinmode.
      Like an led pin is name as ledpin its mode is output

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

      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)

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

    Useful tutorial for a beginner like me thanks for sharing and please change your hairstyle it's a bit distracting.