Advantages and disadvantages of powering arduinos with adapters

Question, I was just wondering if it matters whether you power an arduino with a 7-12 volt adapter versus powering it through a usb hub connected to a power socket. Like with one of these:

or these:

Any advice?

(deleted)

It seems to me the adapter would be safer for the Arduino than powering through the USB port because the voltage regulator will guarantee a clean 5V power supply. I'd guess a computer is likely to provide decent quality power via USB but with a cheap version of the items shown above it's uncertain what you're going to get. That said, I've used a powered USB hub to program my Arduinos for years without any problems.

strange that nobody has mentioned the need to use completely different power input pins on the arduino for these two methods. if you put 12v into either of the vcc pins it will quickly fry the board. using 5v with vin will at best result in flaky operation.

the biggest advantage of switched multi port hubs is ability to cycle power during development which is often the only way to recover tricky devices like esp8266 and rfm22b. also a major benefit to avoid the "peculiar register content dependency" bug which can derail just about any project.

many complain that usb power from a pc is too noisy but this is not generally the case. most mcu and specially avr are quite resistant and its only a concern for rare applications like high gain audio preamp or precision references.

john1993:
many complain that usb power from a pc is too noisy but this is not generally the case. most mcu and specially avr are quite resistant

Sourced from a PC, yes, but what do you think about directly powering the MCU from the sort of power supplies shown above as compared to using a power supply of similar quality through the voltage regulator?

The on-board regulator on the Arduino is severely limited in its capacity. It is usable for perhaps 100 mA, and that only if you keep the input voltage nearer the 7 V than the 12 V.

Powering via the USB port gives you a reliable 500 mA capacity.

Obviously you have to be careful about the quality of what you use for a power supply but - that applies to all your components!


Many years ago, before consumer ADSL, I had acquired a PPP POTS modem dialler interface for my internet access at the price of a few dollars rather than its $150 retail value. The "fault" that gave it to me cheaply was a dodgy "barrel jack" where the oversize "plug pack" (US: "wall wart") power supply connected, but this was remedied by a cable tie which held it firmly at the appropriate angle. The fact that the plug pack itself had a UK input plug was sorted with an adapter.

After a number of months reliable service, I was dismayed to find on returning home, that all the LEDs on the unit were fixedly illuminated and it was not functioning. Investigations revealed that the plug pack had failed to regulate and was now delivering about 9 V to the dialler rated at 5 V, or 15 V with no load. It was thoroughly fried!

A properly engineered switchmode supply includes a "crowbar" on the output which grounds it with a thyristor (SCR) if it should go over-voltage out of regulation. It is unclear nowadays how commonly this is provided in PC power supplies, but virtually never in more basic units. You just have to accept that if the power supply fails in this way, you throw away the whole appliance. Of course, if you were building mission-critical equipment, you would always include the crowbar.

pert:
what do you think about directly powering the MCU from the sort of power supplies shown above as compared to using a power supply of similar quality through the voltage regulator?

as mentioned imo not really a problem for mcu. however no matter what the source there will always be noise benefit to a linear reg stage should that become important.

gets a bit trickier with some of those 40 cent chinese buck or boost modules where ive actually measured 3v ripple on 5v dc. even then nothing a big cap cant usually fix or for super critical apps tacking on an ldo to further filter the output.

theres a wide spectrum from cheepo chinese to horrifically over priced "quality" units. having purchased many of both types over the years ive seen both fail. with maybe single digit difference in mtbf yet 1000% or more difference in cost i am inclined toward the bargain units these days.

having some experience powering amp-hog raspi i would say the type of cables used is at least as problematic as switcher circuits. neither are much of an issue for arduino or other low power devices though.

thrift stores tend to have a wide selection of cellphone chargers, often including the original (probably high-quality) manufacturer-provided versions. These days, many of them are likely to output a voltage that can be used on an Arduino via either the USB or +5V lines. Usually something like $1 each...

That is about it. $2 is a trifle generous but if you fancy donating to the cause.

50 cents each at "garage sales" with some "horse trading".