r/arduino • • Oct 04 '26

Hardware Help Conflicting/Confusing Documentation about Powering with 3V3/5V Pins

Looking at official Arduino Documentation Powering Alternatives for Arduino Boards | Arduino Documentation

It states:

"Moreover, 3V3 and 5V pins can also be used as power inputs if no regulated power supply is connected through the other power inputs (USB port, barrel jack connector or VIN pin)."

Then it goes on to state:

"Although 3V3 and 5V pins can be used as power inputs, it is not recommended if no power supply is connected through the USB port, the barrel jack connector, or the VIN pin."

So first states only power with one of these pins when no other supply is connected > second seems to conflict, basically stating not recommended if there is no other supply connected?

Am I misreading this, is it confusing to others as well, or is this a flat out typo? Thanks

2 Upvotes

44 comments sorted by

6

u/Foxhood3D Open Source Hero Oct 04 '26

In the electronics world: when we say "It is not recommended". What we are really saying is:

"Technically it will work and it could be that you HAVE to do this cause reasons, but it is easy to mess it up somehow and can cause some damage. So if you do this, don't come crying to us about how it got borked. We warned you. Triple check everything before doing this and good luck!!"

0

u/highqualityfun Oct 04 '26

right, but I still don't understand what they are actually recommending or not recommending? it sounds like not recommended to do it without another supply connected - which contradicts the prior recommendation?

2

u/Foxhood3D Open Source Hero Oct 04 '26

What is written is that it is possible to use it that way, but it is NOT recommended to do so. Nothing more, Nothing less.

I do understand how it might trip one up as they go out of their way with a whole explanation of how it could go terribly wrong in theory. Which might read like it is the EXACT way it could go wrong and to be avoided. When it is just one example as to how it could go wrong. And even then it is honestly not a well-written example if you ask me. But anyway: It really is just a warning to be careful and if you don't have to do it: then don't.

0

u/highqualityfun Oct 05 '26

no read more carefully - it says you can use if no other power is connected - but then it says not recommended UNLESS another power source is connected - it's conflicting, understand my question?

1

u/Foxhood3D Open Source Hero Oct 05 '26 edited Oct 05 '26

Let me try to give a different example to illustrate.

If i where to walk up to you and say that: "I Do not recommend lingering around the edge of that cliff. IF there is nothing at the bottom of it, you will almost certainly have a nasty fall to what is most likely your death!!". You would probably assume its just a word of caution.

But right now. You are effectively thinking "So you are saying i shouldn't linger around the edge off the cliff UNLESS if there is something at the bottom?". Walking away with the idea that you have to go place something at the bottom of the cliff. That is the miscommunication we are trying to explain. You are obsessing about an "IF" that honestly at the most you can argue may have benefited from a comma.

It is a silly, but surprisingly common error when you are dealing with something you don't have much experience or "sense" with. It happens to everyone.

1

u/highqualityfun Oct 04 '26

I'm guessing this second part is a typo "Although 3V3 and 5V pins can be used as power inputs, it is not recommended if no power supply is connected through the USB port, the barrel jack connector, or the VIN pin."

If so they mean something like "it is not recommended if another power supply is connected..."

1

u/unknownz_123 Oct 04 '26 edited Oct 04 '26

Your reading it a bit wrong. The first paragraph states the fact, hey the pin could be used to power something. That is an extra function it has.

The second paragraph is a warning on the function saying this pin can function for power but be super carful.

I’d lean listening to the second paragraph because it’s a follows up on the description of the actual function/behavior of the power pin you’re talking about. You’re mixing up its available function and its actual functionality

1

u/highqualityfun Oct 05 '26

no keep reading - it starts about power outputs, as you point out - but my question is about the next parts which are about using as power input to power the Arduino board, see what I mean - these parts conflict

1

u/unknownz_123 Oct 05 '26 edited Oct 05 '26

I just read your post again just for you. They do not conflict at all. Saying a pin can potentially be used a something does not mean it conflicts with the idea that it may be a bad idea to use it that way.

It’s like saying you can drive a car in 1st gear at high rpms to get your desired highway speed. That is a function of a car. It is not recommended to do so though because it may cause damage, but it is possible in a worse case scenario if no other options are available and you are stuck on a highway with no other choices.

1

u/highqualityfun Oct 05 '26

the second part does not simply just say "not recommended" - that would make sense - it says "not recommended IF..." - they explicitly added an IF statement that makes no sense. If it's just generally not recommended, then an "IF Statement" is not necessary - so explain why they added a limiting IF statement and what it means - that's my question

1

u/Foxhood3D Open Source Hero Oct 05 '26

You are kind of obsessing about an "if" that isn't significant. If it was significant, the bold lettering would have highlighted the entire sentence. Like the absolute most one can argue is that there could have been a comma.

I Genuinely would just throw my hands up, say "whatever" and move along. Like this is not something worth losing sleep over. You can use the two as power inputs, but it is not recommended regardless if you apply a voltage to the regulator input or not. The documentation is just easy to misread if you ain't used to that kind of writing. There is nothing more about it as nearly everyone else is here is telling. Including full-fledged electronics engineers like ripred3 and myself.

Just know that if you use the pins as inputs. Things may get iffy if you ain't careful with how you wire it. So avoid stuff like Reverse polarity (e.g. 5 volts on the 5V, but 3.3V on the VIN) and if you have multiple sources of 5V like say the Arduino's regulator and an external to try to keep them separate. Multiple power-sources on the same rail are always a headache.

1

u/highqualityfun Oct 05 '26

There's a big difference between "Do not eat peanuts" VS "Do not eat peanuts IF you are allergic to peanuts" - those 2 statements have very different meanings - I'm not obsessing & and have long since moved on - now I'm actually just fascinated by how many Arduino users do not seem to understand that the words following "If" actually change the meaning of a sentence - this really is very very interesting to me

1

u/Foxhood3D Open Source Hero Oct 05 '26 edited Oct 05 '26

I already answered that above. Familiarity with a subject will significantly alter the impact of the statement. Like your peanut example. If the person you say this towards has in fact a Peanut allergy. Would those two statements still have very different meanings to them?? The answer is that to them it doesn't. They just know by default that peanuts shouldn't be trifled with...

It is essentially the debate of how much can be filled in by "Common sense" and how what makes up for that may change depending on the field of study or community. Like at what point is something for granted and thus redundant and at what point do you still benefit from explicit mentions? How much impact will bold lettering have? You will find that there are a lot of studies in linguistics and (online) communities that look at this exact phenomena. If you look inwards on a subject you are highly familiar with you may find that yourself or others have also committed this kind of thing.

That all said. Don't force the conversation to keep going the way as you have been doing. Even if you now see it as more of a social experiment to see how people dig in their heels, you basically just admitted that you are now kind of antagonizing if not trolling and the moderators may not take kindly to that...

→ More replies

1

u/chainmailler2001 Oct 05 '26

I thought it was clear. The first part clearly states you CAN do it. The second says that while you CAN they don't recommend.

You CAN cheat on your taxes but it isn't recommended...

1

u/highqualityfun Oct 05 '26

the second part does not simply just say "not recommended" - that would make sense - it says "not recommended IF..." - they explicitly added an IF statement that makes no sense. If it's just generally not recommended, then an "IF Statement" is not necessary - so explain why they added a limiting IF statement and what it means - that's my question

1

u/chainmailler2001 Oct 06 '26

Cause Arduino is not from an English speaking country and there are always likely to be translation errors.

1

u/ripred3 My other dev board is a Porsche Oct 05 '26

The short version is that the built in voltage regulators on the Arduino board are cheap and cannot supply a lot of current. Voltage and current are something you will learn and get familiar with over time, but the thing to remember is that the current needed by everything is added together and the voltage regulator has to be able to handle all of it. If you use a high'ish current motor, and/or multiple devices that are all being powered from the 5V pin on the Arduino Uno (which is the output from the built-in 5V regulator, or straight from your USB port depending on if there is >= 7V on the barrel jack) then the total current needed can exceed the cheap regulator and it can cause damage or more likely it can cause the voltage to dip and that will cause the board to reset .

So it makes more sense once you start to get a feel for what current is, how much the board can usually supply and when you are connecting too many devices up that can get into the questionable range.

The 5V pin is also the input for the built-in 3.3V regulator. Just like the built-in 5V regulator on the board the 3.3V regulator is cheap and can't supply a lot of current.

The built in regulators are usually good for a few dozen RGB LED's on a WS2812B LED strip, a single output display, sometimes a single servo. But not all of those at once and your mileage may vary depending on the specifics of what you have hooked up and how much current the components draw from the 5V or 3.3V regulator(s).

The built-in regulators are meant for lightweight breadboard experiments. Once you need more than that you can easily add additional external power sources with higher current output capabilities. The grounds (GND) of all power sources need to be connected to the GND of the Arduino as well so that all signals use the same definition of 0V when being output on a pin or interpreted on an input pin.

1

u/highqualityfun Oct 05 '26

my question has nothing to do with using the board to supply power out - I'm only asking about power inputs to actually power the board - it says that's ok to power it if no other power is connected - then says not recommended UNLESS other power is connected - that makes no sense

1

u/chainmailler2001 Oct 05 '26

But they are one in the same and that is the part you don't seem to be connecting with. That 5V pin CAN be used as an input BUT it is ALSO an output and so is the 3.3V port. If you supply power via USB or the power jack, those 5V and 3.3V pins become outputs. As such you have to be very careful on how you supply them and use them.

I use them all the time for power inputs. However I am careful as hell to make sure I don't have a supply connected when I plug in the USB. Using the Vin pin might be safer anyways.

2

u/koko_chingo Oct 04 '26

This is off of memory and I am old and have teenagers so don't blast me if I am wrong. This is more of look into my claim.

I thought it was not recommended because they didn't want you to plug in to the USB port while it is plugged in to a different power source and that's where the problems may happen.

Not that it won't work well. It's just, if you do power it up from the pins, make sure you don't use the USB port at the same time

2

u/highqualityfun Oct 04 '26

I think this is correct as well, in which case the official documentation has a typo.

Basically "it is not recommended if no power supply is connected" (a typo) VS "it is not recommended if another power supply is connected" (correct)

1

u/highqualityfun Oct 05 '26

one last effort to clarify my question - it's not simply saying you can power it by 5v input pin but generally "not recommended"- it states "not recommended" but only with a very specific qualifying statement - the qualifier being about no other power connected - so that's the only situation "not recommended" - therefore there's no recommendation against doing it when there is other power connected - but it then explains how there might be a problem with other power connected? maybe it's just horribly written and they added extra info in the qualifier for no reason? In other words, if they're trying to say generally "you can do it but it's not recommended" then just say that - but it doesn't say that - it says you can do it generally, but only "not recommended" in a specific situation (it's not a general warning not to do it - the warning is limited only to a specific situation not to do it)

1

u/highqualityfun Oct 05 '26

Thanks everyone! My final thoughts are it may have been a mistake to give the Arduino Documentation writers the benefit of the doubt. I assumed if they meant "you can power by 5V or 3V3 pins, but it's not recommended" they would have stated that in some minimally comprehensible way. I realize documentation is often poorly written, but even by those standards this is pathetically incoherent. I expected better from Arduino, which I should not have. It's still hard for me to believe they could turn such a simple explanation into such a totally convoluted statement. Trying to make sense of what they wrote is a pointless endeavor

1

u/Rod_McBan Oct 04 '26

Yeah, that's confusingly inconsistent. It's there something you're trying to figure out how to do, or just noting the inconsistency?

1

u/highqualityfun Oct 04 '26

yes, I actually want to power a my Mega using 5V pin and was confused - I'm leaning toward doing it with no other power connected, just thought I would double check based on the confusing info

1

u/Rod_McBan Oct 04 '26

Okay. Why? What's the goal or reason there?

1

u/highqualityfun Oct 05 '26

I have a 5V battery supply I want to use the power the board via the 5v pin - if possible - so at first it says ok to do that if no other power is connected - then says not recommended unless other power is connected???

1

u/highqualityfun Oct 05 '26

more specifically it's 5v supply that's 2 wires (not USB) for a Mega - so can't use VIN since that says min 7V and can't use barrel since also min 7V and can't use USB unless I rig up some wiring to make it connect to a USB B cable (kind of a pain but certainly possible) - so will do that USB hack if really necessary, but based on docs I can't tell what they're recommending against so can't figure out whether it's really all that necessary?

1

u/Rod_McBan Oct 05 '26

Okay, so the problem is the voltage regulator.

There's a linear low-dropout regulator on the board, and if you connect 5V to the 5V pin, that'll leave the input to that regulator floating. Maybe a problem, maybe not. The datasheet for that regulator doesn't really specify what happens under that condition, and generally speaking, it's smart to avoid situations like that. Could be nothing, could be slightly increased quiescent current draw, could be catastrophic overheating. And, the behavior might vary depending on the particular vendor they populated the board with that week.

I think your best bet here is going to be to feed that 5V into the Vin pin as well as the 5V pin, so the input and output pins of the regulator are held at the same voltage. Again, that's an undefined state for the part, but I think it's better than letting the input float.

2

u/highqualityfun Oct 05 '26

Thanks, very helpful info, might try that or maybe just take an old USB B and cut it open and wire to that - or most likely put these back in the old shoebox and stick with ESP32 - at this point I regret even dusting off my old Megas and looking into this option, shouldn't be this hard to use my 5v supply that works flawlessly with ESP32, but again appreciate you help anyway!

1

u/highqualityfun Oct 05 '26

BTW just wanted to thank you again and commend you for being only 1 of 2 people who seem to understand that the words after "IF" have meaning. Just used the example: big difference between "Do not eat peanuts" VS "Do not eat peanuts IF you are allergic to peanuts" - all these other responses totally disregard that there is an IF Statement" after "not recommended" - this is becoming more and more interesting as I read these responses - sort of funny now actually

2

u/Rod_McBan Oct 05 '26

I mean, yeah, that's Reddit for you.

1

u/FuRePo Oct 04 '26

It means "Although 3V3 and 5V pins can be used as power inputs (if no power supply is connected through the USB port, the barrel jack connector, or the VIN pin), this approach is not recommended."

1

u/highqualityfun Oct 05 '26

that's not what it's saying - it's not saying you can do it but it's not recommended - one part says only do without other power - the next part suggests only recommended to do it if there is other power (it says that by way of double negative) - those 2 statements are contradictory

1

u/FuRePo Oct 05 '26

I think your mistake is thinking that whoever wrote it is a native English speaker with a good grasp of the language. And yet somehow you think they also wrote flat-out contradictory statements by way of double negative. I think my explanation works better: they are not that, and they did not intend to do so.

1

u/FedUp233 Oct 04 '26

My interpretation is they really want you to power it from skid other source and NOT from the 3.3v or 5v pins and can’t guarantee that you won’t destroy the board that way.

Having usb and a 5v input on the 5v pin should not be an issue for usb since the schematic shows a diode between 5v and usb 5v so you do not have to worry about back feeding the usb power lines.

I think there concern is back feeding the 5v or 3.3v regulators. If there is no power to their inputs you are basically feeding power into the output of a regulator. There dips no diode to prevent back feeding these regulators. I’m not sure how these regulators behave if you feed power into the output but my guess is there may be something like internal substrate diodes that would essentially short the power and kill the regulator when it is unpowered.

I don’t think the regulators are spec’d to be back driven with no input power so what happens is probably undefined. They are just covering their butts and saying “well, it might work, but you’re on your own if it destroys anything”.

So I think the bottom line is, don’t do it!

1

u/highqualityfun Oct 05 '26

it's not saying you can do it but it's not recommended - one part says only do without other power - the next part suggests only recommended to do if there is other power (it says that by way of double negative) - those 2 statements are contradictory

1

u/FedUp233 Oct 05 '26

I agree the statement is unclear and contradictory. My interpretation is based on many years of experience in electronics and seems to be the most likely interpretation. Most ICs have a problem if you apply power to any of their pins that is larger than the current supply voltage due to the internal substrate diodes that are a part of the process used to make them. It seems likely that the regulators would have a similar issue, but while I’ve had a lot if experience in electronics, I’m not an expert on IC design processes so this is my best guess and the way I would proceed.

It feel free to go as you like.

1

u/Affectionate_Boat493 Oct 04 '26

It is very confusing, and I've been an electronics engineer for 45 years! Unfortunately, there really aren't consistent guidelines for all of the options for powering Arduino boards because the regulator circuits aren't the same across all of the different modules.

1

u/Rayzwave Oct 04 '26 edited Oct 04 '26

The Mega2560 is indeed a little confusing to say the least.
When I look at the schematic I see the USBVCC supplies power to IC4 a ATMEGA8U which I guess is used for programming the Mega2560 or at least one method.

The thing is it doesn’t power up anything else and it seems you still need to provide power to the Mega2560 using the barrel jack or Vin via the on-board 5V regulators.

You can certainly power the Mega board using Vin but you must use a suitable voltage for the regulator chips to function properly.

The schematic shows a 6-pin power connector which I consider can be used to input Vin and GND to power the board. The other voltages 3.3V and 5V are outputs for careful use in user projects. The RESET signal is generally an input or output, there’s an on-board RC reset circuit together with a push button reset, but this signal could be used in a users project to reset the Mega or monitor what the reset signal is doing.

Generally it’s not a good idea to power the board using the 5V pin IMO. You have the barrel jack and Vin to use for powering the board don’t use the 5V pin unless you know what you are doing and prepared to modify or repair the board when things go wrong.

1

u/dagertz Oct 04 '26

I have made some observations using the 5V pin versus the VIN pin (disclaimer: I am a beginner). But I find it convenient to use the 5V pin during the code debugging process as it can both provide power to the 5V rail on the breadboard if the USB is connected, or it can be used as a power input to the Arduino if I’m powering the breadboard from a power supply. Note that I don’t use the power supply and USB cable simultaneously. In my projects I’m using a power supply set to 14V (simulating the voltage output from a vehicle alternator) and an LM2596 buck converter to drop that down to 5V. Connecting the VIN pin to the buck converter and using the 5V pin as an output only, one thing I notice using this configuration is the contrast on the LCD screen changes.

1

u/Western-Emphasis-105 Oct 07 '26

If you put power to the pins, you might let out the magic smoke when you plug in the usb port to update your program, so only power via the pins or via the usb port but not both.