I have an RGB LED (datasheet here) that I want to control using an Arduino R3 (datasheet here). How can I do this? The LED has a common anode, not a common cathode. However, the arduino's I/O pins can only be +5 volts. This is a problem, because I need to somehow hook up the LED's cathodes to the arduino's I/O pins.
Controlling RGB LED (common anode) with Arduino
arduinoledrgb
Related Topic
- Electronic – arduino – Why must resistors be on the respective anode terminals instead of the common cathode terminal of a RGB LED
- Arduino – Controlling 8 RGB LEDs (beginner question)
- Electrical – How to control a common-cathode RGB LED matrix with Arduino
- Electrical – Issues with NPN Transistors and RGB LEDs (Common Anode)
- Electrical – Driving a Common Anode RGB LED Using a uC
- Electrical – RGB LED common cathode with 3.3V GPIO +single transistor
- Electronic – Representing AC sine wave with common anode/cathode RGB LED
Best Answer
This is only a problem if you think in terms of SOURCING a current from an output. Outputs also SINK current.
When the output is set LOW current will flow INTO the pin to ground (SINKING).