HC-SR04 Ultrasonic Sensor with Raspberry Pi Pico using MicroPython

HC-SR04 Ultrasonic Sensor with Raspberry Pi Pico

This tutorial shows how to interface the HC-SR04 ultrasonic sensor with Raspberry Pi Pico for contactless distance measurement using MicroPython. The HC-SR04 is a popular and low-cost ultrasonic distance sensor capable of measuring distances from 2 cm to 400 cm with an accuracy of approximately 3 mm. It operates at 5V and communicates using a … Read more

HC-SR04 Ultrasonic Sensor with STM32 Nucleo using STM32CubeIDE

HC-SR04 Ultrasonic Sensor with STM32 Nucleo using STM32CubeIDE

In this tutorial, we will learn to use or interface HC-SR04 ultrasonic sensor with STM32 Nucleo and program it using STM32CubeIDE and HAL libraries. At first, we will take a look at the ultrasonic sensor, then interface it with our STM32 Nucleo and program it for contactless distance measurement using STM32CubeIDE. For demonstration, we will … Read more

HC-SR04 Ultrasonic Sensor Interfacing with TM4C123 – Distance Measurement Example

TM4C123 Tiva Launchpad with HC-SR04 ultrasonic sensor interfacing example

In this tutorial, we will learn to interface HC-SR04 ultrasonic sensor with TM4C123 Tiva C Launchpad. HC-SR04 is a contactless ultrasonic based distance or range measurement sensor. It provides an output signal in the form of active high signal and the duration for which the output signal remains high depends on the distance between the … Read more

HC-SR04 Ultrasonic Sensor with STM32 Blue Pill using STM32CubeIDE

STM32 Blue Pill with Ultrasonic Sensor Demo

In this tutorial, we will learn to use HC-SR04 ultrasonic sensor with STM32 Blue Pill and program it using STM32CubeIDE and HAL libraries. At first, we will take a look at the ultrasonic sensor, then interface it with our STM32 Blue Pill and program it for contactless distance measurement using STM32CubeIDE. For demonstration, we will … Read more

MicroPython HC-SR04 Ultrasonic Sensor with ESP32 and ESP8266

HC-SR04 Ultrasonic Sensor with ESP32 and ESP8266 using MicroPython OLED

This tutorial shows how to interface HC-SR04 ultrasonic sensors with ESP32 and ESP8266 NodeMCU for contactless distance measurement using MicroPython. First, we will learn to interface HC-SR04 with ESP32 and ESP8266 NodeMCU. After that, we will see the MicroPython example code to measure distance and display it on the MicroPython terminal. Secondly, we will see a … Read more

HC-SR04 Ultrasonic Sensor with ESP32 – Measure Distance

Ultrasonic sensor HC-SR04 display distance on OLED with ESP32

This tutorial shows how to interface HC-SR04 or HY-SR05 Ultrasonic sensors with ESP32 for contactless distance measurement. First, we will learn to interface  HC-SR04 with ESP32. After that, we will see example codes with or without the Ultrasonic sensor Arduino library. Firstly, we will see an example to control an LED with ESP32 and an … Read more