ESP-WROOM-32 30-pin LED anomaly

Phillip
Posts: 23
Joined: Thu Aug 25, 2022 11:57 pm

ESP-WROOM-32 30-pin LED anomaly

Postby Phillip » Sat Apr 06, 2024 7:03 pm

Greetings to all -

My question is this: I have six of these great 30-pin mcu's and the blue LED's all behave differently.

For instance, some mcu's will light these blue LED's when there is absolutely NO code reference to GPIO2. If I set -

Code: Select all

digitalWrite (blu_led, LOW)
in setup(), the blue LED will still light up. Yet, on other mcu's this blue LED is always off. If I run BLINK, the output is as expected.

This issue is not the end-of-the-world for me. I would just like to understand why these mcu's behave as they do with regard to these LED's.

Thank you.

liaifat85
Posts: 200
Joined: Wed Dec 06, 2023 2:46 pm

Re: ESP-WROOM-32 30-pin LED anomaly

Postby liaifat85 » Sun Apr 07, 2024 4:13 pm

From what you have written, the in-built LED of some ESP32 boards stays off when you run

Code: Select all

digitalWrite (blu_led, LOW);
If you run

Code: Select all

digitalWrite (blu_led, HIGH);
instead, do they turn on?
If yes, then these boards are different from the generic ones which have active low LEDs.
You can also check the questionable GPIO pins by connecting an external LED. The circuit diagram and code can be found here:
https://www.theengineeringprojects.com/ ... oteus.html

Phillip
Posts: 23
Joined: Thu Aug 25, 2022 11:57 pm

Re: ESP-WROOM-32 30-pin LED anomaly

Postby Phillip » Sun Apr 07, 2024 11:04 pm

@liaifat85

Thank you for your response to my query. I will try what you have suggested and report back.

Thanks again for your help.

Who is online

Users browsing this forum: No registered users and 40 guests