0
\$\begingroup\$

My project requires a backup power supply, and I want to include an LED to determine when the backup power supply becomes active. My thought was a voltage divider to limit current to the LED, and allow the excess to bypass the LED and go straight through to the load.Would connecting a BJT as an amplified Zener where the Zener is in fact the LED be relevent?

I am told the correct way to do this would be to utilize a transistor, however I cannot think of a way to connect a transistor where I am not connecting it or an LED to ground(else there will always be current regardless of whether the backup power supply is active), or running the full load current through the gate of a transistor.Would a BJT be better here?

What is the correct way to approach this? I suspect using a transistor would be correct, I have just not been able to create a working circuit with a transistor myself! schematic

EDIT: More info

When the 12v supply is droped it is disconnected and creates an open circuit.

\$\endgroup\$
1
\$\begingroup\$

Use a PNP - -e.g. 2N3906; connect emitter via a 1N4148 (or any other) diode to +9V; connect base via ~ 10k to +12V. Connect the collector via a R (e.g. 10k) suitable for LED brightness to the LED to GND.

When the 12 V falls below 9V-2*0.7, the PNP will will turn on and light the LED.

The 1N4148 is to protect the E-B junction of the PNP if 12 V is present and 9 V not. If you are still concerned, you can add > 1Mohm in parallel with the E-B junction also.

\$\endgroup\$
  • 1
    \$\begingroup\$ A schematic might better illustrate what you mean. \$\endgroup\$ – Ignacio Vazquez-Abrams Jan 1 '16 at 2:45
  • \$\begingroup\$ Yes, it could, but I don't have time to create one & there is enough info in my comment to understand the concept. \$\endgroup\$ – jp314 Jan 1 '16 at 2:57
  • \$\begingroup\$ I tried this circuit, link The led doesnt light, and I am measuring positive voltage at the gate of the transistor(seems to be passing through the emitter into the base?). Edit: Forgot to add my load. The load is an Arduino connected from between D1 and D2 to ground \$\endgroup\$ – codicil793 Jan 1 '16 at 3:42
  • \$\begingroup\$ (The diode D3 is backwards). Change the 12 V to 0 V -- the LED will light. \$\endgroup\$ – jp314 Jan 1 '16 at 4:01
  • \$\begingroup\$ "When the 12 V falls below 9V-2*0.7, the PNP will will turn on and light the LED." True enough, but for instance with the 12 V at 10 volts the LED will be on, but the backup will not be supplying power. \$\endgroup\$ – WhatRoughBeast Jan 1 '16 at 4:03
0
\$\begingroup\$

Welcome to Electronics.StackExchange!

The "circuit never worked" because D3 and LED1 have 12v on their cathodes (11.3v realistically), which is less than the 9v they are being supplied with, so they are "reverse-biased" and do not conduct.

Here is the Wikipedia entry on diodes for reference.

What would help you 100x more than a concise answer to this particular question (as jp314 provided), is learning how to use diodes and transistors effectively.

There is a great, free series of textbooks available online for electronics study. Please see Lessons In Electric Circuits by Tony Kuphaldt. If you study the first three volumes with vigor, you will have no problem finding your own solutions to questions like these.

\$\endgroup\$
  • \$\begingroup\$ The purpose of my diodes here is that when the main powerr supply(12v) is active, the D3 diode is revrse biased and does not conduct, preventing flow through the LED. Is my understanding incorrect in this? \$\endgroup\$ – codicil793 Jan 1 '16 at 3:40
  • \$\begingroup\$ No, D3 is just to protect the B-E junction of Q1. When the 12 V is > 9V, the PNP is off (B-E reverse biased), and so LED is off. When the 12 V is < 9 V, the base of the PNP is pulled low; the PNP is on, and the LED lights. \$\endgroup\$ – jp314 Jan 1 '16 at 4:03
  • \$\begingroup\$ So the 12v supply is the "main" and the 9v is the "backup?" That wasn't mentioned before. When the "main" 12v supply is off, LED1 and D3 will be forward-biased and could illuminate. There are many issues with it, and jp314's solution would be much more robust. \$\endgroup\$ – rdtsc Jan 1 '16 at 16:38
-2
\$\begingroup\$

This is a perfectly fine circuit, but there is 2 things you need to take notice: 1, make sure your backup power has less voltage. In this case, the 9v should be the backup; 2, make sure to connect this input to a voltage regulator pin on an arduino, or it will kill your arduino board.

\$\endgroup\$
  • \$\begingroup\$ It's a very bad circuit. In order to light the LED, about 2 volts (or so) needs to be dropped across R2, which means the effective battery voltage will be about 7 volts. \$\endgroup\$ – WhatRoughBeast Jan 1 '16 at 5:31
  • \$\begingroup\$ Yea, it isn't the proper way to do it, howerever since it is not just the LEDs path, it is a voltage divider. The voltage drop will be far less on R1 so the voltage drp after the two parallel resistors will be minimal \$\endgroup\$ – codicil793 Jan 1 '16 at 16:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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