Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use both external power jack and USB port with Arduino?

I have the Arduino UNO board and I want to know if it is possible to use both the USB connection (for exchanging data) and the external jack to power supply it.

I will use the following cable: http://ecx.images-amazon.com/images/I/41OMXaj5cPL.SY355.jpg with a AC-DC 5V adaptor in order to power supply the Arduino. However, I want to use also the USB connection in order to send some data from the computer.

Both will be connected at the same time.

In short, I want the Arduino to be able to run even if the computer is OFF and whenever I open the computer to send data to Arduino from USB connection.

Is this possible? Will the Arduino Uno board support it?

like image 701
Efstathios Chatzikyriakidis Avatar asked Feb 16 '15 21:02

Efstathios Chatzikyriakidis


People also ask

Can I connect USB and power to Arduino?

Arduino boards can operate satisfactorily on power that is available from the USB port. It provides 5V DC voltage and can be sourced from the port from a PC, wall socket adapter or portable power bank.

Can you power Arduino with 12v and USB?

You should be OK as long as you use a 9 to 12 volt supply since there is an FET that disconnects the 5 volt USB power from the rest of the Arduino circuitry if VIN is greater than approximately 6.6 volts.

Can you power Arduino Vin and USB at the same time?

You can connect both (VIN and USB or jack and USB) at the same time. That is true, but only when talking about original Arduinos/Genuinos. So called "compatible" boards or clones may have different schematics.

How many ways Arduino Uno can be powered with external supply?

Arduino boards have five options in which they can be powered: Powering via USB connector. Powering via the onboard barrel jack connector (if available on the board) Powering via the onboard battery connector (if available on the board)


3 Answers

Yes. From the official Arduino website:

Power

The Arduino Uno can be powered via the USB connection or with an external power supply. The power source is selected automatically.

External DC power will override USB power if the Arduino detects it. [Source]

like image 128
Thomas Suarez Avatar answered Oct 05 '22 17:10

Thomas Suarez


as other said, it is absolutely possible to have both usb and power jack plugged in.

but be aware that if you shut down your computer and turn it on after, when reading the usb port you'll restart the Arduino and might loose important data.

like image 30
ladislas Avatar answered Oct 05 '22 16:10

ladislas


yeah both of them can be used. If you want to upload the code in arduino then simply use the usb cable otherwise keep it on adapter. it wont harm the device.

What I personally do is, I keep on plugging the adapter and remove the usb once I am done with uploading and then test it as normally the usb cable is quite small and I normally work on robots so I need long wires.

like image 43
Syed Zain Nasir Avatar answered Oct 05 '22 15:10

Syed Zain Nasir