HomeEngineering Projects For YouBluetooth-Controlled Robot Using The STM32 Blue Pill

Bluetooth-Controlled Robot Using The STM32 Blue Pill

efy-tested-1

Building a robot is an effective way to understand embedded systems, control logic, and real-world electronics integration. This system demonstrates a Bluetooth-controlled mobile robot built around the low-cost STM32 Blue Pill microcontroller. It features an OLED display, four BO motors, and Li-ion batteries for power.

The robot can be controlled wirelessly from a smartphone via Bluetooth, while the OLED displays real-time system information such as connection status, eye animations, and battery level.

With its low-cost design, compact size, and simple connections, the robot can serve as an educational and experimental platform for students and hobbyists. It demonstrates the practical implementation of key concepts such as GPIO interfacing, serial communication, motor-driver control, display interfacing, and battery-powered operation.

Fig. 1: Authors’ prototype

The system can be further enhanced by integrating sensors, obstacle detection, and other robotic applications. Fig. 1 shows the authors’ prototype, while Fig. 2 shows the wiring diagram of the system. The components required to build the system are listed in the Bill of Materials table.

Fig. 2: Circuit connections with STM32 Blue Pill
Bill of Materials
NameSpecificationQuantity
STM32Blue Pill board1
BatteryLi-ion, 3.7V, 2000mAh-2500mAh2
Battery holderTwo-cell battery holder1
L298NMotor driver1
HC-05Bluetooth module1
BO gear motorDual shaft 200rpm4
OLED display0.96-inch (2.4cm) I2C1
SwitchSPST1

Circuit and working

Fig. 3 shows the circuit diagram of the Bluetooth-controlled robot using the STM32 Blue Pill. The system is built around an STM32F103C8T6-based Blue Pill board, an L298N motor driver, an HC-05 Bluetooth module, four dual-shaft 200rpm BO geared motors, a 0.96-inch (2.4cm) I2C OLED display, two 3.7V, 2000mAh-2500mAh Li-ion batteries, a two-cell holder, and an SPST switch.

Fig. 3: Circuit diagram

The robot is designed as a compact, four-wheel mobile platform with a 3D-printed chassis that provides stability and balanced load distribution. Four BO geared motors are mounted on the wheels to provide sufficient torque. The STM32F103C8T6 operates at 72MHz and manages Bluetooth commands, motor-control logic, and OLED display updates. Since the microcontroller cannot drive the motors directly, an L298N H-bridge motor driver controls them. This arrangement allows the robot to move forwards, backwards, left, right, and rotate through 360 degrees.

EFY Icon

EFY++ CONTENT: ACCESS TO THIS CONTENT IS FREE! BUT YOU NEED TO BE A REGISTERED USER.

Oops! This is an EFY++ article, which means it's our Premium Content. You need to be a Registered User of our website to read its complete content.

Good News: You can register to our website for FREE! REGISTER NOW

Already a registered member? If YES, then simply login to you account below. (TIP: Use 'forgot password' feature and reset and save your new password in your browser, if you forgot the last one!)

Loading form…

SHARE YOUR THOUGHTS & COMMENTS

EFY Prime

Unique DIY Projects

Truly Innovative Electronics

Electronics News

Latest DIY Videos

Electronics Components

Electronics Jobs

Calculators For Electronics