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.
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!
@@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.
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.
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.
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
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.
@@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
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.
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?
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?
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 ??
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
@@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 ❤️
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.
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?
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?
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.
@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.
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?
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?
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.
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.
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!
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?
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 .
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.
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!
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?
@@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.
@@benjaminyellin5095 yes you should be able to.
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.
your info gave me peace😂😂😂...... this info cleared my many confusions, thank you
Glad it could help! Thanks for watching.
Nice video, clarified many doubts
Thanks so much for watching!
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.
alright if I understood this video correctly, my circuit should not light on fire:)
That is correct Albert :)
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...
Thanks, I’ve been using the 5v out as an in wrongly instead of Vin for years.
Thank you for the information
Thanks a ton for watching!
Amazing video. Well explained. Loved it.
Thanks for watching!
Yes, thank you. You just explained how power works on an Arduino board. I’ve been wondering about this for about three years.
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
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.
These videos are done so well sometimes i wish i could subscribe again
Thanks a ton for watching!
Excellent detailed information. Very useful video. Thank you
Glad it was helpful! Are there any specific Arduino topics you would like covered?
@@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
@@shvideo1 Thanks for these idea!!!
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.
Another super useful video by PEA.
Agree!
Thanks Jim!
Thanks!
I initially thought it was going to talk about battery packs, solar panels or even a modded treadmill to power it.
Great recommendation - we'll kick those around as a future video ideas!
Very helpful tutorial! Many thanks!
Glad it was helpful!
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 ?
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?
Is the instructional program self paced? If I get busy with work stuff my hobbies get put on a back burner.
Great question - yes, the program is all self paced.
@@programmingelectronics thanks for the feed back. signing up soon.
Amazing!!! I loved it
Awesome! Thank you!!
Well said! I like your style.
Thank V J!
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?
actually there are 4 ways, suppose you have a stable voltage of 5v you can connect it directly to the 5v pin of arduino
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?
When you have low power requirement and use the sleep mode.
@@TheUnofficialMaker oh okayy, thank youu
Thanks VJ!
What is the max amperage of the poly fuse before it trips?
500ma. It says in the video
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 ??
what is the current rate we can apply at Vin? like I have 12v 10Amps SMPS Can I connect this to power my Arduino???
Sure, it will draw only what it needs.
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
@@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 ❤️
You always should draw the possible current verses on supply leads to make it immediately clear.
hi, can i power arduino via usb and external 5v connected to vin?
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.
Excelent !! 🌟🌟🌟🌟🌟
Thanks for watching!
Very informative
Thanks! I hope it was helpful.
Nice one. Useful video.
Thanks Richie!
What happens if I apply more than 5V volts to 5V pin. Which components can be damage?
I think primarily the microcontroller can be damaged.
But my Arduino also works with 4.8v in vin pin 🤔
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?
If the Vin pin is for supplying voltage why am I getting an output voltage reading on my DMM of 4.62 volts?
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?
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.
@@programmingelectronics Thank you! I'm slowly coming to an understanding of this stuff.
My usb get heats up while connecting Uno board to computer
@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.
Nope, as long as the minimum is met.
Nice video, thanks :)
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.
Perfekt, thanks 👍🏼
Thanks! I hope it helped!
great video
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?
Do you got your answer please answer the query if possible
@jesseycoolen4169
@@Gaurav_Guru yes, it's possible
Can we connect power bank to DC jack with some arrangements
only if above about 7v.
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?
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.
8:12 where that fuse is located on Arduino ?
Here is a picture of the location
forum.arduino.cc/t/which-component-it-is/521929
Is it ok to give arduino 5V 3A power to 5v pin?
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.
@@programmingelectronics yup, is it safety to run the arduino with 5V 3Amp power supply?
is there a risk of damaged arduino?
@@pokednaful If the power supply is not regulated, you can could damage the Arduino.
@@programmingelectronics but the power supply is already regulated to 5V
@@pokednaful If it's a well regulated supply you should be fine.
So if i want to power a motor with the Arduino, i need to use a transistor?
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.
@Programming Electronics can 5 ampere can power the mg995
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!
can i power my arduino uno r3 with 7.4V? its 2 (18650)
Yes, that should work Kali. Are you connecting your battery pack via the DC jack?
@@programmingelectronics Yes i am surely connecting it to the DC jack.
@@kali5495 Is it not powering on for you?
@@michaelcheich2481 it did power on
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?
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 .
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?
I exploded my Arduino UNO by dc jack
Yikes! What kind of power supply did you hook up?
common grounds?
yes
Cool
Thanks for watching!
Only 9 more likes
Thanks Charlie!
you sound like bryan cranston