Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

ESP32-CAM Based Wi-Fi Controlled Face Recognition Door Lock

View and Edit Project In Cirkit DesignerImage of ESP32-CAM Based Wi-Fi Controlled Face Recognition Door Lock

Circuit Documentation

Summary

The circuit in question is designed to incorporate an ESP32-CAM module, which is a small camera module with the ESP32-S chip that provides Wi-Fi and Bluetooth connectivity. The circuit also includes a solenoid, a voltage regulator, two LEDs (green and red), a 1-channel relay, a 9V battery, and an electrolytic capacitor. The purpose of the circuit is not explicitly stated, but given the components, it could be used for a security system with camera-based face recognition to control access through a solenoid lock.

Component List

ESP32-CAM

Solenoid

Voltage Regulator (V_REG_LD1117VXX)

LED: Two Pin (green)

LED: Two Pin (red)

1-Channel Relay (5V 10A)

9V Battery

Electrolytic Capacitor

Wiring Details

ESP32-CAM

Solenoid

Voltage Regulator (V_REG_LD1117VXX)

LED: Two Pin (green)

LED: Two Pin (red)

1-Channel Relay (5V 10A)

9V Battery

Electrolytic Capacitor

Documented Code

The code provided is for the ESP32-CAM module and includes several files:

CameraFaceRecognitionDoorLock.ino

This is the main Arduino sketch file for the ESP32-CAM. It initializes the camera, connects to Wi-Fi, and starts a web server to stream the camera feed. It also includes logic for face recognition and controlling a relay based on the recognition result.

documentation.txt

This file appears to be a placeholder for additional documentation.

index_ov2640.html.gz

This is a gzipped HTML file that serves as the web interface for the camera stream. It likely contains the UI elements for the camera's web server.

camera_pins.h

This header file defines the pin assignments for the camera module, which vary depending on the specific model of the camera being used.

app_httpd.h

This header file contains the HTTP server logic for the ESP32-CAM. It defines the endpoints for the web server, including the stream, capture, and command endpoints. It also includes the logic for handling face detection and recognition.

The code is designed to be uploaded to the ESP32-CAM module, which then serves a web page that can be accessed to view the camera feed and control the device's functionality. The face recognition feature is used to detect and recognize faces, which can then trigger the relay to lock or unlock a door, indicated by the red and green LEDs.