Go Down

Topic: external 5V at Vin pin, and USB connection - UNO board (Read 3 times) previous topic - next topic

Yvan

I designed a shield that powers Arduino Uno with 5V trough Vin 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)?
___   ____
     /__/  /    \      ** Registrovani korisnik Linuksa #291606 **
    /  / \/  /\  \     ** Registered Linux user #291606

PaulS

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

No. The Arduino has a power selector circuit that handles two separate power inputs. When USB power is present, that is used. When it isn't the Vin pin power is used.

retrolefty

#2
Feb 27, 2011, 03:28 am Last Edit: Feb 27, 2011, 03:34 am by retrolefty Reason: 1

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

No. The Arduino has a power selector circuit that handles two separate power inputs. When USB power is present, that is used. When it isn't the Vin pin power is used.


Actually external power has first switching priority over USB power. USB power is used if only there is no external power avalible.

However it brings another layer of complexity to the game. He is powering his shield via the Vin pin, that then activates both the on-board +5vdc on the Uno board and the +5vdc regulator that he has installed on his shield board. So while the USB +5vdc is isolated via the auto-voltage switching circuit on the Uno board, he is still 'hardwiring" the outputs of two different +5vdc regulators together. And I'm sure that I"ve read in regulator datasheets in the past that they do not recommend that practice. However it will probably work fine even if not a good engineering practice.

One way to eliminate this possible problem is to make sure that the +5vdc power on your shield board does not connect to the +5vdc shield connector power pin. That would keep the two regulators isolated from each other. But then he would have the problem of his shield would not have any +5vdc power if he was running on USB power. Oh the evil webs we weave.

Let us know if it lets any of the magic smoke out.  :D

Lefty

Yvan

#3
Feb 27, 2011, 07:27 am Last Edit: Mar 06, 2011, 08:46 am by Yvan Reason: 1

One way to eliminate this possible problem is to make sure that the +5vdc power on your shield board does not connect to the +5vdc shield connector power pin. That would keep the two regulators isolated from each other. But then he would have the problem of his shield would not have any +5vdc power if he was running on USB power. Oh the evil webs we weave.


I do not understand this part. What do you mean by "+5vdc power on your shield board does not connect to the +5vdc shield connector power pin"? How then would I power Uno when it is not connected to the USB port?

And I will always use it with external power, except now, I need to test if it is doing what it is suppose to, and I need to finish programing.

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


Quote
Let us know if it lets any of the magic smoke out.  :D


I hope not.  :smiley-roll: :)


Please note that that there is an error at this schematics. Vcc should be connected to the +5V pin not to Vin, and, in the lower right corner CLT should be where TEMP is, and vice versa.
___   ____
     /__/  /    \      ** Registrovani korisnik Linuksa #291606 **
    /  / \/  /\  \     ** Registered Linux user #291606

retrolefty

#4
Feb 27, 2011, 07:39 am Last Edit: Feb 27, 2011, 07:46 am by retrolefty Reason: 1
The schematic helps a lot, you got a lot of stuff going on there. Now a problem is you are routing +5vdc shield voltage (Vcc) to the Arduino uno via the shield's Vin pin? That won't work, the Vin pin on the Uno has to have at least 7 vdc applied to it to power the input of the Uno's 5vdc regulator.

I thought you might to powering the uno board by wiring the shields vcc to the +5vdc pin on the shield connector, thus then having the two regulator outputs tied together problem I mentioned, if you were also routing voltage via the Vin pin, which your aren't.

This is all giving me a headache.  :D Anyway I still don't see a perfect way to power the system and still be able to utilize USB power when you wish. But what you have right now is flawed because the uno's regulator's input needs to be 7vdc or higher to operate correctly.

Lefty

Go Up