Kragujevac, Serbia
Offline
Newbie
Karma: 0
Posts: 16
Arduino rocks
|
 |
« on: March 01, 2011, 01:28:56 am » |
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;imagein 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 ** /__/\____/--\__\ ** http://counter.li.org/ **
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 96
Posts: 6372
|
 |
« Reply #1 on: March 01, 2011, 11:25:44 am » |
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
|
|
|
|
|
0
Offline
Faraday Member
Karma: 12
Posts: 2857
ruggedcircuits.com
|
 |
« Reply #2 on: March 01, 2011, 12:30:00 pm » |
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
Newbie
Karma: 0
Posts: 22
I made it. I can fix it.
|
 |
« Reply #3 on: March 01, 2011, 01:09:00 pm » |
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
Brattain Member
Karma: 279
Posts: 15316
Measurement changes behavior
|
 |
« Reply #4 on: March 01, 2011, 01:44:09 pm » |
Many Arduino boards (Including Duemilanove and Uno) have automatic power switching. Nothing like the official documentation for authoritative answers. Better than 100 opinions here. 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
Newbie
Karma: 0
Posts: 16
Arduino rocks
|
 |
« Reply #5 on: March 01, 2011, 04:04:58 pm » |
|
|
|
|
|
Logged
|
___ ____ /__/ / \ ** Registrovani korisnik Linuksa #291606 ** / / \/ /\ \ ** Registered Linux user #291606 ** /__/\____/--\__\ ** http://counter.li.org/ **
|
|
|
|
Guildford, UK
Offline
Full Member
Karma: 0
Posts: 217
Arduino rocks
|
 |
« Reply #6 on: March 06, 2011, 04:48:30 pm » |
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
Newbie
Karma: 0
Posts: 16
Arduino rocks
|
 |
« Reply #7 on: March 07, 2011, 01:08:58 am » |
But noting was fried... There was no smoke coming out of it. 
|
|
|
|
|
Logged
|
___ ____ /__/ / \ ** Registrovani korisnik Linuksa #291606 ** / / \/ /\ \ ** Registered Linux user #291606 ** /__/\____/--\__\ ** http://counter.li.org/ **
|
|
|
|
Guildford, UK
Offline
Full Member
Karma: 0
Posts: 217
Arduino rocks
|
 |
« Reply #8 on: March 07, 2011, 02:04:03 am » |
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
Newbie
Karma: 0
Posts: 16
Arduino rocks
|
 |
« Reply #9 on: March 08, 2011, 03:25:35 pm » |
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 ** /__/\____/--\__\ ** http://counter.li.org/ **
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 36
|
 |
« Reply #10 on: March 08, 2011, 11:01:27 pm » |
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  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
Full Member
Karma: 0
Posts: 217
Arduino rocks
|
 |
« Reply #11 on: March 09, 2011, 03:22:35 am » |
I cut the 5v lead.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 36
|
 |
« Reply #12 on: March 09, 2011, 03:52:51 am » |
I cut the 5v lead.
oh as simple as that thought you added stuffs =)
|
|
|
|
|
Logged
|
|
|
|
|
|