Hi! everyone so im trying to make a traffic lighting system on the arduino (UNO). So i went ahead and yacked out 12 LEDS and connected each LED to a different Digital pin. I gave the LEDS a common ground (by connecting the cathodes to a single negative rail on the breadboard). the positive input for each was separate, as it came from different pins. I setup my code and its works. Its just that the LEDs are extremely dim and not at full brightness (note i had not connected any resistor) , i have attached my code file below, Any ide what to do? with resistors (1k ohm) the Leds would be even dimmer.
Can't see the code as it is not posted according to the instructions, but the usual cause for very dim LEDs is omitting to set the corresponding pins to OUTPUT.
At least if you fail to set the corresponding pins to OUTPUT, you will not damage anything by omitting the essential series resistors.
Yep, failing to set the pins to OUTPUT means writing them HIGH is effectively setting them to INPUT_PULLUP and an effective 47k resistor to 5 V, so given the LEDs about 75 microamps each.