0
\$\begingroup\$

I am currently struggling a lot with a tedious issue - I have to control my 7-segment display with a CD4511 decoder. However, my display is Common Anode, and it is not changable in my case. The best I got out of the situation is that the numbers were inverted(lights that should be on are off and vise versa). Later on, I have connected 7 transistors in order to reverse all the outputs of the chip, which resolved the issue, but only partially. Yes, the lights were on when they needed to be, however, my project REQUIRES to use only one transistor.

So, I used the PNP transistor, connecting the collector to the common of 7-segment display, base to arduino digital pin(and setting this pin to low) and the emitter to 5V. The result I am getting is that the needed lights DO light up, but only for a mere second, instantly turning off afterwards. Is there anything I can do to properly invert the display?Here is a circuit I have built. Also, I am working on TinkerCad

\$\endgroup\$
4
  • 1
    \$\begingroup\$ The "I have to control my 7-segment display with a CD4511 decoder" and the "my project REQUIRES" both suggest to me this could be homework. Could you clarify on this point? Is this a puzzle you've been instructed to solve and therefore is limited (we'd want to know your explicit project limitations more fully) or are you open to a variety of options (we'd want to know your personal limitations more fully.) I'm asking because I don't want to poorly invest time. (Schematic could be laid out better, too. Any chance?) \$\endgroup\$
    – jonk
    Jan 16 at 21:20
  • \$\begingroup\$ Not a homework, rather a part of a bigger project. The options are limited, yes, I am forced to use a 4511 decoder, 1 display, and 1 transistor. Unfortunately, I am not able to edit the schematic itself, as it is automatically done by the Tinkercad(simulator I am working on) \$\endgroup\$ Jan 16 at 21:27
  • \$\begingroup\$ this smells like schoolwork, even if you say that it is not ........ replace the display with one that works .... or try hacking the one you have \$\endgroup\$
    – jsotola
    Jan 16 at 21:58
  • \$\begingroup\$ I can think of at least one answer, but it's really only suitable for a homework question and unfortunately yours is not such a question. \$\endgroup\$ Jan 16 at 22:22

1 Answer 1

0
\$\begingroup\$

Why do you need a transistor? thats the nice thing of that IC, its all inside.

If you are constrained on component count for whatever reason, then just invert the 7-segement mapping in software, its really that simple.

Also, why is there only one resistor? 1K is enough to not damage the leds or the driver, but the segments will get dimmer if you turn on multiple of them. That's really bad practice. Power the 7-seg to the positive supply as you would normally, then the cathode of each segment gets a resistor to the input of the driver IC. Pick the resistors to stay under the max sinking current of that driver.

Also, this circuit diagram hurts my eyes. Dont make big inter-connecting lines on power supply nets. Thats why we have net labels, they are free to use ;) same with the grounds

\$\endgroup\$

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.