How to power 7 segment display?

  • Thread starter triden
  • Start date
  • Tags
    Power
In summary: If you look at the datasheet for a typical BJT, you will see that the base-emitter junction has a typical forward voltage drop of 0.7V. So if you are applying 5V to the base, you will only get 4.3V across the LED, which may not be enough to turn it on. You need to apply a higher voltage (at least 20V) to the base in order to get the full 20V across the LED to turn it on. That's why using a PNP transistor on the high side with a pull-up resistor to 20V is a better solution. Hope that helps!
  • #1
triden
174
0
I have a 7 segment display that is rather large. It requires 20vdc and about 200mA to light up.

Right now I have a circuit that outputs to a BDC-7segment decoder, however, the decoder isn't able to provide enough power to light up the segments on the display. What I was thinking was to use a transistor for each segment to handle the additional power. The transistor will be triggered by the 5vdc signal from the decoder.

My question is, how do I wire each of 7 transistors into the 7-segment display? The display is CC (Common Cathode), and thus has me stumped. If it were common anode, I could just use an NPN and put the display between the +20vdc and the collector. Also, what would be better..a mosfet or a BJT? Any suggestions?

I have attached an image of how the display is wired.

Thanks
 

Attachments

  • display.gif
    display.gif
    9.5 KB · Views: 622
Engineering news on Phys.org
  • #2
in my opinion, you should tie the tops (anodes) of the LEDs together to a common +20v and the bottom (cathodes) of each LED would be tied to the collector of a good medium power NPN transistor (that might be driven by another NPN in a Darlington circuit). the emitters of all of the NPN transistors would be tied together and connected to ground. for each NPN, there would be a pull-up resistor tied between the base and +5v or +3.3v or whatever is the B+ for your logic. you use a pull-up because most logic can "sink" more current than it can "source" (i.e. they make pretty good switches to ground), so the resistance of the pull-up resistor would be determined by how much current the logic can sink when it goes to logic "0".
 
  • #3
To drive a CC LED display, you use high-side switch transistors. Use PNP BJTs with enough current and power capability. You will need to do level translation for the 5V decoder signals, but that just amounts to driving low-side NPN transistors that sink collector current to pull down on the PNP bases to turn on the high-side switches. Depending on the output level of the decoder, you may need an inverter between each decoder output and the associated NPN low-side drive BJT.
 
  • #4
berkeman said:
To drive a CC LED display, you use high-side switch transistors.

whoops. i missed in the original post that it was common cathode.

sorry, but berkeman is correct, instead of the easy NPN transistors that live close to ground, all of your LEDs are already tied to ground, so it's PNP transistors on the "high side". now how to connect those transistors that are connected to +20v to a bunch of logic that live in a 0 to 5v environment, is more of a problem. i think, instead of the Darlington thing, you will have NPN transistors connected with the collectors connected to the bases of the high-side PNPs. don't know if there need be a pull-up, pull-down, or no resistor.

sorry for the bad advice. i need to read things more carefully. i did look at the graphic, and thought it was a common anode, but nooo, it's CC. ooops, sorry.
 
  • #5
Triden,

Take a look at the ckt I have attached. I just used a NPN to drive the LEDs.
The voltage at the base of the transistor has to be greater than 0.7v+forward voltage drop across the LED.
I think 5V will be more than enough.
LEDs are usually connected on the collector side of transistors, but I connected them on the emitter side.
 

Attachments

  • ledckt.jpg
    ledckt.jpg
    75 KB · Views: 532
  • #6
likephysics: Thanks for your reply, but I can guarantee that the ckt you atatched will not work. I thought this originally, but after thinking about it, the 20vcd on the collector will not allow the bjt to turn on with a 5vdc base. A BJT will allow you to turn on a 2amp device using only 10mA, but not 20vdc using only 5vdc if you see what I'm saying.

Berkeman: awesome, I understand what you said and it makes some sense now to me. I am going to try using that method and see if I can get it to work. I was thinking, since I have an open-collector decoder laying around, I can use a pullup resistor on it with 20vdc and then I can drive a PNP from the output of the decoder...that way I won't need to use an NPN for level shifting..atleast I think anyhow. Thanks for the advice
 
  • #7
triden said:
Berkeman: awesome, I understand what you said and it makes some sense now to me. I am going to try using that method and see if I can get it to work. I was thinking, since I have an open-collector decoder laying around, I can use a pullup resistor on it with 20vdc and then I can drive a PNP from the output of the decoder...that way I won't need to use an NPN for level shifting..atleast I think anyhow. Thanks for the advice

Be sure to check the BVceo rating for the open-collector decoder outputs -- 20V might be kind of high for them. If they can take it, that's a neat simplification, though. Also check their current drive, and the beta of the PNP high-side drive transistors that you choose, to be sure that you don't need a current gain stage in between. Have fun!
 
  • #8
triden, I tried the ckt in the simulator. It worked.
If you don't mind can you explain why it doesn't work.
thanks.
 
  • #9
likephysics said:
triden, I tried the ckt in the simulator. It worked.
If you don't mind can you explain why it doesn't work.
thanks.

The issue is that you are switching just 5V (-Vbe) across the LED with your configuration, instead of a full 20V (-Vcesat).
 

1. How do I supply power to a 7 segment display?

To power a 7 segment display, you will need a power source with the appropriate voltage and current rating for the display. This can be a battery, a power supply, or a microcontroller with built-in power capabilities.

2. What voltage is required to power a 7 segment display?

The required voltage for a 7 segment display can vary depending on the type of display and its specifications. Generally, most 7 segment displays require a voltage between 3-5V, but it is important to check the datasheet for your specific display.

3. Can I use a lower voltage to power a 7 segment display?

It is not recommended to use a lower voltage than what is specified for a 7 segment display. Doing so may result in dim or unreadable segments, or could potentially damage the display.

4. How much current does a 7 segment display require?

The current required for a 7 segment display depends on its size and the number of segments being powered. Generally, a single segment can draw anywhere from 10-30mA, so for a 7 segment display with all segments lit, you would need a current of at least 70-210mA.

5. Can I use a resistor to limit the current to a 7 segment display?

Yes, using a resistor in series with the display can help limit the current and prevent damage to the display. The value of the resistor needed will depend on the voltage and current requirements of the display, and can be calculated using Ohm's Law.

Similar threads

  • Electrical Engineering
Replies
5
Views
5K
  • Electrical Engineering
Replies
3
Views
2K
  • Electrical Engineering
Replies
12
Views
6K
Replies
3
Views
2K
  • Electrical Engineering
Replies
1
Views
1K
  • Electrical Engineering
Replies
6
Views
4K
  • Electrical Engineering
Replies
4
Views
5K
  • Electrical Engineering
Replies
3
Views
8K
  • Programming and Computer Science
Replies
8
Views
4K
Replies
5
Views
3K
Back
Top