• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32-CAM and relay

Q&A Forum › Category: ESP32 › ESP32-CAM and relay
0 Vote Up Vote Down
Milan RATVEISKY asked 5 years ago

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

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Milan.
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.

Regards,
Sara

0 Vote Up Vote Down
Milan RATVEISKY answered 5 years ago

Halo Sara.
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

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Milan.
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.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.