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

1.Voice interaction module communication

Voice interaction module communication

Voice interaction module communicationI. Software-HardwareII. Brief Principles1. Hardware Schematic Diagram2. Introduction to the Voice Interaction Module1. Introduction to the Voice Interaction Module2. Working Principle3. Precautions4. Hardware Interface Description5. Control Principle3. Physical Connection DiagramIII. Main Functions1. User FunctionsIV. Experimental PhenomenaV. Voice Module Firmware Burning

I. Software-Hardware

  • KEIL
  • MSPM0G3507 Development Board
  • Type-C Data Cable or DAP-Link

Download or simulate the program on the development board

  • Voice Interaction Integrated Module

II. Brief Principles

1. Hardware Schematic Diagram

upscalemedia-transformed (41)

2. Introduction to the Voice Interaction Module

1. Introduction to the Voice Interaction Module

The CI1302 is a new generation of high-performance neural network intelligent voice chip developed by Qiying Tailun. It integrates Qiying Tailun's self-developed brain neural network processor BNPU V3 and CPU core. The system main frequency can reach 220MHz, with a built-in SRAM of up to 640KByte, an integrated PMU power management unit and RC oscillator, and an integrated dual-channel high-performance low-power audio codec. It features multiple peripheral control interfaces including UART, IIC, IIS, PWM, GPIO, and PDM. The chip requires only a few external components such as resistors and capacitors to implement hardware solutions for various intelligent voice products, offering extremely high cost-effectiveness.

Utilizing third-generation hardware BNPU technology, it supports neural networks such as DNN, TDNN, RNN, and CNN, as well as parallel vector operations, enabling functions such as speech recognition, voiceprint recognition, command word self-learning, speech detection, and deep learning noise reduction. This chip solution also supports multiple global languages, including Chinese, English, and Japanese, and can be widely used in home appliances, lighting, toys, wearable devices, industrial products, and automobiles to achieve voice interaction and control, and various intelligent voice solutions.

The CI1302 chip features a Brain Neural Processing Unit (BNPU), supporting offline NN acceleration operations and hardware acceleration for speech signal processing. The CPU clock speed can reach 220MHz, enabling offline far-field speech recognition. It has 2MB of built-in FLASH storage and supports 300 command words.

2. Working Principle

This module uses a voice command wake-up mode. The user needs to say the pre-set wake-up word to activate the voice interaction module. After activation, voice recognition can begin. The default wake-up keyword in the factory firmware is "Hi,yahboom". If no voice is recognized after 20 seconds, the module will enter sleep mode and needs to be woken up again for subsequent use.

When the CI1302 chip recognizes the corresponding voice command, it will send it out via the serial port and IIC interface and provide feedback. The IIC chip stores the received voice command and sends it out via the IIC slave protocol.

The module supports wake-up word modification, command word modification, and custom entries. You can refer to the following tutorials to learn how to operate: AI Voice Interaction Module [2. Modify the wake-up word and command word], [3. Customized protocol entry creation]

3. Precautions

Use 5V power supply. Voltage exceeding 5V will damage the module.

The usage environment should be quiet. Noisy environments will affect recognition performance.

When speaking the words, speak loudly and at a moderate pace. It is recommended to maintain a distance of no more than 5 meters from the module.

4. Hardware Interface Description

image-20250305200724239

image-20250305193614226

NumberHardware NameDescription
1SpeakerConverts analog signals to sound
2Slide SwitchSwitches between serial ports for firmware burning
3MicrophoneConverts sound to analog signals
4RST ButtonReset Button
5Power Indicator (Red)Always on when power supply is normal
6Type-C InterfaceUsed for power supply and CI1302 chip/SCT8 firmware update download
7Power Amplifier ChipConverts digital signals into analog signals to drive the speaker
8CI1302 ChipHigh-performance voice recognition chip, recognizes voice and outputs signals
9Reverse Connection Protection5V/GND reverse connection protection
10IIC InterfaceUsed as a slave device for power supply and communication with the host device
11Serial Port InterfaceProvides an external serial port for protocol-controlled playback
12STC8H ChipConverts voice chip commands into IIC protocol commands and serial port commands

5. Control Principle

(Schematic Diagram Name)Control PinSpecific Meaning
TX3PA26Serial Transmitter
RX3PA13Serial Receiver

Serial Communication:

UART (Universal Asynchronous Receiver Transmitter) is a full-duplex universal asynchronous serial transceiver module, mainly used for printing program debugging information, communication between host and slave computers, and ISP program downloading. UART requires at least two data lines for bidirectional simultaneous data transmission between communicating parties. The simplest UART interface consists of three lines: TxD, RxD, and GND. TxD is used for transmitting data, RxD for receiving data, and GND is the ground line. Serial communication between the two chips is achieved through cross-connection.

image-20230926100744845

3. Physical Connection Diagram

image-20251011115304354

Wiring Pins

Voice Module Wiring (Note: The wiring diagram below is for reference only. Our products come with a dual-ended PH2.0 4-pin all-black cable for the voice module, featuring a foolproof design. No need to worry about wiring issues.)

Intelligent Voice Interaction ModuleMSPM0G3507
RX1TX3
TX1RX3
GNDGND
5V5V

III. Main Functions

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

1. User Functions

Function: Write_Data

Function Prototypevoid Write_Data(uint8_t dat)
Function DescriptionSends data to the voice module
Input ParametersThe data frame sent
Output ParametersNone

Function: Processing_Data

Function Prototypevoid Processing_Data(uint8_t RXdata)
Function DescriptionReceives data from the voice module
Input ParametersThe data frame received
Output ParametersNone

IV. Experimental Phenomena

  • The broadcast content can be selected by modifying the code in the program, as shown in the following images:

image-20250226172634805

image-20250226172649596

  • The broadcast content can be viewed according to the Command word broadcasting word protocol list V3--MSPM0.xlsx file provided in the attachment,

where the first and second bytes AA 55 represents the protocol frame header. The third byte, FF, indicates the broadcast function. The fourth byte is the ID of the broadcast content; here we can see that "I-AM-READY" is hexadecimal 67, so sending 0x67 to register 0x03 in the program will broadcast the corresponding content. The fifth byte is the end frame.

image-20250226172711675

  • Open the serial port debugging assistant provided in the attachment, select the corresponding port, and set the baud rate to 115200. Set the receive mode to hexadecimal.

image-20250226173151484

  • Open the serial port, say the wake-up word, and after waking up, say "Car lights off". The debugging assistant will then reply with a 0A response.

image-20250226173212903

  • At this point, you can open the attached Command Word Broadcast Protocol List V3_Chinese file to view the protocol for "Car lights off".

image-20251101185518505

The first and second bytes, AA 55, represent the protocol frame header. The third byte represents the ID of the chip's ten function words. The fourth byte is the command word ID; here, you can see that Car lights off is hexadecimal 0A. The fifth byte is the end frame.

  • Speaking other command words will also print the corresponding command word ID in the serial port debugging assistant; you can try them yourself.

V. Voice Module Firmware Burning

x
The voice module needs to be burned into the firmware file CI1302_EN_Single_V00916_UART1_115200_2M(MSPM0).bin provided in the download area. This will enable the intelligent voice interaction module for this car, without the need for multiple burning attempts.
  1. Download the provided voice module firmware CI1302_EN_Single_V00916_UART1_115200_2M(MSPM0).bin
  2. Connect the voice module's Type-C port to your PC and push the slider on the voice module towards pin 1.

image-20250616205055079

  1. Open the voice chip firmware flashing tool.

image-20250616204815187

  1. Select the CI1302 chip and click "Firmware Upgrade".

image-20250616205137186

  1. Locate the factory firmware CI1302_EN_Single_V00916_UART1_115200_2M(MSPM0).bin, select the corresponding firmware

image-20250616205339084

  1. Go to the corresponding serial port number, baud rate 921600, and check the box next to it.

image-20250616205526229

  1. Press the RST button on the board, and the firmware will be automatically downloaded to the voice module.

 

K230 OCR character recognition
Voice interaction control

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/中文