yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
310 Motor📖
1.Hardware parameter
  • Hardware parameter
2.ROS robot control board tutorials
  • 3.0 ReadMe
  • 3.1 Control motor
  • 3.2 Timer got encoder data
  • 3.3 PID control robot movement
  • 3.4 4WD Robot kinematics analysis
  • 3.5 Ackerman Robot kinematics analysis
  • 3.6 Mecanum wheel kinematics analysis
3.STM32 smart car tutorials
0. Get started quickly
  • 14.Infrared sensor obstacle avoidance
  • 0. Installation Instructions
  • 1. Version configuration
  • 2. Smart car installation video
  • 3. Precautions for use
1. Introduction to STM32 board
  • 1. Learn about STM32
  • 2. Introduction to STM32 development board
  • 3. Development board pin assignment
  • 4. Introduction to HAL library and LL library
2. 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
3. Car expansion tutorial
  • 1.Servo control
  • 2.Basic use ultrasonic servo PTZ
  • 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 PTZ version)
  • 15.Infrared remote control
  • 16.PS2 handle remote control
4.2-channel motor drive module tutorial
  • 2.1 Introduction of Module
  • 2.2 For STM32
  • 2.3 For Arduino
  • 2.4 For RaspberryPi
  • 2.5 For RaspberryPi Pico
  • 2.6 For jetson nano
  • 2.7 For MSPM0G3507
  • 2.8 For MSPM0G3519new
5.4-channel motor drive tutorials
Introduction and debugging
  • 0.Motor introduction and usage
  • 1.Introduction to 4-channel motor drive board
  • 2.Control command
  • 3.PC host
USART communication
  • For Arduino
  • For Jetson NANO
  • For MSPM0G3507
  • For MSPM0G3519new
  • For PICO2
  • For RDK X5
  • For RPi5
  • For STM32
IIC communication
  • For Arduino
  • For ESP32
  • For ESP32
  • For Jetson NANO
  • For MSPM0G3507
  • For MSPM0G3519new
  • For PICO2
  • For RDK X5
  • For RPi5
  • For STM32
Download
  • Motor_3D_Model_File
  • Annex_ROSRobotControlBoard
  • Annex_STM3RobotCar
  • Annex_2-channelMotorDriveModule
  • Annex_4-channelMotorDriveModule
Download ZIP

Welcome to 310 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
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文