Pages: [1]   Go Down
Author Topic: 7 Segment LED reverse voltage problem  (Read 807 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 18
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys I need someone's help. I'm new to this and may have the wrong concepts. I bought a 2 digit 7 segment led with common anode. I've done some research here and on YouTube and found that I can hook up the cathode pins to some digital output pins on the arduino and set them to low. Also I've found out that I have to put a current resistor between the cathodes and the digital pins. Also it is recommended to use the 3.3v on the a ;)node side. I'm planning of just using one led to get the basics straight. I'm currently using the arduino uno r1.
Well my question is the following: when I set the output pins to HIGH to turn off the led, wouldn't that cause a reverse voltage on the led?

Thanks, and sorry for my bad English. smiley-wink
Logged

Offline Offline
Edison Member
*
Karma: 57
Posts: 2194
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If the Arduino is running from 3V and the common anode is at 3V then there's no reverse bias condition.
If your Arduino is running 5V then have the "CA" at 5V, too.
Logged

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

0
Offline Offline
Newbie
*
Karma: 0
Posts: 18
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So you are suggesting to hook up the common anode to 5V and when setting the OUTPUT pin to HIGH I won't have a reverse voltage?
Logged

Offline Offline
Edison Member
*
Karma: 57
Posts: 2194
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Correct.
It's a component with 5V at both electrodes. 
A diode with the anode at +5 and the cathode at +5.
A diode with the anode at +5, the cathode connected to a resistor, and the other end of the resistor at +5.
What's the voltage across?  0V

(NB A resistor is required between each segment/LED and each output pin.  You could get by with one resistor in the "CA" line, but you'd have to make certain that only one segment would be on at a time.  Stay with a resistor for each until, for now.)
Logged

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

0
Offline Offline
Newbie
*
Karma: 0
Posts: 18
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, thanks a lot. I've done that, but now my arduino just resets everynow and then. I gonna check if it is my computer or something else.
Logged

Offline Offline
Edison Member
*
Karma: 57
Posts: 2194
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
                       |
5V------A_K----220Ω----| output pin
                       |
Logged

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

0
Offline Offline
Newbie
*
Karma: 0
Posts: 18
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks
Logged

Pages: [1]   Go Up
Jump to: