Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

50%
+1 −1
Q&A Driving LED with NPN transistor from I/O pin

No need to power the led with 5V. 3.3 V should suffice! Before I come to problem of regulating the current with only 3.3V, I wish to state some general simple constructions. Technically speaking,...

posted 4y ago by coquelicot‭  ·  edited 1y ago by coquelicot‭

Answer
#8: Post edited by user avatar coquelicot‭ · 2023-09-24T07:49:53Z (about 1 year ago)
  • No need to power the led with 5V. 3.3 V should suffice!
  • Before I come to problem of regulating the current with only 3.3V, I wish to state some general simple constructions.
  • Technically speaking, the following current sink/source is perhaps insufficiently known:
  • ![DiodeRegu1](https://electrical.codidact.com/uploads/67bpjfbgpyeu2zak7e5ot1gyxk09)
  • The current is set by I = (V_zener-0.7)/R1.
  • This is a current sink driving a led with 20mA, but with you can obtain a dual circuit with a pnp in place of the npn if you need a current source.
  • This current sink/source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be especially useful to limit the current from above (I mean not near the ground), even at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Notice also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than using a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot, like in the schematic above where the power supply is allowed to vary from 6 to 30V, for a LED current of 20 mA.
  • Now, the first drawback above can be easily overcome thanks to the inexpensive TL431 voltage reference:
  • ![diodeRegu2](https://electrical.codidact.com/uploads/zf1t27wt1nt4mgn8dutf7w8za9xs)
  • As above, the current limit is set by I = (V_ref-0.6) / R1 = 1.9/R1.
  • Then you have a stable current source that works with a supply voltage from V_ref = 2.5 V to 36V. With the component values above, the current sunk is exactly 20mA.
  • ----------------------------------------------
  • Now let us return to the original problem of the OP of regulating a 3V LED with only 3.3V of supply current.
  • As pointed out by Lorenzo Donati in his comments (acknowledgments), my above solutions cannot work because there is not enough room for the 3V drop of the LED. Olin has pointed out that using a supply of 5V to provide some room is the adequate solution.
  • Nevertheless, just for showing this can be done, I provide below a solution with a 3.3V supply.
  • The first solution is a current sink with a 2n3904 and an oamp.
  • ![DiodeRegu3](https://electrical.codidact.com/uploads/sfrphhwlm5qeedzdc60e2reav7nw)
  • The TLC2272 is one of my favorites, but you can probably do the same with a common LM358.
  • The current is set with
  • $I_{reg} = V_{in+}/R1$, where $V_{in+}$ is set with the voltage divider, or better, in other circumstances where the supply may vary, with a voltage reference or a Zenner and a voltage divider.
  • The R1 resistor should be low to reduce as much as possible the voltage drop.
  • In the above schematic, the current sunk is 17mA according to my simulations, which is probably sufficient in most cases.
  • This is still not optimal as the npn has a small, but still too high, voltage drop at saturation.
  • If you want to be really pedant, it is possible to use my favorite IRF7204 MOSFET. It's good to know it: it can switch with only 3V of threshold voltage.
  • Here is the schematic for a current source driving the LED (pay attention that the input terminals of the oamp have been inverted):
  • ![diodeRegu4](https://electrical.codidact.com/uploads/bgz8esacx5y6thtwtpr69hzkma59)
  • This times, the voltage drop for the LED is almost equal to the supply voltage, which provides even more room for driving a LED at its optimal power.
  • No need to power the led with 5V. 3.3 V should suffice!
  • Before I come to problem of regulating the current with only 3.3V, I wish to state some general simple constructions.
  • Technically speaking, the following current sink/source is perhaps insufficiently known:
  • ![DiodeRegu1](https://electrical.codidact.com/uploads/67bpjfbgpyeu2zak7e5ot1gyxk09)
  • The current is set by I = (V_zener-0.7)/R1.
  • This is a current sink driving a led with 20mA, but with you can obtain a dual circuit with a pnp in place of the npn if you need a current source.
  • This current sink/source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be especially useful to limit the current from above (I mean not near the ground), even at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Notice also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than using a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot, like in the schematic above where the power supply is allowed to vary from 6 to 30V, for a LED current of 20 mA.
  • Now, the first drawback above can be easily overcome thanks to the inexpensive TL431 voltage reference:
  • ![diodeRegu2](https://electrical.codidact.com/uploads/zf1t27wt1nt4mgn8dutf7w8za9xs)
  • As above, the current limit is set by I = (V_ref-0.6) / R1 = 1.9/R1.
  • Then you have a stable current source that works with a supply voltage from V_ref = 2.5 V to 36V (but the LED needs an additional 3V drop so, this will work from 6V to 36V for a LED). With the component values above, the current sunk is exactly 20mA.
  • ----------------------------------------------
  • Now let us return to the original problem of the OP of regulating a 3V LED with only 3.3V of supply current.
  • As pointed out by Lorenzo Donati in his comments (acknowledgments), my above solutions cannot work because there is not enough room for the 3V drop of the LED. Olin has pointed out that using a supply of 5V to provide some room is the adequate solution.
  • Nevertheless, just for showing this can be done, I provide below a solution with a 3.3V supply.
  • The first solution is a current sink with a 2n3904 and an oamp.
  • ![DiodeRegu3](https://electrical.codidact.com/uploads/sfrphhwlm5qeedzdc60e2reav7nw)
  • The TLC2272 is one of my favorites, but you can probably do the same with a common LM358.
  • The current is set with
  • $I_{reg} = V_{in+}/R1$, where $V_{in+}$ is set with the voltage divider, or better, in other circumstances where the supply may vary, with a voltage reference or a Zenner and a voltage divider.
  • The R1 resistor should be low to reduce as much as possible the voltage drop.
  • In the above schematic, the current sunk is 17mA according to my simulations, which is probably sufficient in most cases.
  • This is still not optimal as the npn has a small, but still too high, voltage drop at saturation.
  • If you want to be really pedant, it is possible to use my favorite IRF7204 MOSFET. It's good to know it: it can switch with only 3V of threshold voltage.
  • Here is the schematic for a current source driving the LED (pay attention that the input terminals of the oamp have been inverted):
  • ![diodeRegu4](https://electrical.codidact.com/uploads/bgz8esacx5y6thtwtpr69hzkma59)
  • This times, the voltage drop for the LED is almost equal to the supply voltage, which provides even more room for driving a LED at its optimal power.
#7: Post edited by user avatar coquelicot‭ · 2023-09-24T07:43:10Z (about 1 year ago)
  • No need to power the led with 5V. 3.3 V should suffice!
  • Technically speaking, the following current source is insufficiently known:
  • ![Image1](https://electrical.codidact.com/uploads/AHgY9VJPsubPTrk5d27Wrngz)
  • The current is set by I = V_zener/R1.
  • This current source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be especially useful to limit the current from above (I mean not near the ground), even at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Notice also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than using a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot.
  • Now, the two drawbacks above can be easily overcome thanks to the inexpensive TL431 voltage reference. In your case, the following circuit will do:
  • ![Image2](https://electrical.codidact.com/uploads/jovmMB2vneHEusxo7RNPeUBJ)
  • As above, the current limit is set by I = V_ref / R.
  • Now, you have a precision current source that works with a supply voltage from V_ref = 2.5V to 36V. With the component values above, the current sunk is exactly 20.5mA.
  • No need to power the led with 5V. 3.3 V should suffice!
  • Before I come to problem of regulating the current with only 3.3V, I wish to state some general simple constructions.
  • Technically speaking, the following current sink/source is perhaps insufficiently known:
  • ![DiodeRegu1](https://electrical.codidact.com/uploads/67bpjfbgpyeu2zak7e5ot1gyxk09)
  • The current is set by I = (V_zener-0.7)/R1.
  • This is a current sink driving a led with 20mA, but with you can obtain a dual circuit with a pnp in place of the npn if you need a current source.
  • This current sink/source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be especially useful to limit the current from above (I mean not near the ground), even at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Notice also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than using a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot, like in the schematic above where the power supply is allowed to vary from 6 to 30V, for a LED current of 20 mA.
  • Now, the first drawback above can be easily overcome thanks to the inexpensive TL431 voltage reference:
  • ![diodeRegu2](https://electrical.codidact.com/uploads/zf1t27wt1nt4mgn8dutf7w8za9xs)
  • As above, the current limit is set by I = (V_ref-0.6) / R1 = 1.9/R1.
  • Then you have a stable current source that works with a supply voltage from V_ref = 2.5 V to 36V. With the component values above, the current sunk is exactly 20mA.
  • ----------------------------------------------
  • Now let us return to the original problem of the OP of regulating a 3V LED with only 3.3V of supply current.
  • As pointed out by Lorenzo Donati in his comments (acknowledgments), my above solutions cannot work because there is not enough room for the 3V drop of the LED. Olin has pointed out that using a supply of 5V to provide some room is the adequate solution.
  • Nevertheless, just for showing this can be done, I provide below a solution with a 3.3V supply.
  • The first solution is a current sink with a 2n3904 and an oamp.
  • ![DiodeRegu3](https://electrical.codidact.com/uploads/sfrphhwlm5qeedzdc60e2reav7nw)
  • The TLC2272 is one of my favorites, but you can probably do the same with a common LM358.
  • The current is set with
  • $I_{reg} = V_{in+}/R1$, where $V_{in+}$ is set with the voltage divider, or better, in other circumstances where the supply may vary, with a voltage reference or a Zenner and a voltage divider.
  • The R1 resistor should be low to reduce as much as possible the voltage drop.
  • In the above schematic, the current sunk is 17mA according to my simulations, which is probably sufficient in most cases.
  • This is still not optimal as the npn has a small, but still too high, voltage drop at saturation.
  • If you want to be really pedant, it is possible to use my favorite IRF7204 MOSFET. It's good to know it: it can switch with only 3V of threshold voltage.
  • Here is the schematic for a current source driving the LED (pay attention that the input terminals of the oamp have been inverted):
  • ![diodeRegu4](https://electrical.codidact.com/uploads/bgz8esacx5y6thtwtpr69hzkma59)
  • This times, the voltage drop for the LED is almost equal to the supply voltage, which provides even more room for driving a LED at its optimal power.
#6: Post edited by user avatar coquelicot‭ · 2020-11-22T10:11:55Z (about 4 years ago)
small mistake
  • No need to power the led with 5V. 3.3 V should suffice!
  • Technically speaking, the following current source is insufficiently known:
  • ![Image1](https://electrical.codidact.com/uploads/AHgY9VJPsubPTrk5d27Wrngz)
  • The current is set by I = R1 / V_zener.
  • This current source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be especially useful to limit the current from above (I mean not near the ground), even at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Notice also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than using a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot.
  • Now, the two drawbacks above can be easily overcome thanks to the inexpensive TL431 voltage reference. In your case, the following circuit will do:
  • ![Image2](https://electrical.codidact.com/uploads/jovmMB2vneHEusxo7RNPeUBJ)
  • As above, the current limit is set by I = V_ref / R.
  • Now, you have a precision current source that works with a supply voltage from V_ref = 2.5V to 36V. With the component values above, the current sunk is exactly 20.5mA.
  • No need to power the led with 5V. 3.3 V should suffice!
  • Technically speaking, the following current source is insufficiently known:
  • ![Image1](https://electrical.codidact.com/uploads/AHgY9VJPsubPTrk5d27Wrngz)
  • The current is set by I = V_zener/R1.
  • This current source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be especially useful to limit the current from above (I mean not near the ground), even at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Notice also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than using a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot.
  • Now, the two drawbacks above can be easily overcome thanks to the inexpensive TL431 voltage reference. In your case, the following circuit will do:
  • ![Image2](https://electrical.codidact.com/uploads/jovmMB2vneHEusxo7RNPeUBJ)
  • As above, the current limit is set by I = V_ref / R.
  • Now, you have a precision current source that works with a supply voltage from V_ref = 2.5V to 36V. With the component values above, the current sunk is exactly 20.5mA.
#5: Post edited by user avatar coquelicot‭ · 2020-08-05T10:51:05Z (over 4 years ago)
  • No need to power the led with 5V. 3.3 V should suffice!
  • Technically speaking, the following current source is insufficiently known:
  • ![Image1](https://electrical.codidact.com/uploads/AHgY9VJPsubPTrk5d27Wrngz)
  • The current is set by I = R1 / V_zener.
  • This current source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be also useful to use at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Notice also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than using a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot.
  • Now, the two drawbacks above can be easily overcome thanks to the inexpensive TL431 voltage reference. In your case, the following circuit will do:
  • ![Image2](https://electrical.codidact.com/uploads/jovmMB2vneHEusxo7RNPeUBJ)
  • As above, the current limit is set by I = V_ref / R.
  • Now, you have a precision current source that works with a supply voltage from V_ref = 2.5V to 36V. With the component values above, the current sunk is exactly 20.5mA.
  • No need to power the led with 5V. 3.3 V should suffice!
  • Technically speaking, the following current source is insufficiently known:
  • ![Image1](https://electrical.codidact.com/uploads/AHgY9VJPsubPTrk5d27Wrngz)
  • The current is set by I = R1 / V_zener.
  • This current source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be especially useful to limit the current from above (I mean not near the ground), even at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Notice also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than using a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot.
  • Now, the two drawbacks above can be easily overcome thanks to the inexpensive TL431 voltage reference. In your case, the following circuit will do:
  • ![Image2](https://electrical.codidact.com/uploads/jovmMB2vneHEusxo7RNPeUBJ)
  • As above, the current limit is set by I = V_ref / R.
  • Now, you have a precision current source that works with a supply voltage from V_ref = 2.5V to 36V. With the component values above, the current sunk is exactly 20.5mA.
#4: Post edited by user avatar coquelicot‭ · 2020-08-05T10:46:37Z (over 4 years ago)
  • No need to power the led with 5V. 3.3 V should suffice!
  • Technically speaking, the following current source is insufficiently known:
  • ![Image1](https://electrical.codidact.com/uploads/AHgY9VJPsubPTrk5d27Wrngz)
  • The current is set by I = R1 / V_zener.
  • This current source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be also useful to use at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Notice also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than using a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot.
  • Now, the two drawbacks above can be easily overcome thanks to the inexpensive TL431 voltage reference. In your case, the following circuit will do:
  • ![Image2](https://electrical.codidact.com/uploads/jovmMB2vneHEusxo7RNPeUBJ)
  • As above, the current limit is set by I = V_ref / R.
  • Now, you have a precision current source that works with a supply voltage from V_ref = 2.5V to 36V.
  • No need to power the led with 5V. 3.3 V should suffice!
  • Technically speaking, the following current source is insufficiently known:
  • ![Image1](https://electrical.codidact.com/uploads/AHgY9VJPsubPTrk5d27Wrngz)
  • The current is set by I = R1 / V_zener.
  • This current source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be also useful to use at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Notice also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than using a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot.
  • Now, the two drawbacks above can be easily overcome thanks to the inexpensive TL431 voltage reference. In your case, the following circuit will do:
  • ![Image2](https://electrical.codidact.com/uploads/jovmMB2vneHEusxo7RNPeUBJ)
  • As above, the current limit is set by I = V_ref / R.
  • Now, you have a precision current source that works with a supply voltage from V_ref = 2.5V to 36V. With the component values above, the current sunk is exactly 20.5mA.
#3: Post edited by user avatar coquelicot‭ · 2020-08-05T10:44:30Z (over 4 years ago)
  • No need to power the led with 5V. 3.3 V should suffice!
  • Technically speaking, the following current source is insufficiently known:
  • ![Image1](https://electrical.codidact.com/uploads/AHgY9VJPsubPTrk5d27Wrngz)
  • The current is set by I = R1 / V_zener.
  • This current source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be also useful to use at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Notice also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than to use a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot.
  • Now, the two drawbacks above can be easily overcome thanks to the inexpensive TL431 voltage reference. In your case, the following circuit will do:
  • ![Image2](https://electrical.codidact.com/uploads/jovmMB2vneHEusxo7RNPeUBJ)
  • As above, the current limit is set by I = V_ref / R.
  • Now, you have a precision current source that works with a supply voltage from V_ref = 2.5V to 36V.
  • No need to power the led with 5V. 3.3 V should suffice!
  • Technically speaking, the following current source is insufficiently known:
  • ![Image1](https://electrical.codidact.com/uploads/AHgY9VJPsubPTrk5d27Wrngz)
  • The current is set by I = R1 / V_zener.
  • This current source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be also useful to use at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Notice also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than using a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot.
  • Now, the two drawbacks above can be easily overcome thanks to the inexpensive TL431 voltage reference. In your case, the following circuit will do:
  • ![Image2](https://electrical.codidact.com/uploads/jovmMB2vneHEusxo7RNPeUBJ)
  • As above, the current limit is set by I = V_ref / R.
  • Now, you have a precision current source that works with a supply voltage from V_ref = 2.5V to 36V.
#2: Post edited by user avatar coquelicot‭ · 2020-08-05T10:43:48Z (over 4 years ago)
  • No need to power the led with 5V. 3.3 V should suffice!
  • Technically speaking, the following current source is insufficiently known:
  • ![Image1](https://electrical.codidact.com/uploads/AHgY9VJPsubPTrk5d27Wrngz)
  • The current is set by I = R1 / V_zener.
  • This current source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be also useful to use at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Note also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than to use a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot.
  • Now, the two drawbacks above can be easily overcome thanks to the inexpensive TL431 voltage reference. In your case, the following circuit will do:
  • ![Image2](https://electrical.codidact.com/uploads/jovmMB2vneHEusxo7RNPeUBJ)
  • As above, the current limit is set by I = V_ref / R.
  • Now, you have a precision current source that works with a supply voltage from V_ref = 2.5V to 36V.
  • No need to power the led with 5V. 3.3 V should suffice!
  • Technically speaking, the following current source is insufficiently known:
  • ![Image1](https://electrical.codidact.com/uploads/AHgY9VJPsubPTrk5d27Wrngz)
  • The current is set by I = R1 / V_zener.
  • This current source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be also useful to use at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Notice also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than to use a high voltage depletion mode mosfet to this purpose.
  • The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot.
  • Now, the two drawbacks above can be easily overcome thanks to the inexpensive TL431 voltage reference. In your case, the following circuit will do:
  • ![Image2](https://electrical.codidact.com/uploads/jovmMB2vneHEusxo7RNPeUBJ)
  • As above, the current limit is set by I = V_ref / R.
  • Now, you have a precision current source that works with a supply voltage from V_ref = 2.5V to 36V.
#1: Initial revision by user avatar coquelicot‭ · 2020-08-05T10:43:06Z (over 4 years ago)
No need to power the led with 5V. 3.3 V should suffice!

Technically speaking, the following current source is insufficiently known:

![Image1](https://electrical.codidact.com/uploads/AHgY9VJPsubPTrk5d27Wrngz)

The current is set by I = R1 / V_zener.

This current source is not only simple, is is also essentially FLOATING; that means that you can replace the ground with a conducting wire in your circuit. This can be also useful to use at high voltage (say up to 1000V), and assuming you chose a transistor with suitable rated voltage. Note also that this circuit can be used as a current source or a current limiter. The fact that this circuit is essentially floating seems not to be well known, as even the Art of Electronics has no other clue than to use a high voltage depletion mode mosfet to this purpose. 

The above current source has 2 drawbacks: First, it is not very precise, and the current sunk may varies somewhat because of different factors (like temperature etc.). Second, you need a supply voltage at least a bit larger than the zener voltage, and it is difficult to find zener diodes with zener voltage below 3.3V. Nevertheless, the above circuit is still valuable to power LEDs whenever the supply voltage may vary a lot. 

Now, the two drawbacks above can be easily overcome thanks to the inexpensive TL431 voltage reference. In your case, the following circuit will do:

![Image2](https://electrical.codidact.com/uploads/jovmMB2vneHEusxo7RNPeUBJ)

As above, the current limit is set by I = V_ref / R.
Now, you have a precision current source that works with a supply voltage from V_ref = 2.5V to 36V.