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

ESP32-Controlled Self-Balancing Robot with MPU-6050 and L298N Motor Driver

View and Edit Project In Cirkit DesignerImage of ESP32-Controlled Self-Balancing Robot with MPU-6050 and L298N Motor Driver

Circuit Documentation

Summary

This circuit is designed for a two-wheeled self-balancing robot that uses an MPU-6050 sensor to detect the tilt angle and an L298N motor driver to control two DC motors. The ESP32 microcontroller reads the angle from the MPU-6050 and adjusts the motor speeds accordingly to balance the robot. The circuit also includes a 7805 voltage regulator, a 74HC595 shift register, various resistors, a piezo buzzer, an NPN transistor, a servo motor, an ultrasonic sensor, an LED strip, an LCD display, and input devices such as a pushbutton, a rocker switch, and a potentiometer.

Component List

L298N DC Motor Driver

Rocker Switch

2x 18650 Batteries

LED: Two Pin (Red)

Resistor (200 Ohms)

74HC595 Shift Register

7805 Voltage Regulator

HC-SR04 Ultrasonic Sensor

WS2815 LED Strip

NTC Thermistor

LCD Display 20x4 I2C

Pushbutton

Potentiometer

MPU-6050 Gyroscope/Accelerometer

ESP32 - 38 Pins Microcontroller

Resistor (10k Ohms)

Piezo Buzzer

NPN Transistor

Resistor (1k Ohms)

Servo Motor

DC Motor with Encoder (x2)

L293D Motor Driver

DC Motor

Wiring Details

L298N DC Motor Driver

Rocker Switch

2x 18650 Batteries

LED: Two Pin (Red)

Resistor (200 Ohms)

74HC595 Shift Register

7805 Voltage Regulator

HC-SR04 Ultrasonic Sensor

WS2815 LED Strip

NTC Thermistor

LCD Display 20x4 I2C

Pushbutton

Potentiometer

MPU-6050 Gyroscope/Accelerometer

ESP32 - 38 Pins Microcontroller

Resistor (10k Ohms)

Piezo Buzzer

NPN Transistor

Resistor (1k Ohms)

Servo Motor

DC Motor with Encoder (x2)

L293D Motor Driver