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

ESP32-Controlled Dual Motor Driver with Optical Encoder Feedback

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

Circuit Documentation

Summary

This circuit is designed to control a dual motor system with PWM control, using an L298N 2A Dual Motor Driver Module. It is powered by a 4 x AAA battery mount and includes two optical encoder sensor modules for feedback. The ESP32-WROOM-32UE microcontroller is used to interface with the motor driver and the encoders, providing control signals and processing the encoder outputs. The motors are hobbyist yellow gear motors, and their speed and direction are controlled by the L298N module, which receives its commands from the ESP32.

Component List

L298N 2A Dual Motor Driver Module with PWM Control

4 x AAA Battery Mount

Optical Encoder Sensor Module (x2)

Motor Amarillo Motorreductor Hobby (x2)

ESP32-WROOM-32UE

Wheels (x2)

Comments (x6)

Wiring Details

L298N 2A Dual Motor Driver Module with PWM Control

Optical Encoder Sensor Module

Motor Amarillo Motorreductor Hobby

ESP32-WROOM-32UE

Documented Code

No code has been provided for the ESP32-WROOM-32UE microcontroller. The code would typically include initialization of the GPIO pins, setup of PWM channels for motor control, and routines to read the encoder outputs and adjust motor speeds accordingly.