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

ESP32 and L298N Motor Driver Controlled Robotic System with Ultrasonic Sensing

View and Edit Project In Cirkit DesignerImage of ESP32 and L298N Motor Driver Controlled Robotic System with Ultrasonic Sensing

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes various components such as DC motors, a motor driver, a battery, an ESP32 microcontroller, a rocker switch, a micro servo, and an ultrasonic sensor. The circuit is designed to control the motors and servo using the ESP32, with power supplied by a 12V battery and controlled via a rocker switch.

Component List

  1. DC Motor

    • Description: A standard DC motor.
    • Pins: pin 1, pin 2
  2. L298N DC Motor Driver

    • Description: A dual H-Bridge motor driver that allows control of two DC motors.
    • 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
  3. Battery 12V

    • Description: A 12V battery used to power the circuit.
    • Pins: +, -
  4. ESP32 38 PINS

    • Description: A microcontroller with 38 pins, used for controlling various components in the circuit.
    • Pins: GND, G23, G22, TXD, RXD, G21, G19, G18, G5, G17, G16, G4, G0, G2, G15, SDI, SD0, CLK, 3V3, EN, SP, SN, G34, G35, G32, 33, G25, G26, G27, G14, G12, G13, SD2, SD3, 5V
  5. Rocker Switch

    • Description: A simple on/off switch.
    • Pins: 1, 2
  6. Micro Servo 9G

    • Description: A small servo motor.
    • Pins: GND, +5V, PWM
  7. Ultrasonic Sensor

    • Description: A sensor used to measure distance using ultrasonic waves.
    • Pins: +VCC, Trigger, Echo, GND

Wiring Details

DC Motor 1

DC Motor 2

L298N DC Motor Driver

Battery 12V

ESP32 38 PINS

Rocker Switch

Micro Servo 9G

Ultrasonic Sensor

Code

No code provided for this circuit.