12/10/2023 0 Comments Npn transistorIn that case, you can increase the current when on so that the average is still bright enough. For example, with three multiplexed digits the LEDs will be on at most 1/3 of the time. In that case, the average on-time will be the reciprocal of the number of digits. If you are multiplexing multiple of them, then you also want to switch the anodes so that only one digit is enabled at a time. If you are just driving a single 7-segment digit, then the above applies directly. Again, that leaves a lot of slop from 12 V. That means the supply can go as high as 4.3 V + 10 V + 2.1 V = 16.4 V. (200 mW)/(20 mA) = 10 V, which is the maximum C-E voltage drop at 20 mA. The maximum supply voltage is limited by the power dissipation capability of the transistor. 12 V is therefore obviously plenty, and you can tolerate significant sag in that 12 V without the LED brightnesses changing in a noticeable way. That means this needs a minimum supply voltage of 4.3 V + 1 V + 2.1 V = 7.4 V. Let's say we want at least 1 V across the transistor so that it is past the low voltage regime. We already know the emitter of a transistor that is on will be at 4.3 V. This method works over a wide supply voltage range. 20 mA is usually the maximum continuous current such LEDs are rated for, but check the datasheet. Due to the gain of the transistor, most (around 98% or more) of this current will come from the collector, which means thru the LED. The emitter current is therefore (4.3 V)/(220 Ω) = 20 mA in this example. When on, the base of a transistor will be driven to 5 V. The LED current is controlled by the emitter resistor value, and is largely independent of the supply voltage. All you need is a single NPN transistor and emitter resistor per segment. The SEGx lines are 0-5 V digital outputs from your microcontroller.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |