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

ESP32-Controlled Dual Gearmotor System with IR Sensing

View and Edit Project In Cirkit DesignerImage of ESP32-Controlled Dual Gearmotor System with IR Sensing

Circuit Documentation

Summary of the Circuit

This circuit is designed to control two DC gearmotors using an ESP32 microcontroller and an L298N DC motor driver. The ESP32 reads inputs from three TCRT 5000 IR sensors to make decisions about motor control. The motors are powered by a 6V battery pack consisting of four AA batteries. The L298N motor driver interfaces between the ESP32 and the motors, allowing for the control of motor speed and direction. The IR sensors are used to detect the presence or absence of objects or to measure the reflectivity of surfaces, which can be used in applications such as line following or obstacle avoidance in robotics.

Component List

ESP32 (30 pin)

Gearmotor DC / Motorreductor

L298N DC motor driver

Battery AAx4 6V

TCRT 5000 IR SENSOR

Wiring Details

ESP32 (30 pin)

Gearmotor DC / Motorreductor

L298N DC motor driver

Battery AAx4 6V

TCRT 5000 IR SENSOR

Documented Code

There is no code provided for the microcontroller. The code would typically include initialization of the GPIO pins, setup of the WiFi or Bluetooth modules if needed, and the main control loop where sensor inputs are read and motor control signals are generated based on the sensor readings.