yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
MSPM0 Smart Robot Car📖
1.Quick Start Guide
  • 1. Assembly Videos
  • 2. Quick Start Videos
  • 3. Battery charging
  • 4. Notes
2.Introduction to the MSPM0 Car
  • 1.About MSPM0
  • 2.Development board interface description
3.Development environment setup and usage
  • 1.CCS Theia development
  • 2.MDK Arm development
  • 3.Uniflash burning
  • 4.External crystal oscillator configuration
  • 5.Project Migration
4.MSPM0 basic course
  • 1. LED light control (GPIO)
  • 2. Buzzer Control (GPIO)
  • 3. Button Control (EXTI)
  • 4. Serial Port (UART)
  • 5. Voltage Detection (ADC)
  • 6. Temperature Detection (ADC)
  • 7. Independent Watchdog (WWDG)
  • 8. Window Watchdog (WWDG)
  • 9. Timer (TIM)
  • 10. Breathing LED (PWM)
  • 11. I2C Communication (I2C)
  • 12. External Flash (SPI)
  • 13. Internal Flash (Flash)
  • 14. DMA
  • 15. FreeRTOS
5.Sensor basic course
  • 1.Servo control
  • 2.Ultrasonic servo PTZ basic use
  • 3.Motor PID control
  • 4.OLED display photosensitive value
  • 5.Infrared avoid sensor
  • 6.1 Infrared line tracking sensor-8 channel infrared tracking sensor module
  • 6.2 Infrared line tracking sensor-4 channel infrared tracking sensor module
  • 7.Infrared remote control
  • 8.Ultrasonic ranging
  • 9.RGB light drive
  • 10.MPU6050 raw data acquisition
  • 11.MPU6050 data fusion
  • 12.K210 vision recognition module
  • 13.K230 vision recognition module
6.Smart car course
  • 1.1 Car line tracking-8 channel infrared tracking sensor module
  • 1.2 Car line tracking-4 channel infrared tracking sensor module
  • 2.1 Drawing a circle-8 channel infrared tracking sensor module
  • 2.2 Drawing a circle-4 channel infrared tracking sensor module
  • 3.Ultrasonic following
  • 4.Ultrasonic avoid
  • 5.Ultrasonic avoid(Servo PTZ)
  • 6.Infrared sensor avoid
  • 7.Light following
  • 8.Gyroscope calibration straight-line walk
  • 9.Infrared remote control
  • 10.Autonomous driving car
7.Vision application course
  • 1.K210 autonomous driving
  • 2.K210 color tracking
  • 3.K210 handwritten digit action
  • 4.K210 color response
  • 5.K210 road sign indication action
  • 6.K210 following machine code
  • 7.K210 QR code command
  • 8.K230 vision line tracking
  • 9.K230 color tracking
  • 10.K230 machine code tracking
  • 11.K230 QR code command
  • 12.K230 autonomous avoid
  • 13.K230 license plate tracking
  • 14.K230 face tracking
  • 15.K230 gaze direction tracking
  • 16.K230 palm tracking
  • 17.K230 target tracking
  • 18.K230 human body tracking
  • 19.K230 OCR character recognition
8.Extended application course (Sold separately)
  • 1.Voice interaction module communication
  • 2.Voice interaction control
  • 3.K230 road sign indication action(Voice)
  • 4.K230 color response(Voice)
  • 5.K230 gesture control(Voice)
  • 6.K230 rock-paper-scissors(Voice)
  • 7.8-channel grayscale color line tracking
  • 8.Bluetooth remote control
  • 9.K210 Scenario-based autonomous driving
  • 10.K230 Scenario-based autonomous driving
Download
  • Code
  • SCH
  • 3D Model File
  • MSPM0 Data Sheet
  • Voice firmware
  • Hardware interface manual
Download ZIP

Welcome to MSPM0 Smart Robot Car repository

8.Bluetooth remote control

Bluetooth Remote Control

Bluetooth Remote ControlI. Software-HardwareII. Brief Principles1. Hardware Schematic Diagram2. Physical Connection Diagram3. Control PrincipleIII. Main Functions1. User FunctionsIV. Experimental Phenomena

This tutorial is a comprehensive experiment combining multiple peripherals. You can learn about individual peripherals first before conducting this experiment.

I. Software-Hardware

  • KEIL
  • MSPMOG3507 Development Board
  • Bluetooth 5.0 Module
  • Type-C Data Cable or DAP-Link

Download or simulate the program on the development board.

II. Brief Principles

1. Hardware Schematic Diagram

PixPin_2025-11-17_16-48-35

蓝牙遥控

upscalemedia-transformed (45)

2. Physical Connection Diagram

Starting Car (6)

3. Control Principle

Use the YahboomRobot APP to control the car's movement via the Bluetooth module.

APP Download URL: https://www.yahboom.net/software/app#YahBoomRobot

image-20231127190612944

  • Program Flowchart

Start Car (5)

  • Bluetooth Module

The Bluetooth module acts as the slave device, and the mobile APP acts as the master device for data transmission.

The Bluetooth module sends the data transmitted by the mobile APP to the development board (MSPM0G3507) via TXD. The development board then parses the received data to obtain the corresponding instruction data, thereby controlling the movement state of the car.

  • Data Format (Communication Protocol):
Header + Data + Trailer
$ + Data + #
xxxxxxxxxx
 It is recommended to understand this in conjunction with the code and the [Yahboom Smart APP Communication Protocol]
  • Data Parsing
xxxxxxxxxx
A communication protocol is a set of rules and conventions used for data exchange in computer networks. Data parsing requires referring to the format of the communication protocol.

Data Acquisition: Deal_Bluetooth

Using the serial port 5 interrupt function to call the Bluetooth data processing function, according to the communication protocol, we need to acquire the data between $ and #. Therefore, the Bluetooth data processing function code is written based on this: it checks if the received data is a $ symbol; if it is, it starts receiving data; if it is a # symbol, it stops receiving characters (data reception status is set to 1). The main loop processes the interrupted data in a polling manner.

Data Processing - Sending to the Car: Get_Data

Based on the communication protocol, it can be observed that different modes are involved, and the data all contains the character "4WD". However, some general control functions do not include "4WD". We can use string search functions to find the character.

  1. If the character "4WD" is not found, it indicates control of the car's movement, servo motors, buzzer, and RGB lights.
  • Example:

Car forward: $1,0,0,0,0,0,0,0,0,0,0#

Car horn: $0,0,0,0,0,1,0,0,0,0#

  1. If the character "CLR" is found, it indicates control of the RGB lights.
  • Example:

RGB lights on red: $4WD,CLR255,CLG0,CLB0#

  1. If the character "PTZ" is found, it indicates control of the servo motors.
  • Example:

Servo motor rotates 180 degrees: $4WD,PTZ180#

  1. If the characters "MODE" and "4WD" are found, it indicates mode switching.
  • Example:

Obstacle avoidance mode enabled: $4WD,MODE31#

Data processing - Send to APP: Send_Msg

If the APP wants to display the data corresponding to the car, it needs to send data to the APP according to the communication protocol format: send data to the APP via serial port 5

  • Example:

$4WD,CSB125,PV8.3,GS214,LF1011,HW01,GM10#

III. Main Functions

This section mainly introduces the user-written function code. For detailed code, please open the project file we provided and view the source code in the Bsp folder.

1. User Functions

Function: USE_Bluetooth_Control

Function Prototypevoid USE_Bluetooth_Control(void)
Function DescriptionBluetooth control
Input ParametersNone
Output ParametersNone

Function: Deal_Bluetooth

Function Prototypevoid Deal_Bluetooth(uint8_t msg)
Function DescriptionProcess received Bluetooth data
Input ParametersSerial port received information
Output ParametersNone

Function: Deal_Motor_Data

Function Prototypevoid Deal_Motor_Data(void)
Function DescriptionProcess motion control of the vehicle
Input ParametersNone
Output ParametersNone

Function: Deal_beep

Function Prototypevoid Deal_beep(void)
Function DescriptionProcesses Bluetooth APP buzzer control data
Input ParametersNone
Output ParametersNone

IV. Experimental Phenomena

After successfully downloading the program, press the RESET button on the development board to control the car using the YahboomRobot APP!

Appendix:

APP Download: https://www.yahboom.net/software/app#YahBoomRobot

Specific operation steps of YahboomRobot APP

① Download the corresponding App

image-20250402122344638

② Open the App and select 4WD Robot

image-20250402122915362

③ Open the Bluetooth interface and enable location permissions, etc.

image-20250402122954206

④Search for Bluetooth

image-20250402123019852

⑤Connect Bluetooth

image-20250402123052746

⑥Return to function selection page

image-20250402123110367

⑦Control interface

image-20250402140239098

⑧Areas supporting function control

image-20250402140320177

 

8-channel grayscale color line tracking
K210 Scenario-based autonomous driving

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文