yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
L-Type Motor📖
1.About motor
  • About motor
2.ROS robot control board drive
  • 0. Notes (Must read!!)
  • 1. Control motor
  • 2. Timer captures encoder data
  • 3. PID control robot car
  • 4. Kinematic Analysis-Mecanum wheel structure
  • 5. Kinematic Analysis-Ackerman structure
  • 6. Kinematic Analysis-4WD structure
3.STM32 board car tutorials
0. Notes (Must read!!)
  • Notes
1. Get started quickly
  • 0. Installation Instructions
  • 1. Version configuration
  • 2. Smart car installation video
  • 3. Precautions for use
2. Introduction to STM32 development board
  • 0. Notes (must read)
  • 1. Learn about STM32
  • 2. Introduction to STM32 development board
  • 3. Development board pin assignment
  • 4. Introduction to HAL library and LL library
3. Setting up and using the development environment
  • 1. Common development tools
  • 2. STM32CubeMX Install - Use
  • 3. STM32CubeIDE Install - Use
  • 4. Common Driver Installation
  • 5. Program download and simulation
  • 6. Engineering experience and migration
4. Car expansion tutorial
  • 1. Servo control
  • 2. Basic use of ultrasonic steering gear gimbal
  • 3. Motor control
  • 4. OLED display light sensitivity value
  • 5. Infrared sensor
  • 6. Four-way tracking module
  • 7. Infrared remote control
  • 8. Ultrasonic ranging
  • 9. PS2 controller test
  • 10. Car line patrol
  • 11. Ultrasonic follow
  • 12. Ultrasonic obstacle avoidance
  • 13. Ultrasonic obstacle avoidance (servo gimbal version)
  • 14. Infrared sensor obstacle avoidance
  • 15. Infrared remote control
  • 16. PS2 handle remote control
4. 2-channel motor drive module
For MSPM0G3507
  • 1.AT8236 drive tutorials
  • 2.TB6612 drive tutorials
For MSPM0G3519
  • 1.AT8236 drive tutorialsnew
  • 2.TB6612 drive tutorialsnew
5. 4-channel motor drive module
Introduction and Debug
  • 1.Introduction to 4-channel motor drive board
  • 2. Control command
  • 3. 520 motor introduction and usage
  • 4. PC host
IIC communication
  • For MSPM0G3507
  • For MSPM0G3519new
  • For STM32
  • For ESP32
  • For Arduino
  • For PICO2
  • For Jetson NANO
  • For RPi5
  • For RDK X5
USART communication
  • For MSPM0G3507
  • For MSPM0G3519new
  • For STM32
  • For ESP32
  • For Arduino
  • For PICO2
  • For Jetson NANO
  • For RPi5
  • For RDK X5
Download
  • 3D-Model-File
  • Code
Download ZIP

Welcome to L-Type Motor repository

6. Engineering experience and migration

Engineering experience and migration

Engineering experience and migration1、Engineering Experience1.1、Open the project1.2、Program download2、Engineering migration2.1、Notes2.2、Adding files2.3、Compiling project2.4、Downloading the program

Engineering experience: Use the project files we provide to experience the development board matching function

Project migration: Porting our underlying driver code files to self-developed project files

Example in this tutorial:3.1 RGB Searchlight

xxxxxxxxxx
Only the project source code in Chapter 3 is used here as a demonstration. For details on how to write the code, please refer to the [3. Development Board Basics Tutorial: RGB Searchlight] tutorial

1、Engineering Experience

1.1、Open the project

  • Project file location

Demo project file path:the "Project source" folder of the Chapter 3 tutorial

In the later stage, you can locate the project source code according to the sequence number and name of the tutorial (the project source code is all named in English). There will be a corresponding [project source code] folder under the same level directory of each chapter of the tutorial, and you can see the corresponding project source code when you enter the folder.

image-20231012221033543

  • Open the project file

Unzip the project file in the directory of English path , open the project file with STM32CubeIDE, open the project file and select . Project file

image-20231012221542861

xxxxxxxxxx
You can create a STM32 folder on your desktop and select the STM32 folder as your workspace when opening the project files

1.2、Program download

Refer to the tutorial [2.6 Program Download and Simulation] in this chapter, which introduces the serial port download program and ST-Link download program. You can choose one of them to download the program.

xxxxxxxxxx
It is recommended to use the serial port to download the program, and you can directly use the Type-C data line to burn the program

2、Engineering migration

In order to facilitate users to develop new functions by themselves in the later stage, we write the peripheral application code in the BSP folder, and the code automatically generated by STM32CubeIDE is not modified and processed.

Project file used:RGB project

New project file:Demo project

xxxxxxxxxx
RGB工程是【3.1 RGB探照灯】的工程源码

2.1、Notes

If you find yourself porting program code function abnormal, please provide the project source code we shall prevail

We provide basic methods for engineering porting, but we do not provide technical support for user-written code

2.2、Adding files

When creating a new Demo project file, refer to the project configuration content in the [3.1 RGB Searchlight] tutorial, and configure the peripheral and initialize the code generation of the new project file.

Tip : The only difference between my Demo project and RGB project is the project name. Everything else is the same.

  • Copy the BSP folder

Copy the BSP folder in the RGB project source folder to the Demo project folder you created

image-20231012231744402

  • Adding file paths

Properties

image-20231012232810118

Includes

Add.h file path: Bsp and Bsp_RGB folder

image-20231013094338963

In the same way, add the Bsp_RGB folder

image-20231013101153035

xxxxxxxxxx
The next step is to add the header path to the project, all the above steps

Source Location

Add.c folder path: Bsp folder path

image-20231013101354299

image-20231012234832483

xxxxxxxxxx
If you get a compilation error during this process, you can be prompted to add the resource folder path

2.3、Compiling project

  • Compiling project

Write the bsp.h file into the main.c file and compile the project. If there are no warnings and errors, it means that there is no obvious problem with the migration.

image-20231013000526276

  • Add feature code

Tip:Since this project file is simple, you only need to add the following two lines to the main.c file

image-20231013102245873

2.4、Downloading the program

After successful translation of the program, you can download the program to the development board through the serial port or ST-Link, and verify whether the program function is normal

For the detailed download program tutorial, refer to the tutorial [2.6 Program download and Simulation] in this chapter, which introduces the serial port download program and ST-Link download program. You can choose one of them to download the program.
Program download and simulation
Servo 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/中文