1. Project Function Introduction
1. Balanced Car Operation Modes (Controlled via Bluetooth): (1) Balanced Mode (2) Follow Mode (3) Obstacle Avoidance Mode. 2. Mobile phone controls the car to move forward, backward, turn, accelerate, decelerate, etc. 3. Car pick-up and put-down detection (controls whether the car is running) 4. Can be debugged with the host computer via Type-C data cable 5. Reserved NRF24L01, infrared interface, and multi-channel power interface for expansion development
2. Project Showcase

3. Introduction

2 strings of batteries generate 7.2V, input to the power module to generate 5V, and then generate 3.3V through LDO.
Balanced Mode: The car's attitude is detected by MPU6050, and the RA MCU controls the motor drive module to control the motor to run and display it on the OLED.
Follow Mode: The car detects the distance through the ultrasonic module and starts tracking within a certain distance.
Obstacle Avoidance Mode: The car goes straight and judges whether there is an obstacle in front through the ultrasonic module. If an obstacle is encountered, it will turn.
Bluetooth: The mobile phone controls the car's operation mode by connecting to the Bluetooth module and can control the car.
4. Hardware Components:

RA2 Small Board Schematic Diagram; Balance
Cart Base Board Onboard Serial Port Module and LDO; Power Supply Module: LM2596S DC-DC Step-Down Power Supply Module; OLED Module: 0.96-inch OLED Display LCD Screen Module ; Bluetooth Module: Bluetooth 3.0 Module; SPP Transparent Transmission Compatible with HC-05/06 Slave JDY-31 ; MPU6050 Module: MPU-6050 Module; Three-Axis Accelerometer + Three-Axis Gyroscope; Motor Driver Module: TB6612FNG Motor Driver Module. 5. Software Components: Balance Cart Fall Detection: When the cart falls (reaches a certain angle), the motor stops. Balance Cart Pickup Detection: When the cart is picked up (wheels rotate at high speed for a certain time), the motor stops. Balance Car Putting Down Detection: When the cart is put down again for a certain time (wheels do not rotate and the angle is less than a certain range), it re-enters the balancing mode . Resources Used:


