Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for simple GPIO12 On/Off LED #3064

Open
yllwfsh opened this issue May 6, 2024 · 3 comments
Open

Option for simple GPIO12 On/Off LED #3064

yllwfsh opened this issue May 6, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@yllwfsh
Copy link

yllwfsh commented May 6, 2024

The Feature

Dear all,

First of all thx for this amazing project! Would it be possible to add functionality for a simple On/Off LED, on GPIO12? I would like to switch a simple white LED. Right now I have it connected directly to 5V, and therefore always on.

Would be great if it's possible to switch it on using GPIO12 (and possibly a transistor) just when taking a picture of the meter.

Functionality would need to include inverting the logic (e.g. selecting Active HIGH/LOW to allow for a transistor to switch the load).

Thanks for looking into this!

@yllwfsh yllwfsh added the enhancement New feature or request label May 6, 2024
@jasaw
Copy link
Contributor

jasaw commented Jun 3, 2024

@yllwfsh GPIO4 goes HIGH when it takes photo and I have my white LEDs connected to it via transistors and it's working well.
https://randomnerdtutorials.com/esp32-cam-ai-thinker-pinout/

@yllwfsh
Copy link
Author

yllwfsh commented Jun 3, 2024

@jasaw True! But that still switches on the built-in Led. Wouldn't it be a more flexible solution if we were able to pick a different GPIO pin?

@jasaw
Copy link
Contributor

jasaw commented Jun 5, 2024

I believe the GPIO4 still goes high even if you configure the LED intensity to 0, so that basically turns off the onboard flash LED and relies on your external LEDs. Test it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants