


▲ 4 r/esp32
Blinking LED project not working :(
I just got an ESP32 yesterday. I first tested the onboard LED with the basic blink example, and it worked perfectly, Then I tried doing the same with an external LED, but I can't get it to work
What I've tried
- Used two different 100 Ω resistors (also tried 150 Ω)
- Tried multiple GPIO pins
- Tried another LED
- Changing the code
- trying to make always working to check if it works and still not lighting up
- The LED polarity is correct:
- Anode → resistor → GPIO
- Cathode → GND
- The LED works fine with a small battery
this is the final code and connection in the pictures
I am really annoyed that I spent lots of time trying to fix it and I'm honestly out of ideas. Is there something obvious I'm missing?
and thx in advance.
Edit the LED never lights up
Solution: the pinout order was different so always try to know what kind of ESP32 you're using
u/Alarming_Bar6382 — 1 day ago