2

I have a LED candle that runs on two AA batteries which total 3 V. It already has remote. I want that 3 V output to turn on a 12 V battery supply to a LED array.

I am trying to use an NPN transistor for this: am I doing right? What else can I use?

Renan
  • 5,120
  • 2
  • 28
  • 45
kevin
  • 21
  • 2

2 Answers2

2

Bruno's circuit uses a FET, which can also be used, but I'll give you an answer for the BJT (Biploar Junction Transistor) too.

enter image description here

First the NPN, at the left. You supply 3 V to base resistor R2. Since the base will be at 0.7 V (the base-emitter junction acts as a diode) you'll have a base current of 2.3 mA. The transistor's collector current will be a multiple of that. For a general purpose transistor the current gain (\$h_{FE}\$) is typically around 100, but will decrease for a transistor in saturation. The 2.3 mA base current will be enough to give you 20 mA collector current though.

R1 is needed to limit the LED current, you'll always need it if you supply LEDs with a voltage source. The value depends on the LEDs' voltgae drop. I've calculated with 2 V per LED, then for 2 LEDs you have 8 V across the resistor. Apply Ohm's Law: R = V/I, then for 20 mA you want a 390 Ω resistor. (actually 400 Ω but 390 is a common E12 value, while 400 isn't).

For the FET's R3 the same holds, so also 390 Ω. A FET is controlled by voltage instead of current, and you'll need a logic level gate FET to be sure it switches on at 3 V. R4 is not always required, but limits the short current peak during switching; the gate forms a capacitance and microcontrollers and other logic doesn't like capacitive loads. R5 prevents that the gate would be floating if it wouldn't be driven.

stevenvh
  • 145,832
  • 21
  • 457
  • 668
0

In this situation I would use a N type FET. I had troubles before controlling loads supplied with a voltage higher than the one applied on the base on NPN transistors. (But maybe is just me :)

The circuit will look something like this:

enter image description here

You can use any FET provided that is supports the voltage and current needed for your load.

R1 on the gate of the FET will assure that is stays off when no voltage is applied on it's gate.


For a NPN configuration you will need something like this:

enter image description here

You can use any transistor provided that is supports the voltage and current needed for your load.

Bruno Ferreira
  • 4,468
  • 2
  • 25
  • 37
  • Why couldn't you use a NPN instead of the MOSFET in that circuit? – m.Alin Sep 11 '12 at 08:59
  • "NPN transistors have trouble controlling loads supplied with a voltage higher than the voltage applied on it's base." That's true for common collector, but not for common emitter, where the supply voltage is always higher than the 0.7 V base voltage. Besides you're using the FET also in common source, so why compare with common collector? – stevenvh Sep 11 '12 at 09:07
  • I had troubles long ago using NPN transistors on common emitter for loads powered with a higher voltage than base, so since then I switched to FET I don't recall why, but then I was newbie and sincerely I had never again tried to use transistor on that situation again. Maybe I missed something at that time. – Bruno Ferreira Sep 11 '12 at 09:15
  • Switching IRF530 @ U(GS) = 3V? I'd try to find a different MOSFET for that. – jippie Sep 11 '12 at 11:14
  • @jippie Don't take into account the reference, I forgot to delete it. – Bruno Ferreira Sep 11 '12 at 11:17
  • using a npn transistor worked perfectly thankyou every one for your input. I had to change the value of the resistor to 1 k ohm because my array was only getting 5 volts with the 10 k ohm. Thankyou all for helping me – kevin Sep 24 '12 at 08:23