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

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ • 121

  • @mikek4icy752
    @mikek4icy752 2 роки тому +14

    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 Рік тому +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  Рік тому +1

      @@benjaminyellin5095 yes you should be able to.

    • @jeremy6384
      @jeremy6384 5 місяців тому

      I need to leave usb plugged in for easy programming, but I want the arduino powered on more often than the usb will be on. I belive vin will be my best choice.

  • @srikarp5195
    @srikarp5195 3 роки тому +16

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

  • @piyushjaininventor
    @piyushjaininventor Рік тому +4

    Nice video, clarified many doubts

  • @Enigma758
    @Enigma758 2 роки тому +6

    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.

  • @albertortiz1029
    @albertortiz1029 2 роки тому +28

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

  • @21thTek
    @21thTek 4 місяці тому +2

    at 5v reg output you have less than 1 amp due to the power lost in the 3.3v regulator, plus the 3.3v bus current consumption...

  • @GLH8
    @GLH8 10 місяців тому

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

  • @ChanithuTillekeratne
    @ChanithuTillekeratne Рік тому +4

    Thank you for the information

  • @sanwalfarooque2747
    @sanwalfarooque2747 2 роки тому +8

    Amazing video. Well explained. Loved it.

    • @programmingelectronics
      @programmingelectronics  2 роки тому +1

      Thanks for watching!

    • @faithinverity8523
      @faithinverity8523 2 роки тому +2

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

  • @sam_void1528
    @sam_void1528 22 дні тому +1

    Hey, i'm really sorry for this stupid question but can I use my laptop to provide the current? and if so do I use that blue wire they give or do I use two C-sided cables which we often use to charge phones directly from the computer? Pls reply

    • @programmingelectronics
      @programmingelectronics  16 днів тому

      Not a stupid question at all!
      You can power your *Arduino* with a USB cable connected to your computer (if you have an Arduino UNO R3, then it would be an A/B type USB cable), BUT - if you have a bunch of stuff connected to your Arduino (e.g. motors, or long LED strips, etc), then you should use a separate power supply to power that stuff. The Arduino is primarily meant to be the controller, not the power supply, for connected components.

  • @captainahab8444
    @captainahab8444 2 роки тому +2

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

  • @shvideo1
    @shvideo1 3 роки тому +5

    Excellent detailed information. Very useful video. Thank you

    • @programmingelectronics
      @programmingelectronics  3 роки тому +1

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

    • @shvideo1
      @shvideo1 3 роки тому +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  3 роки тому +2

      @@shvideo1 Thanks for these idea!!!

  • @barneycarparts
    @barneycarparts Рік тому +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.

  • @TheJimtanker
    @TheJimtanker 3 роки тому +3

    Another super useful video by PEA.

  • @DesertVox
    @DesertVox 3 роки тому +3

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

  • @leythecg
    @leythecg 3 роки тому +3

    Very helpful tutorial! Many thanks!

  • @mickhurley7305
    @mickhurley7305 9 місяців тому

    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 ?

  • @oh_yeah_
    @oh_yeah_ Рік тому

    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?

  • @scottscontracting
    @scottscontracting 3 роки тому +1

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

  • @neurotech6194
    @neurotech6194 2 роки тому +3

    Amazing!!! I loved it

  • @TheUnofficialMaker
    @TheUnofficialMaker 2 роки тому +1

    Well said! I like your style.

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

  • @Aaron-dn4hn
    @Aaron-dn4hn Рік тому

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

  • @duck1257
    @duck1257 2 роки тому +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?

  • @buildersmark
    @buildersmark 3 роки тому +3

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

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

  • @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 2 роки тому

      Sure, it will draw only what it needs.

    • @jesseycoolen4169
      @jesseycoolen4169 2 роки тому +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 роки тому +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 ❤️

  • @claudiozanella256
    @claudiozanella256 2 роки тому +2

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

  • @kryo4678
    @kryo4678 7 місяців тому

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

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

  • @21thTek
    @21thTek 4 місяці тому +2

    Excelent !! 🌟🌟🌟🌟🌟

  • @adambeedle
    @adambeedle 3 роки тому +1

    Very informative

  • @Richie_
    @Richie_ 3 роки тому +1

    Nice one. Useful video.

  • @erhandeveci1680
    @erhandeveci1680 2 роки тому +1

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

  • @mradulbhardwaj3147
    @mradulbhardwaj3147 2 роки тому +2

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

  • @carloscarty7632
    @carloscarty7632 2 роки тому

    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?

  • @douglasrandalljr.860
    @douglasrandalljr.860 3 роки тому

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

  • @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 Рік тому

      My usb get heats up while connecting Uno board to computer

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

  • @RixtronixLAB
    @RixtronixLAB 3 роки тому +1

    Nice video, thanks :)

    • @programmingelectronics
      @programmingelectronics  3 роки тому

      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.

  • @davd_ve
    @davd_ve 2 роки тому +1

    Perfekt, thanks 👍🏼

  • @ankyotekai
    @ankyotekai 9 місяців тому

    great video

  • @jesseycoolen4169
    @jesseycoolen4169 2 роки тому

    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?

  • @NbYash
    @NbYash 2 роки тому

    Can we connect power bank to DC jack with some arrangements

  • @gurumultitask9979
    @gurumultitask9979 3 роки тому

    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  3 роки тому

      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.

  • @mradulbhardwaj3147
    @mradulbhardwaj3147 2 роки тому +1

    8:12 where that fuse is located on Arduino ?

    • @programmingelectronics
      @programmingelectronics  2 роки тому

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

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

  • @raptorthegamer5524
    @raptorthegamer5524 2 роки тому

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

    • @programmingelectronics
      @programmingelectronics  2 роки тому

      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.

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

  • @kali5495
    @kali5495 2 роки тому +1

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

    • @programmingelectronics
      @programmingelectronics  2 роки тому

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

    • @kali5495
      @kali5495 2 роки тому +1

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

    • @michaelcheich2481
      @michaelcheich2481 2 роки тому

      @@kali5495 Is it not powering on for you?

    • @kali5495
      @kali5495 2 роки тому

      @@michaelcheich2481 it did power on

  • @Ainmx
    @Ainmx 3 роки тому

    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 3 роки тому

      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 .

  • @tony2wheelz408
    @tony2wheelz408 10 місяців тому

    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?

  • @Mr.izukuMidoriya
    @Mr.izukuMidoriya 2 роки тому +1

    I exploded my Arduino UNO by dc jack

  • @patrickmclaughlin6013
    @patrickmclaughlin6013 3 роки тому

    common grounds?

  • @GHILLIESARCADEANDMORE
    @GHILLIESARCADEANDMORE 3 роки тому +1

    Cool

  • @RIPtechnoblade1
    @RIPtechnoblade1 2 роки тому +2

    Only 9 more likes

  • @niharikapawar8051
    @niharikapawar8051 Рік тому

    you sound like bryan cranston