Thank you for the amount of inspiration, I have a project for taking foto a gas meter, but I have one problem. It’s a dark place and the ESP32-CAM flash is weak, so I need to light up by the relay before shooting. But I don’t know which pin ESP32-CAM I can use. I tried some but without success. Please give me some advice?
Thank you for your words.
Do you need to use microSD card?
Which pins have you tried without success? And why do you say without success? Did you get any erros or weird behavior by the ESP32-CAM?
If you don’t need microSD card, I would go with GPIOs like: 4, 2, 14, 15, 13, 12 and 16.
If you’re using microSD card, the best GPIO is 16.
Let me know if this helps and your results.
Thank you for the quick response and the problem is solved I used pin 16. I tried it through pins 4, 12, 13, but there it just clicked and the relay did not turn on and there was no error. I have an ESP32 with SD card on which I have saved my pictures. Later I tried to send them to email, but I couldn’t do it with SD cards. Email passed but without attachment. So I tried it through SPIFFS and there it works reliably. I also wanted to use a deep sleep with a wake-up timer, just a pity that it works (at least on my board) only for short intervals of less than 1 hour and I need to set the timer for 24 hours, but I solve it without using deep sleep programmatically
GPIO 16 is usually the best GPIO to connect peripherals when using the ESP32-CAM.
It’s weird that you’re not getting the pictures saved on the microSD card, it should work as well as with SPIFFS. There’s probably something wrong about the microSD card of your board, but it is difficult to tell what might be the reason.