[Nano ESP32-S3] Resistor has 0 volts across it in a simple LED circuit

I have a Nano ESP32-S3 whose D12 pin is set to HIGH with digitalWrite(12, HIGH). I have created a circuit where the D12 pin connects to a 470-ohm resistor in series with a small green LED. The negative terminal of the LED is connected to the board's ground.

When powered, the resistor has 0.00 volts across it, while the LED has 3.25 volts across it. I have quadruple checked that the circuit is correct as I have described above. The LED is unlit.

Why is there no voltage across the resistor? Does this mean the current through the circuit is zero? How do I get the LED lit?

Try connecting the resistor to the 3.3V pin instead of the D12 pin. If it doesn't light, probably the led is faulty.

Is the pin mode also set to OUTPUT?

This was it, thank you!

Which? The led was faulty or the pin mode was not set to output?

Burnt LED

1 Like

No connection to GND?

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