Pages: [1]   Go Down
Author Topic: external 5V at +5V pin, and USB connection  (Read 1301 times)
0 Members and 1 Guest are viewing this topic.
Kragujevac, Serbia
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I posted this on another subforum, but I got only one opinion, so I am hoping for better results here.

I designed a shield that powers Arduino Uno with 5V trough +5V pin.

For testing purposes I need to connect Uno to PC, and shield to 12V, but shield has a 5V regulator that powers Arduino Uno..

Will I damage anything if I connect Uno to PC with USB cable (that also has 5V supply)?

Here is the schematics, I want to controll idle speed on my car with a little steeper motor, and Daytime Running Lights:

http://arduino.cc/forum/index.php?action=dlattach;topic=53627.0;attach=1028;image

in the schematics VCC is connected to the Vin pin, but I changed that, so it is now connected to +5V pin (as it was suggested by arduino member  retrolefty - thanks).
Logged

      ___   ____
     /__/  /    \      ** Registrovani korisnik Linuksa #291606 **
    /  / \/  /\  \     ** Registered Linux user #291606

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 178
Posts: 8064
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My Arduino Diecimila has a movable jumper to select between USB power and the power jack.  Selecting the power jack will disconnect the USB power and prevent any possible conflicts.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

0
Offline Offline
Faraday Member
**
Karma: 13
Posts: 2857
ruggedcircuits.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't think it will be a problem. If you have two 5V regulators both driving the same node, one of them will "win" (i.e., supply the majority of the current) and the other will mostly be off. It depends on which regulator is internally set to the higher voltage (e.g., one is trying to drive 5.001V and the other 4.999V, the one that tries to drive 5.001V will supply the majority of the current).

--
The Arduino Drum Machine: 14-track MIDI drum machine sequencer / groove-box
Logged

Near Frankfurt, Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 22
I made it. I can fix it.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Your shield regulator talk confuses me. But I have used (the Duemilanove) with 12V on the DC jack and on USB simultaneously, without problems.
Logged

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

Many Arduino boards (Including Duemilanove and Uno) have automatic power switching.
Nothing like the official documentation for authoritative answers. Better than 100 opinions here.

Quote
The Arduino Uno can be powered via the USB connection or with an external power supply. The power source is selected automatically.
http://arduino.cc/en/Main/ArduinoBoardUno


Yes, but that doesn't state which voltage source is select if both are avalible (external takes priority). And the OP had a setup where he is hard-wiring an external regulated +5vdc voltage source to the Arduino's +5vdc shield pin, so in his case there might be three different voltage sources and his question was relevant.

The Arduino automatic voltage switching circuit has added complexity from the prior manual jumper placement where one could 'force' voltage source from only USB or only external power source (or Vin pin) or neither, if one wished to wired an external regulated voltage source to the +5vdc pin.

What we are dealing with is the undesired, but workable in practice, of having two (or more?) active voltage sources 'hardwired' together, which is normally not a recommended good engineering practice from any voltage regulator datasheet I've read that talked about that issue.

Lefty
« Last Edit: March 01, 2011, 01:45:54 pm by retrolefty » Logged

Kragujevac, Serbia
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

smiley-confuse smiley-confuse
As I wrote in another thread with the same question, I decided not to take chances. I will bend the pin going into +5V, so grounds will be connected, shield will be powered externally, and Uno will get +5V from USB.   smiley-cool smiley
Logged

      ___   ____
     /__/  /    \      ** Registrovani korisnik Linuksa #291606 **
    /  / \/  /\  \     ** Registered Linux user #291606

Guildford, UK
Offline Offline
Full Member
***
Karma: 0
Posts: 217
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

When I powered my Mega from a PC power supply and then plugged in a USB cable everything was fine but if I turned on the power supply after it was powered by the USB, the PC power supply fan would stall and measured over 0.3A flowing into the power supply. As far as I could tell this was caused because the two power supplies (PC & USB) differed by less than 50mV.
Logged

Kragujevac, Serbia
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

But noting was fried... There was no smoke coming out of it. smiley smiley-cool
Logged

      ___   ____
     /__/  /    \      ** Registrovani korisnik Linuksa #291606 **
    /  / \/  /\  \     ** Registered Linux user #291606

Guildford, UK
Offline Offline
Full Member
***
Karma: 0
Posts: 217
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No the Arduino was fine. In the end I modified the USB lead so that it didn't provide power, just data.
Logged

Kragujevac, Serbia
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I finally ended powering Uno with both USB and shield +5V, and nothing is fried, I can confirm that it can be done with no damage to the board.
Logged

      ___   ____
     /__/  /    \      ** Registrovani korisnik Linuksa #291606 **
    /  / \/  /\  \     ** Registered Linux user #291606

Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No the Arduino was fine. In the end I modified the USB lead so that it didn't provide power, just data.

I would go for this solution just to be on the safe side or you can use TX/RX pins smiley btw what was removed from your USB cable to disable it's supply?
« Last Edit: March 09, 2011, 03:12:01 am by ben10 » Logged

Guildford, UK
Offline Offline
Full Member
***
Karma: 0
Posts: 217
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I cut the 5v lead.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I cut the 5v lead.

oh as simple as that thought you added stuffs =)
Logged

Pages: [1]   Go Up
Jump to: