Uploaded February 2024 | Updated December 2026, 3 hours ago
Measure distance with an HC-SR04 ultrasonic sensor and the STM32 Nucleo in STM32CubeIDE, using input capture/timers to read the echo pulse.
🛠Gear used in this video (Amazon affiliate links):
• STM32 Nucleo Board (NUCLEO-F103RB): amzn.to/4xr7FLy
• HC-SR04 ultrasonic sensor: amzn.to/4e1KCzx
• USB Cable (Type-A to Mini-B): amzn.to/4v0cTwi
• Breadboard: amzn.to/4xnppYn
• Jumper Wires: amzn.to/3PXJUKu
As an Amazon Associate we earn from qualifying purchases.
microcontrollerslab.com/hc-sr04-ultrasonic-sensor-stm32-nucleo-stm32cubeide/(opens in a new tab
Interface HC-SR04 Ultrasonic Sensor with STM32 Nucleo STM32CubeIDE and HAL libraries with distance measurement example with OLED
Measure distance with an HC-SR04 ultrasonic sensor and the STM32 Nucleo in STM32CubeIDE, using input capture/timers to read the echo pulse.
🛠Gear used in this video (Amazon affiliate links):
• STM32 Nucleo Board (NUCLEO-F103RB): amzn.to/4xr7FLy
• HC-SR04 ultrasonic sensor: amzn.to/4e1KCzx
• USB Cable (Type-A to Mini-B): amzn.to/4v0cTwi
• Breadboard: amzn.to/4xnppYn
• Jumper Wires: amzn.to/3PXJUKu
As an Amazon Associate we earn from qualifying purchases.
microcontrollerslab.com/hc-sr04-ultrasonic-sensor-stm32-nucleo-stm32cubeide/(opens in a new tab
Interface HC-SR04 Ultrasonic Sensor with STM32 Nucleo STM32CubeIDE and HAL libraries with distance measurement example with OLED










