yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
MSPM0G3507 Development Board📖
1. Introduction to MSPM0
  • 1. Introduction to MSPM0
2. Development environment construction
  • 01.CCS Theia Development
  • 02.MDK Arm Development
  • 03.UniFlash Downloader
  • 04.DAP-LINK download program
  • 05.Program simulation and debugging
  • 06.Engineering transplantation
3. Keil basic case
  • 1. Turn on the LED light
  • 2. System delay
  • 3. Button control
  • 4. External interruption
  • 5. Serial communication
  • 6. Timer
  • 7. PWM breathing light
  • 8. ADC acquisition
  • 9. DMA transfer
  • 10. Get MPU6050 data (I2C)
  • 11. LCD Display (SPI)
4. CCS basic case
  • 1. Turn on the LED light
  • 2. System delay
  • 3. Button control
  • 4. External interruption
  • 5. Serial communication
  • 6. Timer
  • 7. PWM breathing light
  • 8. ADC acquisition
  • 9. DMA transfer
  • 10. Get MPU6050 data (I2C)
  • 11. LCD Display (SPI)
5. MSPM0 Robot Expansion Board
  • 1. MSPM0 Robot Expansion Board Introduction
  • 2. Custom Buttons
  • 3. Drive Buzzer
6.MSPM0-K230 Vision Application Module
  • 1.k230 color recognition
  • 2.k230 barcode recognition
  • 3.k230 QR code recognition
  • 4.k230Apriltag code recognition
  • 5.k230DM code recognition
  • 6.k230 face detection
  • 7.k230 gaze direction
  • 8.k230 face recognition
  • 9.k230 human body detection
  • 10.k230 fall detection
  • 11.k230 palm detection
  • 12.k230 gesture recognition
  • 13.k230OCR character recognition
  • 14.k230 object detection
  • 15.k230 target tracking
  • 16.k230 self-learning object recognition
  • 17.k230 license plate recognition
7. MSPM0-K210Vision module application
  • 0.Prerequisites for K210 as a coprocessor
  • 1.MSPM0_K210 color recognition
  • 2.MSPM0_K210 barcode recognition
  • 3.MSPM0_K210 QR code recognition
  • 4.MSPM0_K210 mechanical code recognition
  • 5.MSPM0_K210 face detection
  • 6.MSPM0_K210 facial feature detection
  • 7.MSPM0_K210 mask detection
  • 8.MSPM0_K210 face recognition
  • 9.MSPM0_K210 Object Detection
  • 10.MSPM0_K210 Self-study classification
  • 11.MSPM0_K210 handwritten digit recognition
8. Expansion casenew
  • 1.Autonomous driving car
  • 2.Vehicle-mounted balance ball motion control system
Download
  • Code
  • Hareware_Info
  • Software_Tools
  • Communication Protocol
Download ZIP

Welcome to MSPM0G3507 Development Board repository

3.MSPM0_K210 QR code recognition

MSPM0_K210 QR code recognition

1. K210 communicates with MSPM0

1.1 Experimental prerequisites

This tutorial uses the MSPM0G3507 development board. K210 needs to run the program in K210-AI(MSPM0G3507) to start the experiment

MSPM0G *1

K210 visual module *1 (must have an SD card (with AI models), camera)

USB to TTL module *1

1.2 Experimental wiring

Method 1: Use USB to TTL module

MSPM0GK210 visual module
RXTXD
GNDGND
VCC5V
MSPM0GUSB to TTL module
TXRXD
GNDGND

Method 2: Use the onboard Type-C port

1.3 Main code explanation

This example sets the baud rate of the serial port printing to 115200 bps, and the baud rate of the k210 module connection is set to 115200 bps.

5

6

​x
int main(void)
{
    SYSCFG_DL_init();
​
    NVIC_ClearPendingIRQ(MYUART_INST_INT_IRQN);//清除串口中断标志 Clear the serial port interrupt flag
    NVIC_EnableIRQ(MYUART_INST_INT_IRQN);//使能串口中断 Enable serial port interrupt
 
    
​
    while (1) 
    {    
         if (k210_msg.class_n != 0)//例程号不为空 Routine number is not empty
        {
            if(k210_msg.class_n == 3)
            {               
                sprintf(buff_com,"x=%d,y=%d,w=%d,h=%d\r\n",k210_msg.x,k210_msg.y,k210_msg.w,k210_msg.h);
                uart0_send_string(buff_com);
                
                sprintf(buff_com,"str = %s\r\n",k210_msg.msg_msg);
                uart0_send_string(buff_com);
                
                k210_msg.class_n = 0;   
            }
            
        }
        delay_ms(500);
         
    }
} 

After the above program, if this routine is run, the members of the k210_msg structure will have corresponding values ​​and will be processed through the serial port printing

k210_msg: is the structure for receiving information, and its main members are

  • x: is the horizontal coordinate of the upper left corner of the identified box (range: 0-240)
  • y: is the vertical coordinate of the upper left corner of the identified box (range: 0-320)
  • w: is the width of the identified box (range: 0-240)
  • h: is the length of the identified box (range: 0-320)
  • id: is the identified label
  • class_n: routine number
  • msg_msg[20]: valid data

After the data is received and processed by the function, each member of k210_msg will store valid information. If you want to perform secondary development, you can directly call the members of k210_msg

Note: The keil project source code must be compiled under the SDK path.

1.4 Experimental Phenomenon

  1. After connecting the cable, the K210 perspective module runs offline. Please check 【6.2 K210 as coprocessor】--【ReadMe】

    Link:http://www.yahboom.net/study/K210-Al-Camera

  2. The serial port assistant is set to the interface as shown in the figure

    3

  3. Then run the QR code recognition routine, and the serial port assistant will print out the important information transmitted by k210 to MSPM0G, as shown in the figure below

    4

The QR code recognition only transmits the five member variables x, y, w, h, msg of k210_msg.

MSPM0_K210 barcode recognition
MSPM0_K210 mechanical code recognition

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