Issue: external LED not blinking; Digital pins not working; Tested pins 2, 3, 4, 11, and 13 so far
Sketch: Blink, but using above pins
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Resistor looks like 100 ohms, 1%. If you have something larger, that would be good, as this will draw a lot of current. With a red LED, you're looking at 30 mA.
If you have 200 ohms or greater (or can put two 100 ohm resistors in series), then you can test your LED independently by wiring it between 5V and GND. Don't do that with only 100 ohms, though.
Resistor looks like 100 ohms, 1%. If you have something larger, that would be good, as this will draw a lot of current. With a red LED, you're looking at 30 mA.
If you have 200 ohms or greater (or can put two 100 ohm resistors in series), then you can test your LED independently by wiring it between 5V and GND. Don't do that with only 100 ohms, though.
The Arduino Uno R3 comes with an LED connected to pin 13, on the PCB.
Remove the external LED and see if the on-board LED is blinking, as you may have overloaded and damaged the pin.
The on-board LED is blinking, but not the external one. Misunderstood what on-board LED meant; Edited my post to clarify. Thanks
Sorry, on my screen your image, it's brown black black brown brown. Either 110 ohms, 1%, or 100 ohms, 1%. An ohmmeter would tell you.
if 220 ohms ~3.5 V, so about 15 mA. Should be good.
Anyway, if the LED's good, you either aren't downloading successfully (should be getting an error message), or your pins are blown. I take it this is a foundling?
When you start using 12V (for motor for example), then a mistake is easily made. Touching the Arduino board with a wire with 12V will damage it. It is possible to damage only a part of the ATmega328P microcontroller. For example when all analog pins fail and the rest still works.
But as we all see it: everything works, you just have the led in reverse.
It was a bad jumper wire. Replaced the purple jumper wire from the original post and it worked. The 5V LED test worked because I didn't use the purple one and connected the resistor directly to 5V