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
939 stars 216 forks source link

LED can't be turned on? #496

Closed vsolenoid closed 1 month ago

vsolenoid commented 1 month ago

Sorry for the lame question, but it seems I can't turn the stupid LED on. I went to Edit Config and put Pin 4 for used for lamp. Lamp is activated manually. Then saved. But even if I move the slider under Camera Control nothing happens. I uploaded the Blink example just to check if the LED work and it does. Am I missing something? Thanks

s60sc commented 1 month ago

after entering pin number, click focus away from pin field so that browser registers the input

vsolenoid commented 1 month ago

Hey mate. Thanks for the fast reply. Unfortunately this didn't helped. I saw it in some other solved issues and tried it, but so far I'm unable to save any setting, even if I get a message [23:33:38.160 savePrefs] Saved preferences [23:33:38.308 saveConfigVect] Config file saved I just saw my chatbot info was also not saved. Let me check if I get you right. I should chose the right setting, then click somewhere on the side, then click "save", right? If it's that... somehow it's all lost by the time it starts again. And the LED never comes on. Any other suggestions? Should I check for another SD card?

s60sc commented 1 month ago

SD card wont be a problem, but I dont have an answer.

vsolenoid commented 1 month ago

Pity. Just to let you know that I've also tried a different browser (just in case) and the results are the same. Unfortunately I have only one esp32 cam, so I can't test it on another. So can I somehow set in the sketch itself the LED to be always on? This would be also super helpful Thanks

rjsachse commented 1 month ago

What board are you using?

s60sc commented 1 month ago

You need to read the latest readme installation instructions and set #define INCLUDE_PERIPH true // peripherals.cpp (servos, PIR, led etc) I'll make it clearer in the next release

vsolenoid commented 1 month ago

What board are you using?

ESP32 Dev Module

vsolenoid commented 1 month ago

You need to read the latest readme installation instructions and set #define INCLUDE_PERIPH true // peripherals.cpp (servos, PIR, led etc) I'll make it clearer in the next release

I've tried, but unfortunately I can't compile the sketch, as it give me Error compiling for board ESP32 Dev Module.

I also ordered a new board. We'll see how it behaves once it's here. But it would be super strange if the same error occurs, as I see the LED slider definitely working in the Max Imagination's video

rjsachse commented 1 month ago

You need to read the latest readme installation instructions and set #define INCLUDE_PERIPH true // peripherals.cpp (servos, PIR, led etc) I'll make it clearer in the next release

I've tried, but unfortunately I can't compile the sketch, as it give me Error compiling for board ESP32 Dev Module.

I also ordered a new board. We'll see how it behaves once it's here. But it would be super strange if the same error occurs, as I see the LED slider definitely working in the Max Imagination's video

It looks like you might have the wrong board selected. As far as I know, the ESP32 Dev board does not support a camera. Please ensure you are using the correct hardware, have the correct board selected in the Arduino IDE, and have the correct board specified in your code. Need more information to help out further, please double-check everything as this does not seem like an issue with the code itself.