Author Topic: What is the purpose of these transistors in power indicator circuit?  (Read 288 times)

0 Members and 1 Guest are viewing this topic.

Offline canadaboy25Topic starter

  • Regular Contributor
  • *
  • Posts: 161
  • Country: ca
I have a USB-C power supply that is capable of supplying 5V, 9V, 12V, 18V, and 20V depending on what device it is connected to.  The USB-C connector on the end was torn from the cable.

The USB connector is mounted on a little PCB at the end of the cable and there are also two little LEDs that light up whenever the supply is plugged in.  I have some replacement USB connectors with little breakout PCBs that are similar to the original to replace the damaged connector.  The supply has 4 wires, red, white, black, and blue.

I wanted to be sure that I got the sensing connections on the new connector correct to avoid sending incorrect voltage to a connected device, so I worked out the schematic of the original board.

Clearly, I just need to connect the black, white, and blue wires to the new connector and the supply will function normally.  The red wire is obviously just supplying voltage for the LEDs.

However, I am curious as to the purpose of the two PNP transistors in the circuit for the LEDs.  As far as I can tell, Q2 will conduct, lighting the LEDs.  But I do not see the purpose of Q1.  Also, since this is just a constant supply for two LEDs, why have the transistors as all?  A current limiting resistor and two LEDs would be all that is needed for a simple power on indicator.

I don't plan on adding LEDs to the replacement connector, I am just curious about the function of the original circuit.
canadaboy25

- Sometimes the light at the end of a tunnel is an on-coming train
 

Offline Andy Chee

  • Frequent Contributor
  • **
  • Posts: 986
  • Country: au
Re: What is the purpose of these transistors in power indicator circuit?
« Reply #1 on: July 18, 2024, 09:03:15 pm »
A current limiting resistor and two LEDs would be all that is needed for a simple power on indicator.
If the voltage at RED is wide ranging 5V-20V, a simple current limiting resistor may give dim to bright, hence the constant current circuit.

A dim/bright power indicator may be ambiguous.
 

Offline canadaboy25Topic starter

  • Regular Contributor
  • *
  • Posts: 161
  • Country: ca
Re: What is the purpose of these transistors in power indicator circuit?
« Reply #2 on: July 18, 2024, 09:04:57 pm »
A current limiting resistor and two LEDs would be all that is needed for a simple power on indicator.
If the voltage at RED is wide ranging 5V-20V, a simple current limiting resistor may give dim to bright, hence the constant current circuit.

A dim/bright power indicator may be ambiguous.

I am pretty sure the red wire provides a constant voltage, regardless of the output voltage on the white wire.

I will double check this once I have the new connector in place.
canadaboy25

- Sometimes the light at the end of a tunnel is an on-coming train
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7078
  • Country: pl
Re: What is the purpose of these transistors in power indicator circuit?
« Reply #3 on: July 18, 2024, 09:09:45 pm »
I can't explain why they included it, but it's a well known constant current regulator. When Q2 and LED current becomes ~0.7mA, voltage drop across R2 turns on Q1 and Q1 collector steals R1 current away from Q2 base, preventing further increase in Q2 current.
 

Offline canadaboy25Topic starter

  • Regular Contributor
  • *
  • Posts: 161
  • Country: ca
Re: What is the purpose of these transistors in power indicator circuit?
« Reply #4 on: July 18, 2024, 09:55:43 pm »
I am pretty sure the red wire provides a constant voltage, regardless of the output voltage on the white wire.

My mistake.  I just completed the repair and the voltage on the red wire does in fact change with the voltage on the white wire.   :palm:

This makes a lot more sense and obviously some active regulation is required for constant brightness.

I can't explain why they included it, but it's a well known constant current regulator. When Q2 and LED current becomes ~0.7mA, voltage drop across R2 turns on Q1 and Q1 collector steals R1 current away from Q2 base, preventing further increase in Q2 current.

Thanks for the explanation.  It all makes a lot more sense now.
canadaboy25

- Sometimes the light at the end of a tunnel is an on-coming train
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf