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

2. STM32CubeMX Install - Use

STM32CubeMX installation

STM32CubeMX installation1、Software download1.1、Download URL1.2、Choosing a platform1.3、Filling in information2、Software Installation2.1、Open the installer2.2、Installation Process - Setup3、Software configuration3.1、Open the application3.2、Sign-up - Login to your account3.3、Installing the firmware package4、Software Usage4.1、Chip selection4.2、Pin layout and configuration4.3、Clock configuration4.4、Project management4.5、Generative engineering5、Project folder5.1、Demo5.2、Writing the code

1、Software download

The development tool used for the tutorial is the STM32CubeIDE software,STM32CubeMX is integrated in the STM32CubeIDE software, so learning STM32CubeMX is beneficial to understand the STM32CubeIDE graphical configuration interface.

1.1、Download URL

ST Official website:https://www.st.com/content/st_com/en/stm32cubemx.html

image-20231201104129973

1.2、Choosing a platform

  • platform:Windows

image-20231201104211089

1.3、Filling in information

  • Agree to the agreement

image-20231201104239556

  • Filling in information

image-20231201104435745

The email address needs to be filled in accurately, and the software download link will be sent to you by email
  • Complete submission

image-20231201104504025

  • Email to download the installer

image-20230920193446307

xxxxxxxxxx
Click on the link to go to the official website, the website will automatically jump out of the software compressed package download window

2、Software Installation

2.1、Open the installer

  • Administrator

Open the installation package as an administrator

image-20230920194658787

​x
If you open the software installation package, then you see "NSIS ERROR: error launching installer" error:

Please put the package in the path without Chinese characters

2.2、Installation Process - Setup

  • Next

image-20230920195043729

  • Check the Agreement and Privacy Policy→ Next

image-20230920195131943

image-20230920195249884

  • Location of installation → Next

xxxxxxxxxx
The following are recommended to use the default installation location of the software and the path does not contain Chinese characters

image-20230920195343375

image-20230920195507508

image-20230920195603351

  • Waiting for installation → Next

image-20230920195741220

  • Installation Completed

image-20230920195913761

3、Software configuration

Familiar with software options and functions.

3.1、Open the application

  • Click on Left mouse button:Double click the desktop "STM32CubeMX" app

image-20230920200237509

3.2、Sign-up - Login to your account

Unable to download firmware package without login account.

image-20230921092206367

  • Create an account

image-20230921092320763

  • Fill in the information and submit it

image-20230921093235337

xxxxxxxxxx
Email information Fill in accurate information

image-20230921093751164

  • Verify email

image-20230921094040195

  • Set a password and submit

image-20230921094341787

xxxxxxxxxx
On the right is the password format requirement. Sometimes if the submission is unsuccessful, wait a few minutes or re-enter this page.
  • Login account

xxxxxxxxxx
On the right is the password format requirements, sometimes if the submission is not successful, wait a few minutes or re-enter this page

image-20230921111729077

image-20230921122341593

3.3、Installing the firmware package

  • Help → Manage embedded software packages

image-20230921122459532

  • Install the latest STM32F1 firmware package

image-20230921122546576

xxxxxxxxxx
Install or uninstall is to check the box in front of the chip firmware package, click this option will not have install and uninstall options
  • Waiting to download

image-20230921122657471

  • Close the screen

image-20230921122726971

  • Not logged in account prompt

xxxxxxxxxx
Login to your account before downloading

image-20230920201404369

4、Software Usage

Using STM32CubeMX is mainly used for STM32 configuration and initialization code generation.

xxxxxxxxxx
This article mainly introduces the common function options, and will not demonstrate the peripheral driver

4.1、Chip selection

  • Chip selection

image-20230921142135088

  • Introduction

image-20230921151934269

xxxxxxxxxx
Double-click the left mouse button on the specific chip model to enter the engineering interface

4.2、Pin layout and configuration

image-20230921152502928

xxxxxxxxxx
System Core:Configure DMA (DMA controller), GPIO (General Input and Output), IWDG (Independent watchdog), NVIC (Nested Vector Interrupt controller), RCC (Clock controller), SYS (system debug), WWDG (window watchdog)
Analog:Configure ADC (analog to digital conversion), DAC (digital to analog conversion) peripherals
Timers:Configure RTC(real-time clock) and TIM (timer) peripherals
Connectivity:Configure CAN, I2C, SPI, USART, USB and other connection peripherals
Multimedia:Configure I2S and other audio data transmission peripherals
Computing:Configure the CRC check peripheral
Middleware and Software Packs:Configure middleware such as RTOS

4.3、Clock configuration

image-20230921161000790

xxxxxxxxxx
Refer to the options involved in the red line

4.4、Project management

  • Project

image-20230921162000257

xxxxxxxxxx
STM32CubeMX can generate MDK-ARM, STM32CubeIDE, EWARM and other project files

MDK-ARM project file is generated here
  • Code Generator

image-20230921162739914

  • Advance Settings

image-20230921163144326

xxxxxxxxxx
Choose the library to use for your initialization code: the HAL library is demonstrated here

4.5、Generative engineering

image-20230921164457321

  • Open the project folder

image-20230921164551521

5、Project folder

5.1、Demo

①:Use the STM32CubeMX software to open the file and reconfigure the project

②:Corresponding MDK-ARM project file

image-20230921165148153

5.2、Writing the code

USER CODE must be somewhere between USER CODE BEGIN and User code END,otherwise the next project file generated with STM32CubeMX will remove code outside that location

image-20230921170855662

 

Common development tools
STM32CubeIDE Install - Use

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