yahboom
HomeTutorialsProduct
Solution
Blog
Online Store
About Us
EN/中文
Store
MicroROS Self-balancing Car📖
01.Introduction
  • 0.Unboxing and Reviewing
  • 1. Must read before use - learning route
  • 2. Introduction to LiDAR
  • 3. Balance car interface description
  • 4. Analysis of common problems
  • 5. Robot charging and battery precautions
02.Assembly tutorial
  • Robot assembly steps
03.Preparation
  • 0.Quick Start (Must Read)
  • 1.Write firmware
  • 2.How to install and use VM
  • 3.ESP32 communication board configuration parameters
  • 4.Connect to microROS agent
04.ROS-WiFi module configuration
  • 0.Serial port configuration WiFi instructions
  • 1.Use ROS-WiFi cam module(must read)
  • 2.Connect to ROS-WiFi cam module agent
  • 3.Camera image correction (optional)
05.Quick start control
  • 1.Keyboard remote control
  • 2.Handle remote control
06.ROS+OpenCV course
  • 1.OpenCV Getting started
  • 2.Geometric transformation
  • 3.Image processing and drawing text line segments
  • 4.Image beautification
07.Mediapipe course
  • 1. Hand detection
  • 2. Posture detection
  • 3. Overall inspection
  • 4. Face detection
  • 5. Face recognition
  • 6. Facial effects
  • 7. 3D object recognition
  • 8. Brush
  • 9. Finger control
  • 10. Gesture recognition
08.Robot basic course
  • 1.Robot information release
  • 2.Robot keyboard control
  • 3.Robot handle control
  • 4.Robot state estimation
  • 5.Line speed calibration
  • 6.Angular velocity calibration
  • 7.Robot URDF model
09.Lidar course
  • 1.Lidar avoid
  • 2.Lidar following
  • 3.Lidar guard
  • 5.Gmapping mapping
  • 6.Cartographer mapping
  • 7.Navigation2 navigation avoid
  • 8.Navigation2 fast relocation navigation
  • 9.ROS Robot APP mapping
  • 10.ROS Robot APP navigation
10.Robot visual interaction
  • 1.Color tracking
  • 2.Object recognition and tracking
  • 3.Face recognition tracking
  • 4.Autonomous driving line patrol
  • 5.QR code motion control
  • 6.Gesture control car movement
  • 7.Palm control car movement
  • 8.Gesture control car action group
  • 9.Palm recognition and tracking
  • 10.Human body posture recognition and tracking
11.Multi-machine course
  • 1.Multi-machine handle control
  • 2.Multi-machine keyboard control
  • 3.Multi-machine navigation
  • 4.Multi-machine rapid relocation navigation
12.STM32 balancing case
01.Environment construction and development
  • 13.Window Watchdog (WWDG)
  • 01.MDK-ARM installation
  • 02.STM32CubeIDE installation
  • 03.Common driver installation
  • 04.Download the program
  • 05.MDK-ARM project usage
  • 06.Program simulation
02.STM32 getting started course
  • 01.Project creation
  • 02.LED Control(GPIO)
  • 03.Buzzer control(GPIO)
  • 04.Button control(EXTI)
  • 05.Serial communication(USART)
  • 06.Voltage detection(ADC)
  • 07.Basic timer(TIM)
  • 08.Universal timer(TIM)
  • 09.Advanced Timer(TIM)
  • 10.I2C Communication(I2C)-OLED
  • 11.SPI communication(SPI)-2.4G handle
  • 12.Independent Watchdog (IWDG)
  • 14.DMA-USART
  • 15.DMA-I2C
03.STM32 expansion course
  • 01.Battery voltage detection (ADC)
  • 02.Ultrasonic module-measuring distance (TIM)
  • 03.Motor drive+encoder (TIM)
  • 04.OLED Data-Display(I2C)
  • 05.MPU6050-Data Read (I2C)
04.Robot car PID control course
  • 01.PID basic concept
  • 02.PID example analysis
  • 03.P, PI, PD controller theory
  • 04.Position PID
  • 05.Incremental PID
  • 06.Cascade PID
  • 07.Balance principle of car
  • 08.Car upright control (PD)
  • 09.Car speed ​​control (PI)
  • 10.Car steering control (PD)
  • 11.Got angle and angular velocity (DMP algorithm)
  • 12.Got angle and angular velocity (Kalman filter algorithm)
  • 13.Got angle and angular velocity(Complementary filter algorithm)
05.Robot car basic course
  • 01.Car parameter adjustment
  • 02.Ultrasonic obstacle avoidance
  • 03.Ultrasonic follow
  • 04.Bluetooth remote control
  • 05.Load balance
  • 06.Radar obstacle avoidance
  • 07.Radar guard
  • 08.Radar follow
  • 09.Radar patrol
  • 10.Radar wall following go in a straight line
  • 11.Radar tracking wall multiple walls
06.Robot car LQR control
  • Balance car LQR high-level control
07.Circuit design
  • 01.Overall circuit design
  • 02.STM32 minimum system
  • 03.Serial port circuit design
  • 04.Power circuit design
  • 05.MPU6050 Circuit Design
  • 06.Motor drive circuit design
08.Mathematical model
  • Balance car mathematical model
13.Linux basic course
  • 1.Introduction to Linux system
  • 2.Ubuntu file system
  • 3.Ubuntu common commands
  • 4.Ubuntu common editors
  • 5.Ubuntu software operation commands
  • 6.Virtual machine installation
  • 7.SSH remote control
  • 8.VNC remote control
  • 9.Transfer files remotely
  • 10.Driver library and communication
  • 11.Static IP and hotspot mode
  • 12.Bind device ID
  • 13.Capacity expansion and resource allocation
  • 14.Update system software sources
  • 15.Set root user password
  • 16.sudo free password
  • 17.Connect to WiFi network
  • 18.View system version
  • 19.Customized service management
  • 20.Back up system image
14.Docker course
  • 1. Overview and installation
  • 2. Common commands
  • 3. Docker images deeply understand and publish images
  • 4. Docker hardware interaction and data processing
  • 5. Enter the bot's docker container
15.ROS2 basic course
  • 1.Introduction to ROS2
  • 2.ROS2 install Humble
  • 3.ROS2 development environment
  • 4.ROS2 workspace
  • 5.ROS2 function package
  • 6.ROS2 node
  • 7.ROS2 topic communication
  • 8.ROS2 service communication
  • 9.ROS2 action communication
  • 10.ROS2 custom interface message
  • 11.ROS2 parameter service case
  • 12.ROS2 meta-function package
  • 13.ROS2 distributed communication
  • 14.ROS2 DDS
  • 15.ROS2 time related API
  • 16.ROS2 common command tools
  • 17.ROS2 rviz2 use
  • 18.ROS2 rqt toolbox
  • 19.ROS2 Launch startup file configuration
  • 20.ROS2 recording and playback tool
  • 21.ROS2 URDF model
  • 22.ROS2 Gazebo simulation platform
  • 23.ROS2 TF2 coordinate transformation
Download
  • RemoteCtrl_APP(Android)
  • Mapping_APP(iOS_Android)
  • Code
  • Hardware Information
  • software tools
  • 3D model file
  • Instruction manual
  • VM image file
  • ROS2_Basic_VM
Download ZIP

Welcome to MicroROS Self-balancing Car repository

02.STM32CubeIDE installation

STM32CubeIDE installation

STM32CubeIDE installation1. Software Download1、Software download2. Select the platform3. Fill in the information2. Software installation1. Open the installation package2. Installation process-settings3. Software Configuration1. Open the application2. Register-Login account3. Install the firmware package4. Software Usage1. Create a new project2. Chip selection3. Project settings4. Pin layout and configuration SYS - RCC 5. Clock configuration6. Project management7. Generate initialization code8. Write code9. Compile code10. Create a new project again5. Common ProblemsEncoding format problem

STM32CubeIDE is a free software, the tutorial demonstrates the installation and use of the software!

The [Attachment → Software Tools] in the document provides an installation package, you can skip the download step and install it directly

1. Software Download

1、Software download

ST office website:https://www.st.com/content/st_com/en/stm32cubeide.html

image-20240830120606898

2. Select the platform

  • Platform: Windows

image-20240830120624603

3. Fill in the information

  • Agree to the agreement

image-20240830120653420

  • Fill in the information

image-20240830120708472

xxxxxxxxxx
The email address needs to be filled in accurately, and the software download link will be sent to you via email
  • Submission completed

image-20240830120725782

  • Download the installation package via email

image-20230921173555796

​x
Click the link to jump to the official website, and the website will automatically pop up a pop-up window for downloading the software compressed package

2. Software installation

1. Open the installation package

  • Administrator

Open the installation package as an administrator

image-20240821172641461

xxxxxxxxxx
If you open the software installation package and see "NSIS ERROR: error "Launching installer" error message:
Please put the installation package in a path without Chinese characters

2. Installation process-settings

  • Next

image-20230921174734406

  • Agree to the agreement → I agree

image-20230921174827723

  • Installation location → Next → Install

xxxxxxxxxx
It is recommended to use the default installation location of the software and the path should not contain Chinese characters

image-20230921175019951

image-20230921175121934

xxxxxxxxxx
Check the option to install ST-Link and J-Link drivers
  • Install driver

image-20230921175245637

  • Installation waiting → Next

image-20230921175518924

  • Finish

image-20230921175801203

3. Software Configuration

Be familiar with the software-related options and functions.

1. Open the application

  • Left mouse button: Double-click the desktop application

image-20230921175945830

  • Select workspace

image-20240821173105251

xxxxxxxxxx
You can create a new folder yourself, and the folder path cannot contain Chinese characters

image-20240821173159091

2. Register-Login account

The new version of STM32CubeIDE requires a registered account to log in before downloading the firmware package and using the software normally:

image-20230921180902783

3. Install the firmware package

  • Help → Manage embedded software packages

image-20230921181435546

  • Install the latest firmware package of the STM32F1 series

image-20230921181947516

xxxxxxxxxx
1. The chip firmware package cannot be installed without logging in
2. To install or uninstall, select the box in front of the chip firmware package. Clicking this option will not have installation and uninstall options
  • Waiting for download

image-20230921182157454

  • Close the interface

image-20230921182233264

4. Software Usage

STM32CubeIDE integrates the STM32CubeMX function, which can be used for pin configuration, as well as direct code writing and debugging.

1. Create a new project

image-20230921183202024

2. Chip selection

  • Chip selection and interface

Search for STM32F103RCT6

image-20240821174213278

3. Project settings

image-20240821174336509

xxxxxxxxxx
Default configuration is sufficient, and the project file name can be customized

image-20240821174411429

image-20240821174433911

image-20240821174459660

4. Pin layout and configuration

image-20240821174550492 SYS image-20240821174645467 - RCC image-20240821174727982 5. Clock configuration

image-20240821174908961

xxxxxxxxxx
Refer to the options involved in the red line

6. Project management

  • Project: Project

image-20240821175051963

xxxxxxxxxx
Using STM32CubeIDE, IDE projects cannot be exported (such as exporting MDK-ARM project files). If you need to export other IDE projects, switch to STM32CubeMX operation!
  • Code Generator: Code Generation

image-20240821175127807

  • Advance Settings: Advanced Settings

image-20240821175211984

xxxxxxxxxx
Select the library used for the initialization code: HAL library is demonstrated here

7. Generate initialization code

Click the code generation or save button to generate initialization code

image-20240821175257208

xxxxxxxxxx
Using the Ctrl+S shortcut key to save will also generate initialization code

image-20240821175400772

8. Write code

User code must be located between USER CODE BEGIN and USER CODE END, otherwise the next time you use the STM32CubeMX peripheral configuration function, the code outside this position will be deleted.

xxxxxxxxxx
Other positions also need to be written in the area between *** BEGIN and *** END!

image-20240821175655872

9. Compile code

image-20240821180145746

10. Create a new project again

Demonstrates how to create a new project in a project file. This method is often used in actual development to create a new project

image-20240821175924311

For the following operations, please refer to the previous steps.

xxxxxxxxxx
The newly added project will be displayed in the workspace on the left

5. Common Problems

Encoding format problem

Tip: Project '***' has no explicit encoding set

Solution: Right-click the project name → Modify file encoding format → UTF-8

image-20240821180224199

image-20240821180307633

MDK-ARM installation
Common driver installation

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