Learn how to control the 28BYJ‑48 stepper motor using an STM32 MCU and ULN2003 driver, with HAL and CubeMX setup. Includes wiring diagrams, code, and wave/full/half‑drive modes explained.
Microcontroller Tutorials with Code from Scratch
Learn STM32, ESP32, and embedded systems by writing code from scratch using datasheets and reference manuals. All tutorials are tested on actual hardware to help you build reliable, real-world projects with full control and understanding.
What’s New in STM32
How to Interface DHT11 Temperature and Humidity Sensor with STM32 using HAL
Learn how to connect and read data from a DHT11 temperature and humidity sensor using STM32 and HAL libraries. Includes circuit, timing details, and complete code examples.
How to Control a Servo Motor with STM32 using PWM (HAL + CubeMX Tutorial)
Learn how to control a servo motor using STM32 and PWM with HAL library and CubeMX. Step-by-step guide with circuit, code, and timer setup.
Interfacing ADXL345 Accelerometer with STM32 via I2C – Complete Tutorial with Code
Learn how to interface the ADXL345 3-axis accelerometer with STM32 using I2C. This step-by-step tutorial includes CubeMX setup, HAL-based code, register configuration, and real-time data display on OLED.
STM32 DHT22 Temperature & Humidity Sensor with HAL
Learn how to interface the DHT22 sensor with STM32 using HAL libraries to accurately measure temperature and humidity with microsecond precision.
STM32 Microsecond Delay Using HAL Timer – delay_us Example in C
Learn STM32 microsecond delay using HAL and timer. Includes tested delay_us code, timer setup, and oscilloscope results. Ideal for time-critical embedded tasks.