s60sc / ESP32-CAM_MJPEG2SD

ESP32 Camera motion capture application to record JPEGs to SD card as AVI files and stream to browser as MJPEG. If a microphone is installed then a WAV file is also created. Files can be uploaded via FTP or downloaded to browser.
GNU Affero General Public License v3.0
936 stars 216 forks source link

Lamp only ON for ~15 sec after change in level #482

Closed vermoi63 closed 1 month ago

vermoi63 commented 2 months ago

in latest version it seems the lamp turns off automatically after ~15 secs of a change in the lamp level

Thanks in advance!

s60sc commented 2 months ago

lamp behaviour is unknown to operate relay manually, set lamp level to min or max, but not in between. to auto switch would need extra code

vermoi63 commented 2 months ago

I investigated a bit more:

WHEN TIMELAPS IS ON - the lamp turns of after the timelaps intervall (in my case 15sec !! does this help to find out?

Every time the timelaps intervall is reached the lamp turns off (the fist one can be shorter, but if you then change the PWM lamp value it counts until the next intervall and goes out! Can be reproduced very good!!

(at least if PIN4 is used on the espressif borads)

s60sc commented 2 months ago

when timelapse in on and nighttime then lamp will come on for each timelapse photo

vermoi63 commented 2 months ago

what I described is in "day-mode".....here the lamp is put off every timelaps interval it seems.....but I would have expected that is is completely in manuel control......can this be changed, so that it is up to the manual control if lamp is on or off, not being disturbed by the timelaps interval.....

OR...is there a simple other pin I can use for manual control of ON/OFF to switch a relay by fully manual control?

Kind regards!

s60sc commented 2 months ago

I'll add code for a relay pin in a couple of days

vermoi63 commented 2 months ago

GREAT THANKS!

s60sc commented 2 months ago

relay parameters under Peripherals tab, use eg pin 12

vermoi63 commented 1 month ago

Issue solved by developer: by adding a relay pin/switch that can be switched independently from flash light/lamp! (from Version 10.2.2 on)

Great Thanks!