This question already has an answer here:

I'm trying to design a raspberry pi HAT prototype and I came across this circuit below. I'm not familiar with power electronics but i'm curious of what this circuit is trying to accomplish. Any help would be appreciated. Thanks

enter image description here Image of schematics


marked as duplicate by efox29, Voltage Spike, CL., ThreePhaseEel, Autistic Jan 1 '17 at 21:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • \$\begingroup\$ It looks like an active rectifier. Can't be sure. \$\endgroup\$ – Bradman175 Jan 1 '17 at 4:18
  • \$\begingroup\$ In the "duplicate" question, the answer is clear as mud. Technical details of implementation completely mask the functional purpose of the circuit. So we need to start over. \$\endgroup\$ – Ale..chenski Jan 1 '17 at 6:17
  • \$\begingroup\$ @AliChen -- posting another answer on the original is A-OK :) there are no laws against necromancy on the Stack \$\endgroup\$ – ThreePhaseEel Jan 1 '17 at 14:39
  • \$\begingroup\$ @ThreePhaseEel, this is not about another answer about this circuit. My problem with this circuit is that it is unclear which purpose does it serve, what it is protecting and under what scenario. Both OP didn't describe what is on both sides of voltages. Adding the "use scenario" would vastly improve the answer. \$\endgroup\$ – Ale..chenski Jan 1 '17 at 17:23

Looking at the other two similar questions on StackExchange, it appears that the answer lies within application details.

As it appears, this circuit is related to USB functionality. It appears that the left-side is an input power from upstream USB connector, and the right-side is (or can be) coming from external power supply (self power).

As the other article mentions, the circuit implements "ideal diode", connected from left-side to right-side. The purpose of this circuit is two-fold:

  1. When the SBC (pi board?) is powered by itself, the circuit prevents the USB VBUS (left-side) from being powered, since the FET gets disabled, and the body diode is in reverse. This is done to comply with USB requirements that no USB device should back drive anything on its upstream port on any pin. Not many designs are observing this, especially on D+ side.

  2. When the SBC board is powered from USB VBUS, the circuit provides a low-impedance path, so the design gets nearly full 5V voltage from VBUS.

The BJT circuit works as a comparator between left and right nodes, that's why the matching transistor pair is needed, and left transistor is wired as a diode to compensate the b-e drop on the right transistor as accurate as possible.

The question however remains what will happen if the upstream VBUS is present, and self-power is on, and the ralis differ by a small amount one way or another, as I don't see any hysteresis in this circuit. I am lazy to run this circuit through LTspice simulator.

So the trending answer is that this circuit serves no purpose, and if the USB backdrive assumption is correct, it should be implemented differently - internal power should have priority, and when present, the switch should be simply turned off.


Not the answer you're looking for? Browse other questions tagged or ask your own question.