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

5. Program download and simulation

Program download and simulation

Program download and simulation1、FlyMCU:Program download1.1、Generate.hex files1.2、Downloading the program1.3、Running the program2、ST-Link:Program download and simulation2.1、Debug configuration2.2、Program download2.3、Program simulation

1、FlyMCU:Program download

FlyMCU software can download the compiled program code (hex file) to the target MCU chip through the serial port.

1.1、Generate.hex files

Using STM32CubeIDE will not generate.hex files by default,You need to check the appropriate option.

  • Properties

image-20230926152839631

  • Check the appropriate options

image-20230926152934564

  • compilation

image-20230926152958123

.hex file location: Debug folder of the project file

1.2、Downloading the program

Using the data line can be through the development board Type-C interface burning program;

After connecting the computer with Type-C data cable, you can check the serial port number of the corresponding device in the device manager: port.

  • Device Manager

image-20230926153435306

  • Flymcu

    BootLoader options:DTR low reset, RTS high reset into BootLoader

image-20231201112034829

1.3、Running the program

After downloading the program successfully, press the RESET button of the development board to observe whether the phenomenon of the development board is normal.

2、ST-Link:Program download and simulation

To download a program using ST-Link, you need to check and set the debugger to ST-Link.

2.1、Debug configuration

image-20230926154953513

  • ST-Link → SWD

image-20230926155111521

  • Hardware wiring

Before using ST-Link to download programs, you need to use four mother-to-mother dupont wires to connect the ST-Link to the development board, and the ST-Link is connected to the computer through a USB interface.

ST-LinkThe SWD interface of the board
3.3V3V3
SWCLKSWCLK
SWDIOSWDIO
GNDGND

2.2、Program download

Click the Debug icon

image-20230926155129482

2.3、Program simulation

image-20231010144324096

  • Debug:Click on "Little Beetle"

image-20230926160106843

  • Breakpoint debugging

image-20230926162749897

  • Viewing variable values

In debug mode, select the Num variable you want to view (here's how to view the Num variable)

image-20231010160345505

xxxxxxxxxx
Variables can be added to the Expression window by right-clicking and selecting the appropriate option, or by manually entering the variable name

image-20231010160420216

When the Num variable is added to the Express window, the value can be viewed in the Expression window, and the actual value of the variable is displayed only when the program is stopped

xxxxxxxxxx
The live expression window allows you to view the changes of global variables in real time

image-20231010160830547

Breakpoint:Double-click on the leftmost part of the current statement to show a blue breakpoint, where the program stops running

Keep running:When the program runs to the breakpoint position, you can use this button to continue running down

Terminate debugging:Exit program debugging

Common Driver Installation
Engineering experience and migration

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