Search code examples
arduinohardware

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?


Solution

  • 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.