Digital output pins not working

Board possibly busted?

Board: UNO CH340 clone

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
}

Does the onboard LED blink when you choose 13? If so, you might have the LED backwards.

1 Like

On-board LED is not blinking. Circuit seems correct with external LED long leg to digital pin and the other to resistor and ground

Just added to the post that the on-board LED is not blinking. Thanks

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.

1 Like

Do you know if something actually gets uploaded to the board ? You can turn on the verbose mode for uploading and check that.

Can you send a text to the Serial Monitor ?

The led with the label "L" on the board is pin 13.

Have you use the board with 12V ?

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.

R-R-Bl-Bl-Br, should be 220+-1%

Tested and LED works independently

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

Then you have a wiring problem. LED backwards?

Edited my post to clarify.

Please do not edit your original post. It makes the thread difficult or impossible to follow.

1 Like

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?

  • Turn the breadboard LED 180° :thinking:
1 Like

Tried that; RX on-board LED blinked and serial monitor logged something

Have you use the board with 12V ?

Can you elaborate?

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.

Switching it around has no results in either case. Wiring seems good

Got it. My bad

Then it could be a bad breadboard or a broken jumper wire or a bad led.

If the onboard led blinks, and the Serial Monitor works, then you can already have a lot of fun writing code :stuck_out_tongue_winking_eye:

1 Like

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

Sorry for the inconvenience everyone

Throw it away so you "don't get fooled again" :slight_smile:

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.