Embedded systems
STM32 Library Collection.
Eleven reusable C libraries for sensors, displays, and communication on STM32.
- MY ROLE
- Personal project · Embedded firmware development
- My contribution
- Maintained the C libraries and wrote the integration guides.
- Key result
- 11 standalone libraries with source code and package-level documentation.
The problem & my part.
These libraries cover recurring tasks in STM32 firmware, from reading orientation data to drawing on a display or decoding receiver channels. Each package has its own C sources, headers, and integration guide.
My contribution
I maintain the libraries and document the peripheral setup and integration steps for each package. The collection includes a CubeMX demo for the MAX7219 driver.
How the pieces connect.
- 01
Sensors and orientation
AHT10 reads temperature and humidity over I²C. The AH100B and TL740D decoders read orientation data from UART frames.
- 02
Display drivers
SSD1306 drives an OLED via I²C. MAX7219 controls cascaded LED matrices via SPI. Both provide functions for drawing and text.
- 03
Serial and radio communication
CRSF and S.Bus decode RC receiver channels. SoftUART uses GPIO and a timer for software UART, while LoRa handles SX127x packet transfers over SPI.
- 04
CAN and IP networking
VESC CAN decodes motor-controller status over bxCAN. UDP Client RTOS exchanges IPv4 datagrams using lwIP and CMSIS-RTOS2.
Inside the work.
Integrating a library
Each README identifies the files to add to a firmware target and the peripherals or middleware to configure. HAL-based drivers use peripheral handles initialized by the application.
LED matrix demo
The STM32F103 demo shows text, graphics, and scrolling across four chained LED matrices. It includes a CubeMX configuration and a CMake build.
UDP worker and queue
One RTOS worker manages the lwIP connection. Other tasks submit outgoing datagrams to a bounded queue, and callbacks handle received data.
What came together.
Developers can integrate each package independently and use the documented prerequisites and examples to bring it into an existing STM32 firmware project.
Results at a glance
- 11 C libraries
- Standalone packages cover sensors, display controllers, RC decoders, serial and radio links, CAN telemetry, and UDP.
- MAX7219 demo
- A complete STM32F103 example with a four-module display configuration.
- MAX7219 regression tests
- Host-side tests exercise the driver’s scrolling state.
A NOTE ON SCOPE
See the package READMEs for the applicable licenses and upstream notices, including the SSD1306 GPL and SoftUART BSD 3-Clause terms.
NEXT PROJECT
