Not recommended officially
###Not recommended officially ArduinoArduino (the company) does not recommend directly supplying 5 volts in, because:
- The target audience doesn't always understand how the schematic is designed, and as beginners/non-techs, would likey cause something bad to happen, like connecting an unregulated 5 volts to the
5V
line, and blowing things, causing customer service calls/refunds/repairs/etcetera. - Directly supplying 5 volts bypasses the auto-sensing/voltage protection method.
How Arduino's USB/external power selection works
###How Arduino's USB/external power selection works
SupplyingSupplying 5 volts directly is easy. USB power practically does this, as does the ICSP protocol/header. USB has a 500mA PTC fuse on the line, and has a p-channel mosfet, which by themselves do not offer any protection. But there is also the LMV358 labeled U5A
, above that mosfet. It is (half) an opamp, being used as a comparator. If VIN
is detected, and higher than 3.3 volts, the opamp drives the line low, disabling the mosfet, cutting the USBVCC
off from the 5V
line. This makes it so that you can use VIN
and USBVCC
at the same time without problems. Otherwise you would have two power sources competing on the same rail (USB and the 5 volt regulator).
The mosfet has a body diode
###The mosfet has a body diode
It'sIt's part of the mosfet construction, internal, and functions as reverse voltage protection, preventing the 5V
power rail from back flowing to the USBVCC
. It is disabled when the mosfet is on, and reversed biased when off.
#Warnings
Warnings
- DO NOT CONNECT USB AND YOUR 5V AT THE SAME TIME!
By inputting a regulated 5 volts in at the5V
pin, you skip the helpful power source selection mechanism. You can just as easily connect your 5 volt in to the USB connector, or between the USB connector and the USB PTC fuse, but that will cause you to have a 500mA limit. If you need more current, you can bypass the fuse, but not the mosfet. - DO NOT SHORT
5V
toVIN
!
The 5 volt regulator in any case, will be just dandy, as long asVIN
is not used.