# Digital output pins not working

**URL:** <https://forum.arduino.cc/t/digital-output-pins-not-working/1293680>\
**Category:** General Guidance\
**Created:** [August 20, 2024, 2:16pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680 "2024-08-20T14:16:21Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![userhangaar](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/userhangaar/32/1098835_2.png) [@userhangaar](https://forum.arduino.cc/u/userhangaar)\
**Post date:** [August 20, 2024, 2:16pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/1 "2024-08-20T14:16:21Z")

</div>

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

```arduino
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
}

```

 ![circuit](https://europe1.discourse-cdn.com/arduino/original/4X/d/d/d/dddbc138a2824dc96826bbbef33fd8c6ed4a1f30.png)

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/f/b/c/fbc0321c4fc445bd335d5890bcfbc7685226b7d9.jpeg)

---

<div class="post-metadata">

**Author:** ![camsysca](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/camsysca/32/1015228_2.png) [@camsysca](https://forum.arduino.cc/u/camsysca)\
**Post date:** [August 20, 2024, 2:20pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/2 "2024-08-20T14:20:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![userhangaar](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/userhangaar/32/1098835_2.png) [@userhangaar](https://forum.arduino.cc/u/userhangaar)\
**Post date:** [August 20, 2024, 2:25pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/3 "2024-08-20T14:25:08Z")

</div>

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~~

---

<div class="post-metadata">

**Author:** ![camsysca](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/camsysca/32/1015228_2.png) [@camsysca](https://forum.arduino.cc/u/camsysca)\
**Post date:** [August 20, 2024, 2:30pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/4 "2024-08-20T14:30:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [August 20, 2024, 2:32pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/5 "2024-08-20T14:32:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Koepel](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/koepel/32/637546_2.png) [@Koepel](https://forum.arduino.cc/u/Koepel)\
**Post date:** [August 20, 2024, 2:33pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/6 "2024-08-20T14:33:31Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![userhangaar](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/userhangaar/32/1098835_2.png) [@userhangaar](https://forum.arduino.cc/u/userhangaar)\
**Post date:** [August 20, 2024, 2:39pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/7 "2024-08-20T14:39:36Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![userhangaar](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/userhangaar/32/1098835_2.png) [@userhangaar](https://forum.arduino.cc/u/userhangaar)\
**Post date:** [August 20, 2024, 2:41pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/8 "2024-08-20T14:41:39Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [August 20, 2024, 2:43pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/9 "2024-08-20T14:43:34Z")

</div>

> [@userhangaar](#):
>
> but not the external one

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.

---

<div class="post-metadata">

**Author:** ![camsysca](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/camsysca/32/1015228_2.png) [@camsysca](https://forum.arduino.cc/u/camsysca)\
**Post date:** [August 20, 2024, 2:44pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/10 "2024-08-20T14:44:02Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![LarryD](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/larryd/32/215550_2.png) [@LarryD](https://forum.arduino.cc/u/LarryD)\
**Post date:** [August 20, 2024, 2:44pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/11 "2024-08-20T14:44:03Z")

</div>

> [@userhangaar](#):
>
> on-board LED is blinking

- Turn the breadboard LED 180° 🤔

---

<div class="post-metadata">

**Author:** ![userhangaar](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/userhangaar/32/1098835_2.png) [@userhangaar](https://forum.arduino.cc/u/userhangaar)\
**Post date:** [August 20, 2024, 2:44pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/12 "2024-08-20T14:44:26Z")

</div>

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

> Have you use the board with 12V ?

Can you elaborate?

---

<div class="post-metadata">

**Author:** ![Koepel](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/koepel/32/637546_2.png) [@Koepel](https://forum.arduino.cc/u/Koepel)\
**Post date:** [August 20, 2024, 2:48pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/13 "2024-08-20T14:48:17Z")

</div>

> [@userhangaar](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![userhangaar](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/userhangaar/32/1098835_2.png) [@userhangaar](https://forum.arduino.cc/u/userhangaar)\
**Post date:** [August 20, 2024, 2:54pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/14 "2024-08-20T14:54:42Z")

</div>

> [@anon94801460](#):
>
> Then you have a wiring problem. LED backwards?

> [@LarryD](#):
>
> - Turn the breadboard LED 180° 🤔

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

> [@anon94801460](#):
>
> Please do not edit your original post. It makes the thread difficult or impossible to follow.

Got it. My bad

---

<div class="post-metadata">

**Author:** ![Koepel](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/koepel/32/637546_2.png) [@Koepel](https://forum.arduino.cc/u/Koepel)\
**Post date:** [August 20, 2024, 2:56pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/15 "2024-08-20T14:56:32Z")

</div>

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 😜

---

<div class="post-metadata">

**Author:** ![userhangaar](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/userhangaar/32/1098835_2.png) [@userhangaar](https://forum.arduino.cc/u/userhangaar)\
**Post date:** [August 20, 2024, 3:04pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/16 "2024-08-20T15:04:50Z")

</div>

> [@Koepel](#):
>
> Then it could be a bad breadboard or a broken jumper wire or a bad led.

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

---

<div class="post-metadata">

**Author:** ![Dave\_Lowther](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dave_lowther/32/1092885_2.png) [@Dave\_Lowther](https://forum.arduino.cc/u/Dave_Lowther)\
**Post date:** [August 20, 2024, 3:11pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/17 "2024-08-20T15:11:56Z")

</div>

> [@userhangaar](#):
>
> It was a bad jumper wire

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

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [February 16, 2025, 3:12pm UTC](https://forum.arduino.cc/t/digital-output-pins-not-working/1293680/18 "2025-02-16T15:12:12Z")

</div>

Closed on February 16, 2025, 3:12pm UTC

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