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

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

Circuit Documentation

Summary

This document provides a detailed overview of a circuit designed to control DC motors using an L298N motor driver and an ESP32 microcontroller. The circuit is powered by a 12V battery and includes multiple gearmotors for driving wheels.

Component List

  1. L298N DC Motor Driver

    • Description: A dual H-bridge motor driver that allows control of the speed and direction 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
  2. ESP32 (30 pin)

    • Description: A low-cost, low-power system on a chip microcontroller with integrated Wi-Fi and dual-mode Bluetooth.
    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
  3. 12V Battery

    • Description: A power source providing 12V DC.
    • Pins: +, -
  4. Gearmotor DC Wheels Right

    • Description: A DC motor with attached wheels for driving the right side of a vehicle.
    • Pins: PIN1, PIN2
  5. Gearmotor DC Wheels Left

    • Description: A DC motor with attached wheels for driving the left side of a vehicle.
    • Pins: PIN1, PIN2

Wiring Details

L298N DC Motor Driver

ESP32 (30 pin)

12V Battery

Gearmotor DC Wheels Right

Gearmotor DC Wheels Left

Additional Gearmotor DC Wheels Right

Additional Gearmotor DC Wheels Left

Documented Code

ESP32 (30 pin)

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Gearmotor DC Wheels Left

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This documentation provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code for the microcontrollers.