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

ESP32-Controlled Dual DC Motor Driver with Optical Encoder Feedback

View and Edit Project In Cirkit DesignerImage of ESP32-Controlled Dual DC Motor Driver with Optical Encoder Feedback

Circuit Documentation

Summary

This circuit is designed to control a pair of DC gearmotors with optical encoder feedback for speed and position sensing. The core of the circuit is an ESP32 microcontroller, which interfaces with an L298N DC motor driver to control the speed and direction of the motors. The optical encoder sensors provide feedback to the ESP32, which can be used for precise control of the motors. The power is supplied by an 18650 Li-Ion battery, which provides the necessary voltage to the motor driver and the microcontroller through a voltage regulation system.

Component List

L298N DC Motor Driver

Gearmotor DC Wheels (Left and Right)

18650 Li-Ion Battery

ESP32 - 38 Pins

Optical Encoder Sensor Module

Wiring Details

L298N DC Motor Driver

Gearmotor DC Wheels (Left and Right)

18650 Li-Ion Battery

ESP32 - 38 Pins

Optical Encoder Sensor Modules

Documented Code

There is no code provided for the microcontroller. The code would typically include initialization of the GPIO pins, setup of PWM channels for motor speed control, and interrupt service routines for handling the encoder signals. It would also include the main control loop where the logic for motor control based on encoder feedback would be implemented.