Welcome to MSPM0G3519 Development Board repository
0. K210 Prerequisites For Making A Coprocessor - Must-see
Prerequisites for Using K210 as a Coprocessor
Prerequisites for Using K210 as a Coprocessor1. Import Model Files to Memory Card2. K210 Auto-start AI Program3. Notes
1. Import Model Files to Memory Card
Preface: Since AI vision experiments require different model files, it is necessary to import all model files to the memory card in advance. You can import all model files at once to avoid importing model files each time. Model files are distinguished by different paths.
All model files are placed under the KPI folder. Please do not modify the file names in the KPI folder and subdirectories under KPI. Otherwise, the default example program will have the problem of not finding model files.
Prepare a card reader and a memory card (microSD card). The capacity should not exceed 64G. Insert the memory card into the card reader slot.
Connect the card reader to the computer USB port and open the root directory of the memory card drive. Here we take drive H: as an example.
Download the model file archive from the materials and extract it. Copy the KPI folder to the root directory of drive H:.
Eject the card reader and remove the memory card to insert into the K210 module's memory card slot.
2. K210 Auto-start AI Program
Insert the SD card into the card reader and then into the computer. Copy one program from the 11 programs shown in the figure below to the SD card.
Rename it to a file named main.py.
Remove the SD card from the card reader, insert it into the K210's SD card slot, then power on the K210. After waiting for a period of time, the main.py program in the SD card will run, which means the AI program has started.
3. Notes
If you want to know what each program sends, you can check the communication protocol under the k210 folder in the program source code folder.
If you want to learn how the AI program performs image processing and recognition and displays it on the LCD screen, you can refer to Chapter 5 AI Program for program source code interpretation.
This chapter focuses on K210 as a coprocessor, focusing on how to communicate with the upper computer and transmit data to the upper computer. Therefore, the explanation of AI image processing programs will not be involved.