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

2.Voice interaction control

Voice Interaction Control

Voice Interaction ControlI. Software-HardwareII. Basic Principle1. Hardware Schematic Diagram2. Physical Connection Diagram3. Control PrincipleIII. Main Functions1. User FunctionsIV. Voice Module CommandsV. Experimental Phenomenon

This tutorial is a comprehensive experiment combining multiple peripherals. You can first understand individual peripherals before proceeding with this experiment.

I. Software-Hardware

  • KEIL

  • MSPM0G3507 Development Board

  • Type-C Data Cable or DAP-Link

  • Voice Interaction Integrated Module

  • K230 Vision Module

    For program download or simulation to the development board

II. Basic Principle

1. Hardware Schematic Diagram

upscalemedia-transformed (42)

2. Physical Connection Diagram

未命名的设计 (52)

Wiring Pins

Motor Wiring (Note: The wiring diagram below is for position reference only. We provide dual-head PH2.0 6Pin all-black cables with fool-proof design, so you don't need to worry about wiring issues)

TT Encoder MotorMSPM0G3507
M-M1-
M+M1+
VCC3V3
Encoder BH1B
Encoder AH1A
GNDGND
TT Encoder MotorMSPM0G3507
GNDGND
Encoder AH2A
Encoder BH2B
VCC3V3
M+M2+
M-M2-

Voice Module Wiring (Note: The wiring diagram below is for position reference only. We provide dual-head PH2.0 4Pin all-black cables for the voice module with fool-proof design, so you don't need to worry about wiring issues)

Smart Voice Interaction ModuleMSPM0G3507
RX1TX3
TX1RX3
GNDGND
5V5V

K230 Wiring (Note: The wiring diagram below is for position reference only. We provide dual-head PH2.0 4Pin all-black cables for K230 with fool-proof design, so you don't need to worry about wiring issues)

K230MSPM0G3507
RXTX2
TXRX2
GNDGND
5V5V

3. Control Principle

ModuleFunction
Voice Interaction ModuleCommunicates with microcontroller and performs voice broadcast

Program Flowchart

image-20250610152936131

After power on, we need to first wake up the voice interaction module. When we say "Xiao Ya Xiao Ya" to the voice module, the voice module will send a data frame to the microcontroller, but the host does not need to send data back to the module. Then the voice module will broadcast "I'm here". After hearing the broadcast, we can issue voice commands to the voice module. The voice module and microcontroller will send data frames to each other for communication.

Voice module: After receiving voice commands, it sends data frames to the microcontroller's serial port.

Microcontroller part: Receives data frames and then judges each byte of the data frame. Our data frame protocol is hexadecimal byte stream, format: AA 55 00 XX FB (active broadcast), AA 55 FF XX FB (passive broadcast), where the frame header is the first two bytes AA 55, the frame end is a fixed byte FB, the third byte controls the active and passive broadcast of the voice module, the fourth byte is the command data we need. We return the fourth byte data, and then through processing the data, make the car give corresponding feedback. After the car completes the feedback, the microcontroller will send specified content to the voice module again, and the voice module will broadcast after receiving it.

III. Main Functions

Mainly introduces user-written functional code, for detailed code, you can open the project file we provided and enter the Bsp folder to view the source code.

1. User Functions

Function: rgb_SetColor

Function Prototypevoid rgb_SetColor(unsigned char LedId, unsigned long color)
Function DescriptionSet RGB LED color
Input ParametersLedId - which LED to control, color - color data
Output ParametersNone

Function: rgb_SetRGB

Function Prototypevoid rgb_SetRGB(unsigned char LedId, unsigned long red, unsigned long green, unsigned long blue)
Function DescriptionSet RGB LED color (RGB primary color setting)
Input ParametersLedId - which LED to control, red - red data, green - green data, blue - blue data
Output ParametersNone

Function: get_voice

Function Prototypevoid get_voice(void)
Function DescriptionReceive data from voice module and control based on this data
Input ParametersLedId - which LED to control, red - red data, green - green data, blue - blue data
Output ParametersNone

Function: Pto_Loop

Function Prototypevoid Pto_Loop(void)
Function DescriptionUser receives and processes protocol transmitted from K230
Input ParametersNone
Output ParametersNone

Function: Human_Face_Track

Function Prototypevoid Human_Face_Track(x,w,h)
Function DescriptionFace tracking case
Input ParametersData transmitted from K230
Output ParametersNone

Function: Color_Trace

Function Prototypevoid Color_Trace(x,w,h);
Function DescriptionColor tracking case
Input ParametersData transmitted from K230
Output ParametersNone

Function: Control_RGB_ALL

Function Prototypevoid Control_RGB_ALL(RGB_Color_t color)
Function DescriptionControl RGB color
Input ParametersStructure-defined parameters representing RGB
Output ParametersNone

IV. Voice Module Commands

命令词 (Command Word)功能类型 (Function Type)播报语句 (Broadcast Statement)播报模式 (Broadcast Mode)发送协议 (Send Protocol)接收协议 (Receive Protocol)
WELCOME欢迎语 (Welcome)welcome被 (Passive)AA 55 01 00 FBAA 55 01 00 FB
BYE休息语 (Rest)bye主 (Active)AA 55 02 6F FBAA 55 02 00 FB
HI-YAHBOOM唤醒词 (Wake Word)I am here主 (Active)AA 55 03 00 FBAA 55 03 00 FB
VOLUME-UP增大音量 (Increase Vol)Volume Up主 (Active)AA 55 04 00 FBAA 55 04 00 FB
VOLUME-DOWN减小音量 (Decrease Vol)Volume down主 (Active)AA 55 05 00 FBAA 55 05 00 FB
MAX-VOLUME最大音量 (Max Volume)Maximum volume主 (Active)AA 55 06 00 FBAA 55 06 00 FB
MID-VOLUME中等音量 (Medium Volume)Medium volume主 (Active)AA 55 07 00 FBAA 55 07 00 FB
MINI-VOLUME最小音量 (Min Volume)Minimum Volume主 (Active)AA 55 08 00 FBAA 55 08 00 FB
START-REPORT开播报 (Enable Broadcast)Start broadcasting主 (Active)AA 55 09 00 FBAA 55 09 00 FB
STOPT-REPORT关播报 (Disable Broadcast)Stop Broadcast主 (Active)AA 55 0A 00 FBAA 55 0A 00 FB
THE-CAR-STOPPED命令词 (Command)OK the car has stopped主 (Active)AA 55 00 11 FBAA 55 00 11 FB
THE-CAR-MOVES-FORWARD命令词 (Command)OK on track主 (Active)AA 55 00 03 FBAA 55 00 03 FB
THE-CAR-REVERSED命令词 (Command)OK backing up主 (Active)AA 55 00 05 FBAA 55 00 05 FB
THE-CAR-TURNED-LEFT命令词 (Command)OK the car turns left主 (Active)AA 55 00 0F FBAA 55 00 0F FB
THE-CAR-TURNED-RIGHT命令词 (Command)OK the car turns right主 (Active)AA 55 00 10 FBAA 55 00 10 FB
THE-CAR-TURNED-LEFT-IN-PLACE命令词 (Command)OK the car is turning left in place主 (Active)AA 55 00 08 FBAA 55 00 08 FB
THE-CAR-TURNED-RIGHT-IN-PLACE命令词 (Command)OK the car is turning right in place主 (Active)AA 55 00 09 FBAA 55 00 09 FB
TURN-OFF-THE-LIGHTS命令词 (Command)OK turn off the lights主 (Active)AA 55 00 4C FBAA 55 00 4C FB
RED-LIGHT命令词 (Command)OK red light on主 (Active)AA 55 00 49 FBAA 55 00 49 FB
GREEN-LIGHT命令词 (Command)OK green light主 (Active)AA 55 00 4A FBAA 55 00 4A FB
BLUE-LIGHT命令词 (Command)OK blue light on主 (Active)AA 55 00 4B FBAA 55 00 4B FB
YELLOW-LIGHT命令词 (Command)OK yellow light on主 (Active)AA 55 00 48 FBAA 55 00 48 FB
START-TRACKING-FACES命令词 (Command)OK let us start tracking faces主 (Active)AA 55 00 47 FBAA 55 00 47 FB
PATROL-THE-RED-LINE命令词 (Command)OK the red line patrol function is now enabled主 (Active)AA 55 00 17 FBAA 55 00 17 FB
PATROL-GREEN-LINE命令词 (Command)OK the green line patrol function is now enabled主 (Active)AA 55 00 18 FBAA 55 00 18 FB
PATROL-BLUE-LINE命令词 (Command)OK the blue line patrol function is now enabled主 (Active)AA 55 00 19 FBAA 55 00 19 FB
PATROL-THE-BLACK-LINE命令词 (Command)OK the black line patrol has started主 (Active)AA 55 00 1B FBAA 55 00 1B FB
START-TRACKING-COLOR-BLOCKS命令词 (Command)OK let us start tracking the color blocks主 (Active)AA 55 00 3D FBAA 55 00 3D FB

V. Experimental Phenomenon

After successfully downloading the program and connecting the voice interaction module wiring, we need to wake up the voice interaction module. The wake-up method is to say "Hi, yahboom" to the voice interaction module, and the module will reply "I'm here".

After hearing the reply, we can issue commands to the car. This tutorial mainly controls the indicator lights on the expansion board. Car motion control commands are not available (Command issuance and the interval between commands need to be within 20 seconds, otherwise you need to re-wake the voice interaction module.)

After each command operation, the voice interaction module will have corresponding broadcast replies.

For specific commands, please refer to the attached voice module protocol table.

For program download, refer to [Chapter 3: Development environment setup and usage → 3.Uniflash burning]
The voice interaction module needs to be flashed with firmware compatible with MSPM0 car. For firmware programming, refer to [Chapter 8: Extended application course (Sold separately) → 1. Voice interaction module communication]. If already programmed, no need to repeat programming.

 

 

Voice interaction module communication
K230 road sign indication action(Voice)

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

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文