yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
STM32-BoardCar📖
0. Get started quickly
  • 0.ReadMe
  • 1. Installation Instructions
  • 2. Version configuration
  • 3. Smart car installation video
  • 4. Precautions for use
1. Introduction to STM32 development 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. 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
3. Development board basic tutorial
  • 1. RGB searchlight (GPIO)
  • 2. Buzzer control (GPIO)
  • 3. Button control (EXTI)
  • 4. Serial communication (UASRT)
  • 5. Voltage detection (ADC)
  • 6. Internal temperature sensor(ADC)
  • 7. Independent watchdog(IWDG)
  • 8. Window watchdog(WWDG)
  • 9. Basic timer (TIM6)
  • 10. Universal Timer (TIM3)
  • 11. Advanced timers (TIM1)
  • 12. I2C Communication (IIC)
  • 13. Off-chip Flash (SPI)
  • 14. On-chip Flash (Flash)
  • 15. DMA:USART
  • 16. DMA:SPI
  • 17. DMA:I2C
  • 18. USB communication
  • 19. USB analog U disk
  • 20. FreeRTOS
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.K230 Vision Module
  • 11.AI voice interaction integration module
5. Robot car tutorials
  • 1. Car line patrol
  • 2. Ultrasonic follow
  • 3. Ultrasonic obstacle avoidance
  • 4. Ultrasonic obstacle avoidance (servo gimbal version)
  • 5. Infrared sensor obstacle avoidance
  • 6. Infrared remote control
  • 7. PS2 handle remote control
  • 8.K230 face tracking on PTZ
  • 9.K230 color tracking
  • 10.K230 Color Line Patrol
  • 11.K230 QR code command
  • 12.K230 machine code tracking
  • 13.K230 road sign indication action (voice)
  • 14.K230 color response (voice)
  • 15.K230 gesture control (voice)
  • 16.K230 Rock-Paper-Scissors Game (Voice)
6. Operation video
  • 1-How to install STM32CubeIDE software
  • 2-How to create Demo project
  • 3-How to download code into STM32 robot car
  • 4-How to open and compile a code file for STM32
  • 5-About IR control and Charge battery
Download
  • Code
  • SCH
  • Software File
  • STM32 Chip DataSheet
  • Installation manual
Download ZIP

Welcome to STM32-BoardCar 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

​x
RGB project is the engineering source code of [3.1 RGB searchlight]

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
RGB searchlight (GPIO)

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