3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

stop 7-segment from ghosting?

I'm working on a simple arduino 7 segment driving circuit. (It also has a led bar-graph that displays binary numbers but that part is working fine.) When I get the display working I might make an instructible out of it.

Here's the basic layout:
-using this 8 segmet 4 digit common cathode display.
-arduino controls what segments are on via 74HC164 8-bit Serial Shift Register
-shift register controls an array of 8 PNP transistors with base and pull-up resistors
-transistors connect to display anodes through resistor array
-display cathodes (common for each digit) connected to array of 4 PNP transistors with base and pull-down resistors 
-PNP transistors controlled by arduino.

(I will post the schematic shortly.)

In software, to display a four digit number, I shift the pattern for a given digit to the shift-register, which in turn turns on the PNPs for the corresponding segment anodes. I then turn on the NPN for that digit's cathode. I delay for a few milliseconds, then turn the NPN off, shift the next digit in, and turn the NPN for that digit on. Rinse and repeat.

It works fine but the segments that should be off are at about 1/2 brightness, making all the digits look like eights. Even the DP looks like it's on and I'm not turning it on anywhere.

Do I need pull-down resistors for the anodes or something? What's going on here?

6 answers
sort by: active | newest | oldest
Jun 30, 2011. 8:08 AMsteveastrouk says:
Get your oscilloscope on your PNP transistors, and you're going to find they don't turn off properly. Arrange pull UP resistors to the base of the PNPs.

Steve
Jun 30, 2011. 2:52 PMsteveastrouk says:
MUCH smaller. Try 4k7 !

Steve
Jul 1, 2011. 6:29 AMmaewert says:
Steve,

Just so we're clear, 4k7 means 4700 ohms, correct?

Best Wishes,
:-)
Jul 1, 2011. 8:15 AMsteveastrouk says:
Yes, that's right. It saves confusion when writing 4.7K....is there a decimal point, or is there some spot on the monitor....

Steve
Jun 30, 2011. 12:22 PMorksecurity says:
+1.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!