Skip to content

LED Intensity support is missed in the example CameraWebServer #6790

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

Closed
1 task done
DmytroKorniienko opened this issue May 23, 2022 · 11 comments · Fixed by #7533
Closed
1 task done

LED Intensity support is missed in the example CameraWebServer #6790

DmytroKorniienko opened this issue May 23, 2022 · 11 comments · Fixed by #7533
Labels
Status: In Progress ⚠️ Issue is in progress Type: Example Issue is related to specific example.

Comments

@DmytroKorniienko
Copy link

Board

ESP32-CAM

Device Description

CAMERA_MODEL_AI_THINKER ESP32-CAM

Hardware Configuration

GPIO_NUM_4 // GPIO_NUM_4 = 4

Version

latest master (checkout manually)

IDE Name

Arduino IDE

Operating System

win10

Flash frequency

40MHz

PSRAM enabled

yes

Upload speed

115200

Description

image

LED Intensity support is missed, moreover brownout detector was triggered raised periodically for CAMERA_MODEL_AI_THINKER ESP32-CAM

Sketch

https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Camera/CameraWebServer

Debug Message

Brownout detector was triggered

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@Jason2866
Copy link
Collaborator

Jason2866 commented May 23, 2022

Brownout trigger is not a software issue. It is a function in the ESP32 chip which triggers when the needed power supply voltage is under 3.3V
It does mean your board or the power supply does not deliver 3.3V reliable.

@DmytroKorniienko
Copy link
Author

@Jason2866 Agree, but this issue is typical for a CAMERA_MODEL_AI_THINKER ESP32-CAM board, even if power supply is good enough. So my suggestion - disable this detection for this particular board.

@Jason2866
Copy link
Collaborator

I have this board too. It does work well with a good power supply. Not a single brownout.
Disable brownout detection is not a good idea. Power problems creates weird issues.

@DmytroKorniienko
Copy link
Author

@Jason2866 If you will use intensive WiFi exchange of 1600*1200 streams with a enabled led you might got this too. Are you ever tried measure power consumption at different cases with multimeter & oscilloscope for this board? Onboard AMS1117 weak and not stable.

@Jason2866
Copy link
Collaborator

I use highest possible resolution. Powering the device with a extern 3.3V power supply.
When lowering the resolution the onboard AMS1117 is capable to deliver.
So you just said the same it is a hardware issue. It is no solution to change the brownout detection.

@DmytroKorniienko
Copy link
Author

I'm absolutely agree - disabling brownout detector not best choice, but better than nothing. Alternative - hardware fix or changing of initialization logic with a limiting peak power consumption. Anyway I suggest this part of code in PR only for AI-Thinker board (isolated by define block) and for me this work good enough.

@SuGlider
Copy link
Collaborator

@DmytroKorniienko
Regarding disabling brownout, I think it won't happen for the ESP Arduino Framework. Check #675
Doing it may lead to unpredictable new issues.

But you can do it in your own personal project when using Arduino as Component in an IDF project.
Or you can also create your own precompiled libraries using Arduino Lib Builder.
In both cases, brownout can be disabled using IDF Menuconfig
(make menuconfig -> Component Config -> ESP32-specific -> Hardware brownout detect & reset)

Other Brownout discussions at

nkolban/esp32-snippets#168
https://www.esp32.com/viewtopic.php?t=2462
#863

SW way to disable it - not tested

use at your own risk #863 (comment)

@DmytroKorniienko
Copy link
Author

SW way to disable it - not tested

Why you think so? I made a lot of my own tests and can provide screenshot with more than month uptime.

Screenshot_2021-12-15-09-12-36-533_com android chrome

You can find this project in my repo and check by yourself :).

@SuGlider
Copy link
Collaborator

Why you think so? I made a lot of my own tests and can provide screenshot with more than month uptime.

Ok, I didn't test it myself - just that.
But if you say so, I believe you :-)

@SuGlider SuGlider added Type: Feature request Feature request for Arduino ESP32 and removed Status: Awaiting triage Issue is waiting for triage labels May 25, 2022
@rodyeo
Copy link

rodyeo commented Jul 27, 2022

The ESP32-CAM Flight Light LED Illuminator solution which everyone is awaiting is now resolved by the blog author and programmer Bye Renzo

https://www.mischianti.org/forums/topic/esp32-cam-upgrade-camerawebserver-with-flash-on-esp32-framework-2-0-4/

Thank you ;)

@VojtechBartoska VojtechBartoska added Status: In Progress ⚠️ Issue is in progress Type: Example Issue is related to specific example. and removed Type: Feature request Feature request for Arduino ESP32 labels Nov 16, 2022
@PUPPY98
Copy link

PUPPY98 commented Sep 6, 2023

Does anybody know the details of the Flash led . like name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In Progress ⚠️ Issue is in progress Type: Example Issue is related to specific example.
Projects
None yet
6 participants