There is a GitHub repo for controlling ESP32 camera board: ESP32 Camera Control (Astronomy Version)
This Intro\\ page gives you a quick introduction on how to use ESP32-CAM. This page, [[https://lastminuteengineers.com/getting-started-with-esp32/, provides general information on ESP32, and YouTube tutorial on setting up ESP32-CAM can be a good introduction on the firmware preparation for the camera.
Here are other variations of ESP32-CAM camera control setups: