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

4. Introduction to HAL library and LL library

Introduction to HAL library and LL library

Introduction to HAL library and LL library

Introduction to HAL library and LL library1、STM32 library overview1.1 Introduction to the standard library1.2. Features of the standard library2. HAL library2.1 Introduction to HAL library2.2 Characteristics of HAL library3. LL library3.1 Characteristics of LL library4. Comparison between HAL library and LL library

1、STM32 library overview

1.1 Introduction to the standard library

The Standard Peripheral Library is the most basic library provided by STMicroelectronics. It provides direct access to the low-level registers and peripherals of the STM32 microcontroller. The standard library is designed to provide a high degree of flexibility and low-level hardware control to meet stringent performance and resource requirements. Using the standard library, developers can directly manipulate registers to configure and control the functionality of the microcontroller, but this requires manually writing a large amount of low-level code. The standard library is suitable for applications with higher performance requirements and projects that have strict requirements on code size and efficiency.

1.2. Features of the standard library

advantage:

(1) Portable: The standard library functions are suitable for all C language compilers and can be used in different development environments.

(2) Good compatibility: The standard library functions have good compatibility on different platforms and can be easily transplanted and debugged.

(3) Easy to learn and use: The calling method of standard library functions is similar to the function calling method of C language, making it easy to learn and use.

shortcoming:

(1) Low execution efficiency: The standard library functions have low execution efficiency and are suitable for some application scenarios that do not require high performance.

(2) The functions are relatively simple: The functions provided by the standard library functions are relatively simple and cannot meet some high-level needs.

(3) Hardware abstraction layer is not supported: The standard library functions cannot directly operate the hardware, and the hardware abstraction layer needs to be implemented through the underlying driver.

The comparison between the standard library, HAL library and LL library is as shown below

Each of the three libraries has its own advantages and disadvantages. However, HAL and LL are currently the official libraries that are mainly recommended and maintained and updated. So we will focus on the HAL library and LL library.

2. HAL library

2.1 Introduction to HAL library

HAL is the abbreviation of Hardware Abstraction Layer, Chinese name: Hardware Abstraction Layer.

The HAL library is an abstraction layer embedded software launched by ST for STM32, which can better ensure the maximum portability of STM32 products. The library provides a consistent set of middleware components such as RTOS, USB, TCP/IP and graphics. The HAL library is open source code released under a non-restrictive BSD license (Berkeley Software Distribution). The middleware stack (USB Host and Device Library, STemWin) produced by ST comes with a licensing model that allows easy reuse, as long as it is used on ST's MCU chips. The middleware in the library (USB Host/Device Library, STemWin) protocol The stack is allowed to be modified at will and can be used repeatedly. All in all, the HAL library allows users to use code across chips, and different MCU chips (F1/F2...) can be used.

Development board pin assignment
Common development tools

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