Wi-Fi Spy Camera With As Esp-32 Cam
Wi-Fi Spy Camera With As Esp-32 Cam
ESP-32 CAM
The ESP32-CAM is a convenient little camera module with a lot of
built-in power, and you can turn one into an inconspicuous spy
camera to hide in any room.
To build the program for the spy camera, which includes facial
detection and recognition, we'll be using Arduino IDE, and to flash
the program over to the ESP32-CAM, we'll need the FTDI
programmer and either male-to-male jumper wires and a breadboard
or female-to-female jumpers.To power the board you can add a LiPo
battery board meant for a D1 mini, which will let you add a
rechargeable LiPo battery.
This is the basic stuff you need to
continue with this project:
1.ESP32-CAM Camera Module with FTDI USB to TTL Serial Converter
Stemedu ESP32-CAM Serial to
WiFi 5V Bluetooth Board
ESP32 Camera Module Come
with FT232RL FTDI USB to TTL
Serial Converter Programmer
Moduel and 2.4GHz ...
6.Solderless Breadboard
Link = { https://dl.espressif.com/dl/package_esp32_index.json }
File
Examples
ESP32
Camera
CameraWebServer.
This will open the sketch, and you'll see the following code.
Program
#include "esp_camera.h“
#include <WiFi.h>
#define CAMERA_MODEL_ESP_EYE // Has PSRAM
#include "camera_pins.h“
void startCameraServer();
void setup() {
Serial.begin(115200);
Serial.setDebugOutput(true);
Serial.println();
camera_config_t config;
config.ledc_channel = LEDC_CHANNEL_0;
config.ledc_timer = LEDC_TIMER_0;
config.pin_d0 = Y2_GPIO_NUM;
config.pin_d1 = Y3_GPIO_NUM;
config.pin_d2 = Y4_GPIO_NUM;
config.pin_d3 = Y5_GPIO_NUM;
config.pin_d4 = Y6_GPIO_NUM;
config.pin_d5 = Y7_GPIO_NUM;
config.pin_d6 = Y8_GPIO_NUM;
config.pin_d7 = Y9_GPIO_NUM;
config.pin_xclk = XCLK_GPIO_NUM;
config.pin_pclk = PCLK_GPIO_NUM;
config.pin_vsync = VSYNC_GPIO_NUM;
config.pin_href = HREF_GPIO_NUM; config.pin_sscb_sda = SIOD_GPIO_NUM; config.pin_sscb_scl =
SIOC_GPIO_NUM; config.pin_pwdn = PWDN_GPIO_NUM;
config.pin_reset = RESET_GPIO_NUM; config.xclk_freq_hz = 20000000;
config.pixel_format = PIXFORMAT_JPEG;
if(psramFound()){
config.frame_size = FRAMESIZE_UXGA;
config.jpeg_quality = 10;
config.fb_count = 2;
} else {
config.frame_size = FRAMESIZE_SVGA;
config.jpeg_quality = 12;
config.fb_count = 1;
}
esp_err_t err = esp_camera_init(&config);
if (err != ESP_OK) {
Serial.printf("Camera init failed with error 0x%x", err);
return;
}
sensor_t * s = esp_camera_sensor_get();
if (s->id.PID == OV3660_PID) {
s->set_vflip(s, 1);
s->set_brightness(s, 1);
s->set_saturation(s, -2);
}
s->set_framesize(s, FRAMESIZE_QVGA);
s->set_vflip(s, 1);
s->set_hmirror(s, 1);
WiFi.begin(ssid, password);
startCameraServer();
void loop() {
delay(10000);
}
Tweak the Example Sketch's Code
STEP:3
And you need to add // to the beginning of that, then remove the //
from the beginning of this line:
Then, we need to put in the SSID name and password for the Wi-
Fi network that we want to connect the spy camera to. Look for
these two lines, then replace the asterisks with your Wi-Fi
network's name and password.
const char* ssid = "*********";
const char* password = "*********";
That last one is too short the CAM module so that it can be The shield conta
converter to ste