3 Ways to power an Arduino Board - Do you know them?

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.ย. 2021
  • 🤩 How much Arduino can you learn in 7 Days? 👇
    bit.ly/7_Day_Arduino_Challenge
    Buy access to all our courses now - For a limited time just 19USD per month with a 30 day satisfaction or your money back "No Hassle" guarantee! bit.ly/3ySsxvS
    **Get your Free Trial of Altium PCB design Software**
    www.altium.com/yt/programming...
    **Get the code, transcript, challenges, etc for this lesson on our website**
    bit.ly/2X5FViS
    We designed this circuit board for beginners!
    Kit-On-A-Shield: amzn.to/3lfWClU
    SHOP OUR FAVORITE STUFF! (affiliate links)
    ---------------------------------------------------
    Get your Free Trial of Altium PCB design Software
    www.altium.com/yt/programming...
    We use Rev Captions for our subtitles
    bit.ly/39trLeB
    Arduino UNO R3:
    Amazon: amzn.to/37eP4ra
    Newegg: bit.ly/3fahas8
    Budget Arduino Kits:
    Amazon:amzn.to/3C0VqsH
    Newegg:bit.ly/3j4tISX
    Multimeter Options:
    Amazon: amzn.to/3rRo3E0
    Newegg: bit.ly/3rJoekA
    Helping Hands:
    Amazon: amzn.to/3C8IYXZ
    Newegg: bit.ly/3fb03X1
    Soldering Stations:
    Amazon: amzn.to/2VawmP4
    Newegg: bit.ly/3BZ6oio
    AFFILIATES & REFERRALS
    ---------------------------------------------------
    ►Audible Plus Free trial: amzn.to/3j5IGrV
    ►Get LastPass: lastpass.wo8g.net/b3N1vk
    ►Join Honey- Save Money bit.ly/3xmj7rH
    ►Download Glasswire for Free:bit.ly/3iv1fql
    FOLLOW US ELSEWHERE
    ---------------------------------------------------
    Facebook: / programmingelectronics...
    Twitter: / progelecacademy
    Website: www.programmingelectronics.com/
    ARDUINO POWER SECTION SCHEMATIC
    In our discussion here, we are going to use an Arduino UNO as the base example - much of what we cover can be extended to other common Arduino boards, but in each case you’ll need to double check for your specific model.
    We are going to use the Arduino UNO schematic to inform our discussion - we’ll be looking at the power section.
    Arduino Power Section Schematic
    It seems like a lot going on - to simplify this a bit further we’ll reduce it down to this block diagram.
    arduino power options, USB, Vin, and DC jack with lines to circuit diagram
    When you see “USB PORT”, just imagine that’s where you plug your USB cable in, for “DC JACK” - imagine that where you plug your DC Jack in. And for the “VIN PIN”, that just the hole marked Vin on the power rail of an Arduino Board.
    On the right side we have the 5V and 3.3V pins. In between we have some components that I’ll explain shortly.
    POWERING ARDUINO W/ THE DC JACK
    Let’s start with powering an Arduino with the DC jack. Let’s say you hook up a wall wort power supply, or a battery pack to that DC jack - what happens? Per the diagram you can see it powers the 5V regulator on the board.
    Schematic of powering arduino with DC jack
    What’s so special about 5V? Well 5V is right in the range the microcontrollers on the Arduino board need in order to operate.
    Minimum Input voltage Maximum Input voltage Maximum Output current
    +5V regulator 6.2V 20V 1A
    +3.3V regulator 3.58V 16V 150mA
    The 5V regulator requires a min input voltage of 6.2 volts and can take a maximum input voltage of 20V - so the power supply you hook up to your DC jack needs to be in that range for voltage. The sweet spot is more like 7-12 volts, if your power supply is much higher than that, you’re wasting a lot of power on that 5V regulator in the form of heat dissipation.
    The DC jack is 2.1mm center-positive plug. It important that the plug you use is center positive. But just in case you accidentally use a center negative plug and reverse the polarity - the circuit has a diode that protects against that.
    Now, there’s a lot of details here I am going over rather quickly. We are developing an entire course on powering Arduino, and how to think about your current inventory - it’s currently in production - if you want to learn more about what we offer check out our courses page.
    OK - one more thing about that 5V regulator, it can provide up to 1A of current.
    CONTINUED…
    bit.ly/2X5FViS
    **About Us:**
    This Arduino lesson was created by Programming Electronics Academy. We are an online education company who seeks to help people learn about electronics and programming through the ubiquitous Arduino development board.
    **We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.**

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

  • @srikarp5195
    @srikarp5195 2 ปีที่แล้ว +11

    your info gave me peace😂😂😂...... this info cleared my many confusions, thank you

  • @sanwalfarooque2747
    @sanwalfarooque2747 2 ปีที่แล้ว +7

    Amazing video. Well explained. Loved it.

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

      Thanks for watching!

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

      Yes, thank you. You just explained how power works on an Arduino board. I’ve been wondering about this for about three years.

  • @piyushjaininventor
    @piyushjaininventor 10 หลายเดือนก่อน +3

    Nice video, clarified many doubts

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

    Very helpful tutorial! Many thanks!

  • @shvideo1
    @shvideo1 2 ปีที่แล้ว +4

    Excellent detailed information. Very useful video. Thank you

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

      Glad it was helpful! Are there any specific Arduino topics you would like covered?

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

      @@programmingelectronics I recently learned about the Vin pin to power Arduino from an external power source. while trying to design a self shut-off circuit using transistor latches. Any information about Arduino being able to put itself to sleep (internally or externally) in order to save power after it gets done with whatever its doing would be very useful.
      Also, it would be great to know how to drive a brushless motor from say a VCR capstan motor or a hard drive brushless motor. These are always very high quality motors.
      Or, how to use rotary encodes, optical encoders (with 4 pins or 6 pins) to record motor speed or location, or optical interrupters for stopping a moving motor when it gets to a certain location.
      I have salvaged so many parts from discarded electronics in the last 2 years, that it would very useful to drive these (often) very high quality motors and sensors rather than throw them away.
      It would also be such a valuable and great learning experience since these components are all part of products that people had paid good money to purchase.
      Thank you again for your very comprehensive and extremely useful video. It's very well done! Keep it up.
      Daniel

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

      @@shvideo1 Thanks for these idea!!!

  • @albertortiz1029
    @albertortiz1029 ปีที่แล้ว +19

    alright if I understood this video correctly, my circuit should not light on fire:)

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

    These videos are done so well sometimes i wish i could subscribe again

  • @user-bz3ld5qs4y
    @user-bz3ld5qs4y 7 หลายเดือนก่อน +3

    Thank you for the information

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

    Amazing!!! I loved it

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

    Nice one. Useful video.

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

    Thanks, I’ve been using the 5v out as an in wrongly instead of Vin for years.

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

    Well said! I like your style.

  • @mikek4icy752
    @mikek4icy752 2 ปีที่แล้ว +13

    Unless I'm mistaken, you can also provide power directly to the Arduino via the +5V pin (usually assumed as output +5V,) provided the source is regulated and protected such as from a reliable phone charger power bank or bench power supply. I did this on a Nano project where my only source was a Li-Ion BMS board (5V / 2A max). Keep in mind not to plug in any additional sources.

    • @programmingelectronics
      @programmingelectronics  2 ปีที่แล้ว +5

      I am pretty sure you are correct Mike (at least as I understand it). Like you said, keyword there is *regulated* ... I'm told a lot of cheap wall worts can have some pretty big voltage spikes which could potentially cause damage to the board. Thanks for adding this!

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

      Quick question, if I'm powering the arduino via the 5V pin, would I still be able to use it (the 5V pins) to power other components?

    • @KW-ei3pi
      @KW-ei3pi 9 หลายเดือนก่อน +2

      @@programmingelectronics I was waiting for that part of the discussion, but that would be 4 ways to power an Arduino. It's possible to power via the 5v pin, but with caveats, so it's basically "not recommended". I purchased a DIN rail mounted 5v power supply with plans to do this, but after researching it, I don't think I will be able to use it. I'll probably have to get a 7-12v supply and use the VIN pin.

    • @programmingelectronics
      @programmingelectronics  9 หลายเดือนก่อน +1

      @@benjaminyellin5095 yes you should be able to.

  • @buildersmark
    @buildersmark 2 ปีที่แล้ว +3

    What is the max amperage of the poly fuse before it trips?

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

    great video

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

    I needed to use a regulated 5v external supply to power my project. That also meant that I didn't want USB power to be a problem when programming it, otherwise the two supplies would be clashing with each other. In that case, my only option was to power the Arduino directly from the 5v pin with my external supply (thereby bypassing the 5v regulator) and make a special programming cable with the 5v USB line severed.

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

    Nice video, thanks :)

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

      Glad you liked it! Thanks a ton for watching! If there are other kinds of videos you would like to see, just let us know.

  • @kyle.riemen
    @kyle.riemen ปีที่แล้ว

    I have one question about this. I used to feed 5V and Ground to the GPIO Pins and not to the VIN Pin. I also was connected via USB Cable to the PC. Does that mean the 5V Pin never received Power and I was powering the Arduino via USB? Also if I power the Arduino via USB do I still need to connect the ground wire to an external ground or is it grounded with the USB Cable?

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

    @Programmimg Electronics Academy I was hoping this was going to answer my concern. I'm new to this stuff but in looking at the various adapter things that I can plug into the wall to power this, they have diffirent amperage ratings, from under 5 to 10 amps. Does it matter as far as using them to power to power the Arduino.

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

    Perfekt, thanks 👍🏼

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

    Another super useful video by PEA.

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

    Very informative

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

    I have 2 different adapters, a 12W 1000mA and 45W 3000mA , each can produce 5V .
    Which is the better one to use for an Ardurino project ?

  • @jmcalaramo
    @jmcalaramo ปีที่แล้ว

    Hi! I have a question, would an Arduino Uno work if I connect it to a Buck Converter which is connected to a motorcycle battery? I'm planning to use a motorcycle battery to power an Arduino.

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

    I was hoping this was going to answer my concern. I'm new to this stuff but in looking at the various USB things that I can plug into the wall to power this, they have different amperage ratings, from under 1 to 2 amps. Does it matter as far as using them to power the Arduino?

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

      Great question! For an Arduino UNO, as long as you are in the correct range for voltage on your power supply (7-12 volts), you'll be looking for a minimum amperage of around 1amp (1000mA), having more will not damage the board. What will damage the board is if you try to power a bunch of other stuff through the pins that exceed the amperage rating of the board.

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

      @@programmingelectronics Thank you! I'm slowly coming to an understanding of this stuff.

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

      My usb get heats up while connecting Uno board to computer

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

    not sure if you are still replying but my question is-
    my arduino nano works fine from usb with a phone charger brick 5v-2A now i want to use the same brick for a home automation project where the arduino will be turned on 24/7 and it will power on 1ldr and 1relay from the 5v pin of the nano, what am i dong wrong if any? is there any thing i should be aware of or will it work? like is there any chance that my board will be fried in 1week?

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

    hi, can i power arduino via usb and external 5v connected to vin?

  • @douglasrandalljr.860
    @douglasrandalljr.860 2 ปีที่แล้ว

    If the Vin pin is for supplying voltage why am I getting an output voltage reading on my DMM of 4.62 volts?

  • @carloscarty7632
    @carloscarty7632 ปีที่แล้ว

    I need to power with coins batteries to Arduino driver board , I have 4 coins batteries connected in series , how i connect the Positive and negative cables on the Driver board ,, + on the VIN and - on the ground?

  • @jeffreycashen6416
    @jeffreycashen6416 ปีที่แล้ว

    going by this explanation of plugging power packs or battery packs into the arduino, i unplugged the usb cable from my arduino, i then plugged a bought variable power pack into it, which starts at 9V, the arduino didn't even blink, didn't even show that it had power. I then unplugged the wall power jack and made up a 9V battery pack using 6 'AA' batteries (9.7V). i soldered the ends to a jack plug and plugged it in, i got nothing also. but as soon as i plugged the usb cable back in and attached it to a mobile battery charger pack, it works just fine. What am i doing wrong, please help me ??

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

    You always should draw the possible current verses on supply leads to make it immediately clear.

  • @barneycarparts
    @barneycarparts 6 หลายเดือนก่อน +1

    I bought 5 NANOs from ebay I plugged in a 9VDC wall wart that I found out later turned out to be 13VDC the NANO regulators did not work I had 7.2 VDC at NANO 5V pins LEDs were super bright. NANO ran for 5 days at 7.2VDC and locked up Causing a mis read on a flow switch and burned up a $1K UV Algea Killer bulbs. Tough lesson to learn I can't trust stated specs on Wall warts or the NANO on board Voltage regulators. I reverted to 2.1 AMP 5VDC Apple power blocks and mini USB cords to power the remaining NANOs. I will Switch to a Genuine Arduino Uno for critical projects. Official Arduinos are getting expensive at $27 each but, they are cheaper than UV bulbs.

  • @saviididi6535
    @saviididi6535 4 หลายเดือนก่อน +1

    Reminds me of the Spider Man mini games

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

    Is the instructional program self paced? If I get busy with work stuff my hobbies get put on a back burner.

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

      Great question - yes, the program is all self paced.

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

      @@programmingelectronics thanks for the feed back. signing up soon.

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

    i powering on VIN 12v on arduino Nano and UNO, like running fine. but when i made a simple circuit with the Atmega328p chip, the 12v power on the VCC was instantly fried so i had to add LM7085. But the sketch program works on a 12v scale, if it's a 5v scale my program is just useless. Can you give an idea?

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

      Depends on the circuit I suppose. The operating voltage on the Atmega328p is 2.7V to 5.5V - The Arduino has a voltage regulator to adjust to this.

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

    what is the current rate we can apply at Vin? like I have 12v 10Amps SMPS Can I connect this to power my Arduino???

    • @TheUnofficialMaker
      @TheUnofficialMaker ปีที่แล้ว

      Sure, it will draw only what it needs.

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

      yes, you can, it will draw the power that it needs but if you add a lot of things to your arduino and it needs to draw a lot of power it can damage it because i dont think the arduino can handle 10Amps

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

      @@jesseycoolen4169 oh fine, Ok now I got why I burnt my Arduino 😂!! So Either I should connect arduino alone or the components connected along with arduino should draw within Arduino's operating current rate! Thank You so much ❤️

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

    Hi! I am a student and i have no idea of any thing about arduino, but can i ask, i need it for school, when do we use a 9v battery on arduino?

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

    Can we connect power bank to DC jack with some arrangements

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

    Thank you so much , I am working a servo motor and my power source is the VIN pin , and now I see the VIN pin has no diode if I am supplying Negative Voltage.
    I think it is good because I am only using 9 volts battery.
    My question is VIN pin are cable also in powering servo motor? It can provide also 1 amp power,? Or only the DC jack?

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

      No the positive and negative wires to your servo go directly to your power supply and it needs to supply the recommended voltage for the servo , if that supply is over 5v you should use either V in or power jack to power the Arduino from the same power supply - There is a maximum supply voltage for these power inputs - typically 12v is recommended so if your servo is 24v you need to use a buck converter to drop the voltage to 12v max to feed the Arduino , the Arduino is used to supply the PWM pulses to the servo . Anytime you need to power anything from an Arduino pin- other than something like a led you need to look at using a transistor as the pins on an Arduino can only supply or sink a small amount of current - typically 40ma .
      You need to be aware also that some boards are 5v logic - like an arduino uno , mega etc but others are 3.3v logic .

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

    I initially thought it was going to talk about battery packs, solar panels or even a modded treadmill to power it.

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

      Great recommendation - we'll kick those around as a future video ideas!

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

    What happens if I apply more than 5V volts to 5V pin. Which components can be damage?

  • @Aaron-dn4hn
    @Aaron-dn4hn 11 หลายเดือนก่อน

    actually there are 4 ways, suppose you have a stable voltage of 5v you can connect it directly to the 5v pin of arduino

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

    8:12 where that fuse is located on Arduino ?

    • @programmingelectronics
      @programmingelectronics  ปีที่แล้ว

      Here is a picture of the location
      forum.arduino.cc/t/which-component-it-is/521929

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

    @Programming Electronics can 5 ampere can power the mg995

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

      If you have a 5Amp power supply (assuming the voltage is in the appropriate operating range for this servo), yes, I believe that would be sufficient for many applications. When the torque gets high on a servo, it can really draw a lot of current, so it depends on how it is being used. Hope this helps some!

  • @raptorthegamer5524
    @raptorthegamer5524 ปีที่แล้ว

    So if i want to power a motor with the Arduino, i need to use a transistor?

    • @programmingelectronics
      @programmingelectronics  ปีที่แล้ว

      If you want to power a motor, you're best off using a separate power supply to drive the motor. Also, you might consider using a separate motor driver module that takes care of circuit for you.

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

    Cool

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

    But my Arduino also works with 4.8v in vin pin 🤔

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

    Is it ok to give arduino 5V 3A power to 5v pin?

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

      Hi David, great question! I think you are asking if you can power an Arduino board via the 5V pin on the power rail with a 5V 3Amp power supply?
      The answer is yes, however, it’s important that your 5v supply be well regulated. Also, I’m not sure it would be the “Recommended” method. Some of the cheaper wall wort power supplies can fluctuate drastically with power spikes which could potentially damage the Arduino board components. That being said, if it’s a good regulated supply, it very doable.

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

      @@programmingelectronics yup, is it safety to run the arduino with 5V 3Amp power supply?
      is there a risk of damaged arduino?

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

      ​@@pokednaful If the power supply is not regulated, you can could damage the Arduino.

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

      @@programmingelectronics but the power supply is already regulated to 5V

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

      @@pokednaful If it's a well regulated supply you should be fine.

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

    can i power my arduino uno r3 with 7.4V? its 2 (18650)

    • @programmingelectronics
      @programmingelectronics  ปีที่แล้ว

      Yes, that should work Kali. Are you connecting your battery pack via the DC jack?

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

      @@programmingelectronics Yes i am surely connecting it to the DC jack.

    • @michaelcheich2481
      @michaelcheich2481 ปีที่แล้ว

      @@kali5495 Is it not powering on for you?

    • @kali5495
      @kali5495 ปีที่แล้ว

      @@michaelcheich2481 it did power on

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

    So you never actually plug it in? Great. I want to plug in the 9 volt and it doesn’t come with a jack right?

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

    common grounds?

  • @Mr.izukuMidoriya
    @Mr.izukuMidoriya ปีที่แล้ว +1

    I exploded my Arduino UNO by dc jack

  • @r.i.ptechnoblade9407
    @r.i.ptechnoblade9407 2 ปีที่แล้ว +2

    Only 9 more likes

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

    you sound like bryan cranston

  • @jesseycoolen4169
    @jesseycoolen4169 ปีที่แล้ว

    Hi, I was planning to use a power bank as a backup battery for an alarm system made with an arduino... I would just charge the powerbank with a phone charger and connect the powerbank to the arduino. Would it be a good idea to also connect a power supply to the dc jack?

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

      Do you got your answer please answer the query if possible

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

      @jesseycoolen4169

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

      @@Gaurav_Guru yes, it's possible