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

ESP32-CAM Controlled Robotic Car with Ultrasonic Obstacle Avoidance and IR Sensors

View and Edit Project In Cirkit DesignerImage of ESP32-CAM Controlled Robotic Car with Ultrasonic Obstacle Avoidance and IR Sensors

Circuit Documentation

Summary

The circuit in question appears to be a complex system designed to incorporate various sensors, motor drivers, a microcontroller, and power regulation modules. The primary controller is an ESP32-WROOM-32UE microcontroller, which interfaces with an ESP32-CAM, multiple HC-SR04 ultrasonic sensors, IR sensors, servo motors, and L298N DC motor drivers to control geared motors. The system is powered by a 12V 7Ah battery, and voltage regulation is provided by multiple 48V to 5V converters. Rocker switches are used to control power flow to different parts of the circuit.

Component List

Power Components

Sensors

Actuators

Control and Drive

Microcontrollers

Wiring Details

Power Distribution

Sensor Connections

Actuator Connections

Microcontroller Connections

Documented Code

The code provided is for the ESP32-CAM microcontroller and is written in C++ for the Arduino platform. The code includes the following functionalities:

The code is structured with setup and loop functions, as well as several helper functions for handling specific tasks such as moving the robot forward, backward, turning, stopping, and controlling the servos.

The code also includes HTML and JavaScript for the web interface, which allows users to control the robot car and camera through a web page. The interface includes buttons for movement control, sliders for speed and LED brightness adjustment, and a video stream display.


Note: The actual code is not included in this document due to its length, but it is summarized to provide an understanding of its functionality.