Arduino Workshop - Chapter Two - Using Digital Pins

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024
  • 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...

ความคิดเห็น • 50

  • @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 ปีที่แล้ว +6

    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

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

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

  • @joshkrispy3846
    @joshkrispy3846 2 ปีที่แล้ว

    This was so helpful Thank you so much

  • @ferb1rahert
    @ferb1rahert 21 วันที่ผ่านมา

    yeah very cool I'm going to watch this again and again to understand the breadboard and its correlation with our designed schematic cuz I'm dumb

    • @ferb1rahert
      @ferb1rahert 21 วันที่ผ่านมา

      nope I am not dumb just needed to watch previous video carefully smh

  • @allanpatterson7653
    @allanpatterson7653 4 ปีที่แล้ว

    Mosfets and H bridge my favorite

  • @tonycstech
    @tonycstech 2 ปีที่แล้ว

    Wish you should show how you wire it up

  • @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?

  • @shmuelschreiber109
    @shmuelschreiber109 2 ปีที่แล้ว +1

    mine dosent wor. can someone help me?

  • @hansdegroot652
    @hansdegroot652 11 หลายเดือนก่อน

    How to deal with high or low at power on?

  • @clems6989
    @clems6989 หลายเดือนก่อน

    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  หลายเดือนก่อน

      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 3 ปีที่แล้ว +1

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

  • @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

  • @meysam6606
    @meysam6606 4 ปีที่แล้ว

    Very good!

  • @marklesterburgos3723
    @marklesterburgos3723 3 ปีที่แล้ว

    is input pullup only applicable to active low logic programs?

  • @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?

  • @masonicwolfvtf
    @masonicwolfvtf 4 ปีที่แล้ว

    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
      }

  • @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?

  • @discipulusoperarios2721
    @discipulusoperarios2721 2 ปีที่แล้ว

    cool dude!

  • @wasifalam6170
    @wasifalam6170 4 ปีที่แล้ว

    how the pin 2 is connected to 5 volts?

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

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

  • @loveen3186
    @loveen3186 2 ปีที่แล้ว

    amazing

  • @kimberlycarreon1804
    @kimberlycarreon1804 3 ปีที่แล้ว

    Tnx..

  • @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"

  • @abdullahtayeh1853
    @abdullahtayeh1853 4 ปีที่แล้ว

    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

  • @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

  • @homedad3324
    @homedad3324 4 ปีที่แล้ว +5

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

  • @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)

  • @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

  • @ironspider9026
    @ironspider9026 5 ปีที่แล้ว

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