DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old’s Project

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

Low price, strong performance, and fast development, the cost-effective Hezhao ESP32-C3 development board has shipped tens of thousands of units and has been called a “DIY artifact” by many engineer friends.

Today’s special share is the “Bluetooth Remote Control Car” projectcreated by an 11-year-old student, who is the youngest developer we’ve encountered so far@PY Learning Notes.

If you’re interested, please click on the end of the article“Read the original text” to download the latest materials.

1

Bluetooth Remote Control Car Hardware Production

The Bluetooth remote control car uses the Hezhao ESP32-C3 development board as the main control, developed with MicroPython, and controlled via a mobile app.The main hardware materials include a car chassis, L298N motor driver module, battery box, switch, etc.

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

Main Material Preparation –

01. Hezhao ESP32-C3 Development Board:

Currently, Hezhao sells the ESP32-C3 development board in two versions: Classic Version and Simplified Version. Both versions can be used in this project, and it is recommended for beginners to get the classic version, as it is easier for burning and debugging.

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

Car chassis, battery box, switch:

The car I bought includes the main chassis, 2 DC gear motors (200 RPM at 5V), and a universal wheel, along with a 5-cell battery box and a ship-type switch. In actual development, you can replace them according to your needs.

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

L298N Motor Driver Module:

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

Special Note:

  • The 5V power supply is a special port: it can be used as the logic voltage input for L298N, or as a 5V power supply port for an external microcontroller or system.

    When the 12V power supply port is connected to a voltage greater than 5V, the onboard 5V jumper cap is not removed, and the 5V power supply port has voltage output; when the 12V power supply port is ≤5V, the onboard 5V jumper cap needs to be removed, as L298N requires a logic driving voltage to drive the board. At this point, the 5V power supply port becomes the input port for the logic voltage supply to L298N.

  • The logic inputs IN1 and IN2 are a group corresponding to output A; the logic inputs IN3 and IN4 are a group corresponding to output B.

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

– Hardware Wiring Diagram

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

  • The positive and negative poles of the battery are connected to the 12V power supply of L298N (with a switch in between) and GND, and then connect the 5V power supply and GND to the 5V and GND of the ESP32-C3 respectively.

  • Two DC gear motors are connected to output A and output B of L298N respectively.

  • The logic inputs IN1, 2, 3, 4 are connected to GPIO00, 01, 18, 19 of the Hezhao ESP32-C3 development board respectively.

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

Car hardware assembly completed

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

2

Using Mobile Bluetooth App to Control the Car

Bluetooth is divided into classic Bluetooth (Classic Bluetooth) and low energy Bluetooth (BLE), with low energy Bluetooth generally being Bluetooth 4.0 and above.

The Bluetooth 5.0 equipped with the Hezhao ESP32-C3 development board belongs to BLE and is not backward compatible with classic Bluetooth. Therefore, to control the ESP32-C3 car via a mobile Bluetooth app, an app that supports BLE is required. I tested many apps before I found this usable one.

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

– Mobile Bluetooth App

Download Bluefruit Connect:

https://cnas.lanzoum.com/ivoGu0pre7xc, Password: 4phz

Note: The file is for Android/HarmonyOS version, please search for the IOS version yourself.

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

– Bluetooth Remote Control Implementation

To control the ESP32-C3 car through the mobile Bluetooth app, it can be divided into the following three steps:

1) Implement Bluetooth broadcasting and connection;

2) When the mobile Bluetooth app presses a button, it will send data to ESP32-C3 via Bluetooth, and you need to measure the data sent for each button;

3) The data sent via Bluetooth is stored in the BLE_MSG global variable, which determines the car’s actions (forward, backward, left, right, stop).

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

– Bluetooth Car Source Code

This article demonstrates the ESP32-C3 Bluetooth car developed with MicroPython, and you can download the latest files through the Gitee repository link or the “Read the original text” at the end of the article.

Gitee Repository:

https://gitee.com/py2012/blecar

Friends who are interested, let’s unleash creativity and make more interesting applications together~

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

Special thanks to @PY Learning NotesLooking forward to more wonderful works

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

– Previous Recommendations –

Open Source | ESP32 Development Board + E-Ink Screen Creative Ornament

Open Source | DIY Creative “Pixel Box” with ESP32

Open Source | DIY Raspberry Pi Logic Analyzer for 9.9 Yuan

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

Welcome engineer friends to provide more new product definition ideas, and work with Hezhao to create more useful and fun products — starting today, if you see interesting videos on Bilibili, you can comment on the video with@Hezhao LuatOS account, and we will randomly send private messages to distribute Hezhao Mall discount coupons, looking forward to everyone’s participation!

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

▼ Learn more about valuable products

Open Source! 9.9 Free Shipping Development Tool — Hezhao Mini DAPLink

5 Yuan Wi-Fi/Bluetooth Dual-Mode Module

Hezhao USB3.2 Full-Function C2C Data Cable

DIY Bluetooth Car Controlled by ESP32-C3: A 11-Year-Old's Project

Leave a Comment

×