Time-lapse image capture with ESP32 Camera. Camera makes picture in given interval, saves it to the micro SD card, sends it to the Cloudinary server and to the Blynk Image widget.
- Save image in given time laps to the micro SD card
- Can save photo to the Blynk / Cloudinary
To build a project, you need to download all the necessary libraries and create the settings.cpp file in the src folder:
#include "IPAddress.h"
// Project settings
struct Settings
{
const char *blynkAuth = "TODO";
const char *wifiSSID = "TODO";
const char *wifiPassword = "TODO";
const char *imageUploadScriptUrl = "TODO"; // se Server scripts folder
const char *version = "1.0.0";
};
- ESP32-CAM
- 16GB micro SD card
ESP32-CAM makes picture and send it by HTTP POST request to the server via simple PHP script. I followed this tutorial.
On the server, PHP script:
- inserts date and time to the picture and saves picture to the disk
- sends picture to the Cloudinary API
- sets picture public url from Cloudinary to the Blynk Image Widget
- removes picture from server disk
PHP script is located in the Server scripts folder. It's needed to set up your upload_preset, cloudinary URL, and blynkAuthToken.