Description
stm32samples is a collection of bare-metal code examples and complete projects for STM32 microcontrollers, covering the F0, F1, F3, F4 and G0 series. The projects are grouped by MCU series, and each one is a small application for a specific job. The register definitions come from the CMSIS header files of the modm-io cmsis-header-stm32 project. Examples include LED blinking, UART echo with and without DMA, USB CDC and USB HID, CAN bus bridges and relays, quadrature encoders, servo control, stepper motors with encoders, and LED matrix and seven-segment display drivers. There are sensor drivers too, including BMP180, BMP280, DS18x20, DHT22, DHT11 and TSYS01 temperature and pressure sensors over I2C or single-wire buses. Several projects target specific boards, such as Nucleo boards and the author's own test boards, and some work with SSI encoders or manage multiple fans. The repository's short notes describe each project, and its main value is as reference code for embedded developers who want to see how particular peripherals are driven.…
Highlights
- Bare-metal examples for STM32 F0, F1, F3, F4 and G0
- USB, CAN, UART and DMA projects
- Sensor drivers for temperature and pressure chips
- LED matrix and display drivers
- Register definitions from modm CMSIS headers
Ratings & Reviews
No ratings yet
Be the first to rate Stm32samples.
People also visit
Stm32samples FAQ
What is stm32samples?
A collection of bare-metal code samples and complete projects for STM32 microcontrollers.
Which chips are covered?
The STM32 F0, F1, F3, F4 and G0 series, with projects grouped by series in the repository.
What register definitions does it use?
The README says it uses CMSIS header files from the modm-io cmsis-header-stm32 project.
Are there sensor examples?
Yes. The README lists projects for sensors such as BMP180, BMP280, DS18, DHT22, DHT11 and TSYS01.
Is it open source?
The code is public on GitHub at eddyem/stm32samples.
What are the best Stm32samples alternatives?
Popular alternatives to Stm32samples include Esphome Lvgl, Esphome.io and Mycodo. See all Stm32samples alternatives







