I happen to have a common anode 7-segment display that I want to control using my Arduino Uno.
With a common cathode I get that I simple via resistors connect a digital pin to the pin on the segment display. Bringing the output HIGH turns on the segment, bringing it LOW turns it off.
My question is how do to this with a common anode?
I get that if I bring the pin LOW, then the segment is now on. Do I just bring the pin HIGH then to turn it off? (I am obviously still using resistors on all pins.)
The reason I ask is that it feels strange to connect positive to positive if that makes sense.
Common Anode receives the Vcc, all the segment cathodes will have resistors which connect to individual controller pins. Each pin will receive a LOW to enable each segment to turn ON.
Yes, a HIGH on each CATHODE pin will turn each segment of a 7seg Common Anode OFF.
HIGH anode -->LED|-- cathode LOW = ON <--
LOW anode -->LED|-- cathode LOW = OFF
HIGH anode -->LED|-- cathode HIGH = OFF <--
LOW anode -->LED|-- cathode HIGH = OFF
No, it doesn't make sense. Volts don't go anywhere. Current flows from higher voltage to lower voltage, like a ball rolling downhill. On flat ground, the ball doesn't move. If both terminals of a component are at the same voltage, current doesn't flow through it.
Where would the current flow? And how much current would flow along that path? If you work this out, you'll see it's not a concern.
If it does bother you, set the pin to INPUT instead of OUTPUT, HIGH. That way it can't source current to begin with.
Now, you have introduced the term potential that essentially belong to Physics. How do we correlate it with the term voltage of Electrical Engineering?
In Electrical Engineering, voltage is a value that refers to the difference of two potentials.
The reference zero potential is considered to be located at far infinite distance.
For practical purposes, the 0V-point of Arduino UNO is taken as zero-potenntial point; accordingly, 5V-pin of Arduino UNO has a voltage value of 5 Volt (5V).