Pages: [1] 2 3   Go Down
Author Topic: Powering Arduino from 5V source + usb  (Read 4072 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I'd like to run a Duemilanove off an external regulated 5v supply but I'm worried that if I also plug the USB in (without disconnecting the 5v supply) I'll fry something...does anyone know if it's possible to do this?

I'm planning on plugging the 5v directly into the 5v jumper and not the Vin jumper to avoid the dropout from the regulator.

Cheers,

Chris
Logged

CH
Offline Offline
God Member
*****
Karma: 19
Posts: 704
Book Writer "Arduino Praxiseinstieg"
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The Duemilanove is not prepared to run with external 5 Volt. The board can powered from the USB port or from an external power supply connected to the power jack (2.1mm) or the Vin-Pin.

The recommended range of the external power supply is 7 to 12 volts.

If you need a 5 volt version of Arduino then you can use the Arduino Pro.
A Solutions with 5 volt power supply for Duemilanove is only possible if you do some soldering. Only recommend for professionals!
Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 6
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You should  use the power jack and then move the small jumper net to the USB jack.
Logged

Lancashire, UK
Offline Offline
Edison Member
*
Karma: 9
Posts: 1991
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The Duemilanove doesn't have the power jumper, it autoselects which power to use (DC power socket / USB).
Logged


0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, I guess I'll have to find some way of getting at the unregulated 9V then
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 137
Posts: 6792
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The Duemilanove is not prepared to run with external 5 Volt.
Really?  Is that documented/explained anywhere?  I've been wondering how the new power circuit interacted with +5V via the power connector, but hadn't seen anything definitive.

I guess that technically, none of the USB arduinos were ever designed to be powered via the +5V power pins (and especially not with USB connected at the same time), but there were reports that it worked...

You can probably rig up something that feeds in +5V via the USB connector (disconnecting the USB power and using a common ground...)
Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 6
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

UUUpps i was lookin at one of my way old boards
Logged

CH
Offline Offline
God Member
*****
Karma: 19
Posts: 704
Book Writer "Arduino Praxiseinstieg"
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Really?  Is that documented/explained anywhere?  I've been wondering how the new power circuit interacted with +5V via the power connector

Technically it works with +5 Volts at the power jack or at the Vin. But the recommended range is from 7 to 12 Volts. The new arduino board uses a low drop voltage regulator. That means the input voltage must be only a little higher as the output voltage (5V).
If you run it with 5 volts it is not in a stable range and you can get troubles with your circuit.

I couldn't find any documentation but I checked the schema how the power supply is implemented.
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 137
Posts: 6792
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

We (or I, anyway) was talking about feeding a regulated 5V into the "5V" pins on the bottom "power" shield connector.  This puts it in past the regulator circuit, similar to if it had come from the USB connector.  In the old days, you could keep the USB power switched off manually and I think things would be OK.  I'm not sure about the new scheme, though...
Logged

CH
Offline Offline
God Member
*****
Karma: 19
Posts: 704
Book Writer "Arduino Praxiseinstieg"
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
We (or I, anyway) was talking about feeding a regulated 5V into the "5V" pins on the bottom "power" shield connector

That's not possible because the Duemilanove has a power detection circuit that checks for power on pin Vin. Vin is high if power comes from power jack or from Vin pin.
Otherwise the +5 V is connected to the USBVCC-Signal and the board will be feeded from USB.

There is no more switch to manually switch between USB and external power supply.
Logged

Offline Offline
Edison Member
*
Karma: 3
Posts: 1001
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would not connect an external power supply directly to +5V while USB is connected. Rather I would look into what "westfw" suggested:

Quote
You can probably rig up something that feeds in +5V via the USB connector (disconnecting the USB power and using a common ground...)

There should be no issue however powering Duemillanove with a regulated 5V supply to +5V as long as USB is not connected.

The Duemillanove regulator drops only about 1V (Vin to +5V), but the switchover cicuit senses on Vin/2 versus 3.3V from USB. So as long as Vin is less than 6.6V, you should not connect the board to USB.

The power jack drops an additional 0.7V across the reverse polarity protection diode so this would add up to a minumum of 7.3V for a proper switchover between USB and onboard power. And as always, a safety margin wouldn't hurt.


Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 4409
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The Duemillanove regulator drops only about 1V (Vin to +5V), but the switchover cicuit senses on Vin/2 versus 3.3V from USB. So as long as Vin is less than 6.6V, you should not connect the board to USB.
Don't forget that 'Vin' is defined after series diode 'D1' so we are talking about an input voltage 'PWRIN' of about 0.5 to 0.7 volts higher than the 6.6 V that is mentioned above.

Don
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17303
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I really feel that if one wants to power the board with an external regulated +5vdc, the cleanest way is to use a spare hacked USB cable and wire the voltage to the two USB power wires and plug it into the board's USB connector.

Lefty
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 137
Posts: 6792
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
wire the voltage to the two USB power wires
The problem with this is that one of the reasons to use an external 5V supply in the first place is so that you can have more than the 500mA allowed through USB.  If you feed in a supply via the USB power wires, you also go through the 500mA fuse...

I guess the other reason for the question involves a battery powered device that you want to connect to a computer "occasionally."  It would be common and desirable to have the battery power the arduino via the +5V connection (run straight off batteries, and/or with a higher efficiency regulator than possible via the regulator and Vin.)  The automatic switching makes this troublesome (probably you don't want USB feeding the battery supply backward!  Could cause fire depending on exact circuit and battery technology!)

« Last Edit: October 28, 2009, 10:56:22 am by westfw » Logged

Atascadero, CA
Offline Offline
Sr. Member
****
Karma: 2
Posts: 468
Arduino addict
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

After reviewing the schematic of the Duemilanove (http://arduino.cc/en/uploads/Main/arduino-duemilanove-schematic.pdf), I see no reason there would be a problem running the board from a regulated 5V supply on the 5V pin at the same time as the USB.  I've done it a few times myself, even before looking at the schematic.  

If you try to plug a 5V supply into the Vin or the power connector, the board will run from the USB power instead because it auto-selects the best power source between USB and Vin/power connector.  The 5V pin is not part of the auto-selection circuit though, so it will always be in use, regardless of whatever other power comes into the board.

There is a slight chance of back-flowing voltage into your USB port if the regulated 5V is slightly higher than the USB 5V.  But I would expect the USB port to be protected from that.
Logged

What about elevensies? Luncheon? Afternoon tea? Dinner? Supper?

Pages: [1] 2 3   Go Up
Jump to: