Author Topic: Two 5v power sources and one to USB  (Read 7095 times)

0 Members and 1 Guest are viewing this topic.

Offline praveen_khmTopic starter

  • Contributor
  • Posts: 46
Two 5v power sources and one to USB
« on: April 04, 2016, 12:04:41 pm »
Hi,

I am designing a board which is powered through USB. The 5V, 500mA from the USB is more than enough to power the board. However, I have an additional board connected to it. The additional board uses an external power supply, flowing though a 5V regulator (xx1117) and powers it. Now, what happens if 5V from the second board is connected to 5V USB board? There are no diodes across either boards to avoid reverse voltage.

The connection is a simple pin-to-pin connection where 5V from external supply is directly connected to 5V USB supply which is in-turn connected to a computer. Now, what happens? Does the higher current from secondary supply flow into the computer's USB and kill the port? Or it makes no difference apart from increase in current? If there may happen any damage, how to avoid it?

Kindly help.

Thanks,
Praveen
« Last Edit: April 04, 2016, 12:56:11 pm by praveen_khm »
 

Offline praveen_khmTopic starter

  • Contributor
  • Posts: 46
Re: Two 5v power sources and one to USB
« Reply #1 on: April 04, 2016, 01:07:55 pm »
Bump~!!
Just to get to the top again for someone to check and help.
 

Offline rgawron

  • Contributor
  • Posts: 38
  • Country: fr
    • blog
Re: Two 5v power sources and one to USB
« Reply #2 on: April 04, 2016, 01:37:04 pm »
Is positive rail of one device connected to positive rail of the second device?

If your two devices share only mass and signal lines, then they share only signals in the signal lines, not theirs power supply voltages. It should be fine.

If at least one device has a mass connected to ground (your computer have it if it's not a laptop running on a battery), both devices will be grounded - this .
« Last Edit: April 04, 2016, 01:44:16 pm by rgawron »
 

Offline praveen_khmTopic starter

  • Contributor
  • Posts: 46
Re: Two 5v power sources and one to USB
« Reply #3 on: April 04, 2016, 02:11:49 pm »
Both the boards share ground and power lines. One board sits on top of another board and 5V from first board is connected to 5v of second board while each has its own power supply (one from USB and other from 5V regulator)
 

Offline jeroen79

  • Frequent Contributor
  • **
  • Posts: 529
Re: Two 5v power sources and one to USB
« Reply #4 on: April 04, 2016, 02:39:10 pm »
Most likely:
If you connect two powersources together then the one with the higher voltage will provide current to the consumers.
The one with the lower voltage would not provide current as it's output is too high.

That way you could endup with the USB powering both devices.
If you do not want that then you could add a diode to stop current flowing from A to B.
Or disconnect the 5V lines of A and B and only have them share the ground.
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12856
Re: Two 5v power sources and one to USB
« Reply #5 on: April 04, 2016, 02:46:56 pm »
That configuration is strictly forbidden by the USB standard.  The *ONLY* time it is permissible for a device to supply power to the host is when an OTG host and device have negotiated host charging in compliance with the USB Power Delivery (PD) v2.0 specification.   The easiest fix, if the external supply can power both boards, is to disconnect Vbus, although, depending on the device chipset and USB stack used, you may need to be able to sense if it has voltage on it for proper initialisation.  Otherwise you need to split the power to the two sections and handle the cases when one or the other is not powered by preventing either outputting logic '1' if the other is not powered.
 

Offline Lovely_Santa

  • Contributor
  • Posts: 42
  • Country: be
Re: Two 5v power sources and one to USB
« Reply #6 on: April 04, 2016, 03:14:05 pm »
If you are driving it from an USB connection, so I suppose it's in a PC? (explains also the 500mA)

BUT... If you know a computer, it's all driven by an ATX power supply like an example below:


It has standard connections, Just buy a splitter, so you can split the power out of it (most likely one for DVD driver or something like that) so you can get a power line with 5V power (red color) without a problem...
So then you can easy use 5V without blowing your USB port by accident...

Just a quick... it's the same power as the one comming out of the USB port...

On topic: If you want to power something, you need to know if it's a power supply that can source only or can sink current on it's output... The power supply in a computer can't do that (only source). If one of the 2 power supplies can sink current, then you can have a problem, becose when there is a different in potential, it will sink the current to maintain it's voltage level...

Example: the usb give 5.02V and your other supply give 4.98V... If your other supply can sink current, current will flow out of the USB driver, into your other supply... Not a huge problem, your devices will still be powered, but you are only able to drive 500mA out of your UBS port, so that may cause for problems...

2 Solution:
(...)
If you do not want that then you could add a diode to stop current flowing from A to B.
Or disconnect the 5V lines of A and B and only have them share the ground.
English is only my 3th language, so don't tell me my english is bad, becose I know that, I try to do what I can...
 

Offline Zbig

  • Frequent Contributor
  • **
  • Posts: 927
  • Country: pl
Re: Two 5v power sources and one to USB
« Reply #7 on: April 04, 2016, 05:43:29 pm »
That configuration is strictly forbidden by the USB standard.  The *ONLY* time it is permissible for a device to supply power to the host is when an OTG host and device have negotiated host charging in compliance with the USB Power Delivery (PD) v2.0 specification.

I totally agree, just have to add that this is not always followed by the gear manufacturers, unfortunately. I was shocked when I realized my self-powered Unitek USB hub was back-feeding my PC motherboard. The RAM refresh LED was on as long as the hub was plugged in even when PC itself was off. The damn things (USB hubs) often have their DC barrel jacks wired straight between USB ground and +5V :palm:
 

Offline praveen_khmTopic starter

  • Contributor
  • Posts: 46
Re: Two 5v power sources and one to USB
« Reply #8 on: April 06, 2016, 10:06:19 am »
Thank you all for the responses. I am planning to use FET's to isolate both the power supplies. Let me check how it is done...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf