ESP32 Car Project
Overview:
The car connects to a mobile app via Bluetooth, allowing users to control its movement. The car is equipped with a TB6612FNG motor drive module to control the motors, enabling basic movements such as forward, backward, left turn, and right turn. Additionally, the car features LED status indicators and an ultrasonic sensor to display the current status and perform obstacle avoidance.
Hardware Components:
ESP32 Development Board - The core control unit of the car.
TB6612FNG Motor Drive Module - Used to drive the car's motors.
18650 Batteries - Two batteries connected in series provide the necessary power.
LEDs - Used to indicate the car's status.
Ultrasonic Sensors - Used to detect obstacles ahead for automatic obstacle avoidance.
Functional Description:
Bluetooth Control:
Users can send commands via the mobile app to communicate with the ESP32 via Bluetooth to control the car's movement.
Motor Drive:
The TB6612FNG motor drive module is used, and the ESP32's PWM signals control the motor's speed and direction.
LED Status Indicators:
The LEDs display different colors or flashing patterns depending on the car's status (e.g., moving, stopped, obstacle avoidance).
The ultrasonic obstacle avoidance
system uses ultrasonic sensors to detect obstacles ahead. When an obstacle is detected, the car automatically stops or changes direction to avoid a collision.
Programming and debugging
are performed using VS Code and the Arduino framework. Control code is written, uploaded to the ESP32 development board, and debugged.
Important considerations:
Ensure all electronic components are correctly connected to avoid short circuits.
Before programming, ensure the ESP32 development board is correctly configured.
When testing the car's movement, ensure a safe surrounding environment to avoid damaging the car or causing injury.
Future improvements
include adding more sensors, such as accelerometers, to achieve more complex motion control.
The app interface will be optimized to provide a more intuitive user experience.
The use of machine learning algorithms will be explored to enable the car to navigate and avoid obstacles autonomously.