Go Down

### Topic: Switching cathode (Read 1 time)previous topic - next topic

#### stoopkid

##### Mar 03, 2011, 11:27 am
So my 7seg has 8 anodes and 5 cathodes. How, with my two 595's do I switch the cathodes? This seems like it would be easy to google, but i guess I just havnt got the right key words because nothing is popping up...

thanks

#### AWOL

#1
##### Mar 03, 2011, 11:41 am
The cathodes are probably all commoned - easily checked with a meter.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

#### stoopkid

#2
##### Mar 03, 2011, 11:42 am
Its a 4 digit, i shouldve specified. I need to be able to switch them.

#### AWOL

#3
##### Mar 03, 2011, 11:48 am
Should still be easy to check with a meter.
Or a datasheet.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

#### stoopkid

#4
##### Mar 03, 2011, 11:53 amLast Edit: Mar 03, 2011, 11:58 am by stoopkid Reason: 1
Either you arent understanding my question, or Im not understating your answer. I know how to set the anodes of LED's to high to turn them on when they share a common ground. But in this case each digit shares anodes and is separated by using separate cathodes. So along with setting an output pin to apply charge to the anodes of the segments, I also need to know how to switch the ground on and off between the 5 cathodes to change between digits.

edit- okay I see the confusion. I know which cathodes control what... I need to know how to actually set the cathodes.

#### MarkT

#5
##### Mar 03, 2011, 11:58 am
If its 4 digit and there are 5 cathodes it might be that one of them is the colon between digits 2 and 3?

Each cathode can be driven with a NPN transistor (emitter to GND, collector to cathode, base via resistor to one Arduino pin).  Driving the relevant pin HIGH switches on the transistor.  The transistor is operating as a saturated switch, just make sure it can take the combined current of all 7 segments (this is typically set by the current limit transistors on the anodes).

Alternatively there are LED driver chips that control such a multiplexed array directly.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

#### stoopkid

#6
##### Mar 03, 2011, 12:08 pm
perfect. thank you.

but since I will only be lighting up one digit at a time by rolling through the cathodes, I only need to worry about the current of one digit, right?

#### AWOL

#7
##### Mar 03, 2011, 12:39 pm
Sorry for the misunderstanding - I originally thought it was maybe a single digit in a 14 pin package.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

#### stoopkid

#8
##### Mar 03, 2011, 12:45 pm
No problem, i wasn't very clear.

Go Up