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

ESP32-Based Obstacle Avoidance Robot with Ultrasonic and IR Sensors

View and Edit Project In Cirkit DesignerImage of ESP32-Based Obstacle Avoidance Robot with Ultrasonic and IR Sensors

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes various sensors, a motor driver, a microcontroller, and other components. The circuit is designed to interface multiple sensors with an ESP32 microcontroller and control DC motors using an L298N motor driver. The power supply is provided by a 4xAA battery pack, and a rocker switch is used to control the power.

Component List

  1. HC-SR04 Ultrasonic Sensor

    • Pins: VCC, TRIG, ECHO, GND
    • Description: Ultrasonic distance sensor used for measuring distance.
    • Purpose: Distance measurement.
  2. IR Sensor

    • Pins: out, gnd, vcc
    • Description: Infrared sensor used for object detection.
    • Purpose: Object detection.
  3. L298N DC Motor Driver

    • Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
    • Description: Dual H-Bridge motor driver used to control DC motors.
    • Purpose: Motor control.
  4. ESP32

    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
    • Description: Microcontroller with Wi-Fi and Bluetooth capabilities.
    • Purpose: Central control unit.
  5. DC Motor

    • Pins: positive, negative
    • Description: DC motor used for mechanical movement.
    • Purpose: Actuation.
  6. Rocker Switch

    • Pins: 1, 2
    • Description: Switch used to control the power supply.
    • Purpose: Power control.
  7. 4xAA Battery Pack

    • Pins: POS, NEG
    • Description: Battery pack providing power to the circuit.
    • Purpose: Power supply.

Wiring Details

HC-SR04 Ultrasonic Sensor

HC-SR04 Ultrasonic Sensor

HC-SR04 Ultrasonic Sensor

IR Sensor

IR Sensor

L298N DC Motor Driver

ESP32

DC Motor

DC Motor

DC Motor

DC Motor

Rocker Switch

4xAA Battery Pack

Code

No code is provided for this circuit.


This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and code documentation. The wiring details section ensures that each component's connections are clearly outlined, making it easier to understand and replicate the circuit.