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

ESP32-Controlled Security System with Ultrasonic Sensor, PIR Sensor, and Motorized Response

View and Edit Project In Cirkit DesignerImage of ESP32-Controlled Security System with Ultrasonic Sensor, PIR Sensor, and Motorized Response

Circuit Documentation

Summary

This circuit integrates various sensors, actuators, and a microcontroller to form a complex system capable of sensing and actuation. The primary controller is an ESP32 microcontroller, which interfaces with an HC-SR04 Ultrasonic Sensor, a PIR sensor, a buzzer, an MG90S servo motor, and four DC motors through an L298N motor driver. The circuit is powered by a 4 x AAA battery mount, and a rocker switch is used to control the power supply to the ESP32. A resistor is also included in the circuit for current limiting purposes.

Component List

HC-SR04 Ultrasonic Sensor

PIR Sensor

Buzzer

MG90S Servo Motor

DC Motor

L298N DC Motor Driver

ESP32

Rocker Switch

4 x AAA Battery Mount

Resistor

Wiring Details

HC-SR04 Ultrasonic Sensor

PIR Sensor

Buzzer

MG90S Servo Motor

DC Motors

L298N DC Motor Driver

ESP32

Rocker Switch

4 x AAA Battery Mount

Resistor

Documented Code

No code was provided for the microcontroller. The documentation of the code would typically include details on how the ESP32 is programmed to interact with the sensors, actuators, and motor driver, including initialization, main loop, interrupt service routines, and any relevant functions or libraries used.