ESP32 Cam module capturing photo triggered by Arduino

Hi guys, as the title says, is it possible to trigger the ESP32 cam module via Arduino Uno? If so, how? Any response would be very much appreciated. :heart:

A serial link from the Uno to the ESP would probably be the simplest way

Use a logic level shifter when connecting outputs from a 5V MCU to a 3.3V MCU.

Thank you for the response, can you ellaborate more about serial link from arduino to esp sir?

Firstly, there is no need to call me Sir, although I do appreciate your courtesy in doing so

As to your question :grinning:

  • both boards have serial Tx and Rx pins.
    Connect Tx on one board to Rx on the other and vice versa, each via a voltage level shifter so that the voltages are matched and no damage occurs to the ESP32
  • in the sketches for both boards you use the Serial.begin() function with the same baud rate
  • when you want to take a photo, the Arduino sends a command, for example "p" to the Serial interface
  • when the ESP receives the "p" it takes a photo

@UKHeliBob Thank you so much sir, I'll definitely try that✨

Hello sir @UKHeliBob, I've tried the way you told me. The serial communication between the Arduino Uno and the ESP32 is established, but in the code of the ESP32 I tried to do a simple logic statement but it doesn't work that. Please see the attached screenshots for reference. Thank you so much.


Posting photo of code and Serial monitor output is almost always a waste of time

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination

The Arduino uno is a 5V device. The ESP32 is a 3.3V device that is not 5V tolerant. Could the OP show how they have wired in level shifters to the ESP32 CAM so it is not destroyed?

Using the Uno's GPIO pins 0 and 1 for serial is not going to work real well. use on the Uno software serial and pick 2 other pins.

Pictures of code are poo!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.