Trying make a daft punk helmet. I’ve soldering some LEDs up already 4 pin anode I can get them to flash different colours but the led will not turn off will go back to white. I just tried a cathode bulb and works fine. With the polarity switched.
Coding done via chat gtp. I’ll post pic of wiring cathode is anode not just reversed thanks
Cathode led common is earth and anode led common is positive. With common led negative to negative and resistors to positive. I can get led to lights change colours and led will turn off.
If it try with anode led. Which opposite. Common to power and resistors to negative they light up but led don’t turn off
A tri colored LED can be what we call common cathode or common anode. There are color pickers but I can tell you that when a tri color LED is white all three colors of Red, Green and Blue are full on.
The below is an example of common anode. The image also depicts 3 ea of R, G, and B.
Please post us the code you are using?
Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
What Arduino are you using?
No, No, No. The following is for the common Anode example.
Your wiring has + to the LED anode and the LED cathodes via resistors to GND, with the digital outputs connecting at the junction of the LED and resistor. This is wrong, and will quickly damage your Arduino.
Connect the resistors to the digital outputs INSTEAD of connecting them to GND. The current path should be from + through diode, then through resistor to digital output.
@lflower89 That is your entire problem right there.
For the common anode LED to turn off the cathode and anode must both be at 6V and you can't do that with a 3.3V ESP.
You have 6V on anode and 3.3V on cathode, so you still have 2.7V across the LED, not 0V so it lights up dim