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

ESP32 and L298N Motor Driver-Based Wi-Fi Controlled Robotic Car with Ultrasonic Sensor

View and Edit Project In Cirkit DesignerImage of ESP32 and L298N Motor Driver-Based Wi-Fi Controlled Robotic Car with Ultrasonic Sensor

Circuit Documentation

Summary

This circuit is designed to control two DC motors using an L298N motor driver, an ESP32 microcontroller, and various other components including an ultrasonic sensor, a servo motor, a rocker switch, and multiple Li-ion batteries. The ESP32 microcontroller is used to control the motor driver and read data from the ultrasonic sensor. The servo motor is also controlled by the ESP32. The rocker switch is used to control the power supply to the motor driver.

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 for 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. ESP32 38 PINS

    • Description: A microcontroller with Wi-Fi and Bluetooth capabilities.
    • 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
  4. HC-SR04 Ultrasonic Sensor

    • Description: An ultrasonic sensor used for distance measurement.
    • Pins: VCC, TRIG, ECHO, GND
  5. Tower Pro SG90 Servo

    • Description: A small servo motor used for precise control of angular position.
    • Pins: Signal, +5V, GND
  6. Rocker Switch

    • Description: A simple on/off switch.
    • Pins: 1, 2
  7. Li-ion Battery 18650-2000mAh 3.7V 7.4WH

    • Description: A rechargeable lithium-ion battery.
    • Pins: +, -

Wiring Details

DC Motor 1

DC Motor 2

L298N DC Motor Driver

ESP32 38 PINS

HC-SR04 Ultrasonic Sensor

Tower Pro SG90 Servo

Rocker Switch

Li-ion Battery 1

Li-ion Battery 2

Li-ion Battery 3

Code

No code provided for this circuit.