HCSR04+ Better than the regular HCSR04

In this tutorial, I will talk about the new HCSR04+ which allows you to interface with 3.3V interfaces without a voltage regulator as opposed to the regular HCSR04. Both sensors are available at our Amazon Store Front at ShillehTek.

HCSR04+ (Compatible with 3.3 and 5V logic)

Link to Purchase

Regular HCSR04 (Compatible with only 5V logic)

Those of you who have been playing around with Arduino and Raspberry Pi electronics are most definitely familiar with the HC-SR04 ultrasonic sensor. The HC-SR04 is a popular ultrasonic distance sensor that is useful for measuring distances up to several meters. It works by emitting an ultrasonic pulse and then measuring the time it takes for the pulse to bounce off an object and return to the sensor. This time measurement can then be used to calculate the distance to the object.

The HC-SR04 is commonly used in robotics, automation, and other applications where distance measurement is important. For example, it can be used to build a robot that can navigate autonomously and avoid obstacles. The sensor itself is very easy to use and set up.

There are multiple versions of the HC-SR04 sensor: In this project, I show one that operates at 3.3-5V volts and one that only operates at 5 volts. The main difference between the two versions is of course the voltage level at which they operate. The setup of using either sensor is the same. I have another tutorial where I show how to use these with the Raspberry Pi Pico (here). However, in that tutorial, I used the 5V version, which should not be used with the Pico...

The Plus version is useful in applications where the microcontroller or microprocessor operates at 3.3 volts. It can be directly connected to the microcontroller's GPIO pins without the need for level shifting or voltage regulation. This makes it easier to integrate into projects that use 3.3V logic. This is great for the Pico, Pico W, versions of the Arduino, ESP32, and more!

The 5V version you see in the second photo is more common and is useful in applications where the microcontroller or microprocessor operates at 5 volts. It can also be directly connected to the microcontroller's GPIO pins without the need for level shifting or voltage regulation. Level shifting refers to the process of converting a signal from one voltage level to another. This is often necessary when connecting two circuits that operate at different voltage levels. For example, if you have a circuit that operates at 3.3V and you need to connect it to a circuit that operates at 5V, you would need to use a level shifter to convert the 3.3V signal to a 5V signal. Note that the Plus version can also be plugged into the 5V microcontrollers because it has a built-in voltage regulator that makes your life a lot easier!

In summary, the HC-SR04 is a useful ultrasonic distance sensor that can be used in a wide range of applications. The new HCSR04+ can ease setup if you do not want to deal with level shifting or voltage regulation, and it is relatively the same price as its ancestor.

I hope people are more familiar with the new Plus version and can find use cases for their applications. Finally, you can learn how to get readings from either version by watching my Youtube Video. Thanks for reading and I hope you learned something.

Create a free account to access full content.

All access to code and resources on ShillehTek.

Signup Now

Already a member? Sign In

Explore More on Our Blog

How to Post to Reddit Using Python

How to Post to Reddit Using Python

Post to reddit automatically using a Python script.

How to Create a Time-Lapse Video with a Raspberry Pi Camera

How to Create a Time-Lapse Video with a Raspberry Pi Camera

Learn how to make a timelapse with your Raspberry Pi in Python.

How to Integrate the MPU6050 with the STM32 Blue Pill

How to Integrate the MPU6050 with the STM32 Blue Pill

Learn how to measure acceleration with the STM32 and the MPU6050 in the Arduino IDE.

Getting Started with STM32 Blue Pill in Arduino IDE Using a USB to TTL Converter — Write Your First Program

Getting Started with STM32 Blue Pill in Arduino IDE Using a USB to TTL Converter — Write Your First Program

This comprehensive tutorial will guide you through the process of setting up and programming the STM32 Blue Pill...

Automate Task Scheduling in AWS with Lambda, Step Functions, and CloudWatch

Automate Task Scheduling in AWS with Lambda, Step Functions, and CloudWatch

In this tutorial, I'll show you how to automatically schedule tasks in AWS at regular intervals using AWS...

Implementing Google reCAPTCHA in a Simple React and Node.js App

Implementing Google reCAPTCHA in a Simple React and Node.js App

Learn how to protect your React applications from bots and spam with Google reCAPTCHA integration! This step-by-step tutorial...

AWS Lambda Tutorial: Using Selenium with Chromedriver in Python

AWS Lambda Tutorial: Using Selenium with Chromedriver in Python

In this tutorial, I will guide you through the process of running Selenium with ChromeDriver inside an AWS...

How to Connect MLX90614 Infrared Thermometer to Raspberry Pi Pico W: MicroPython Tutorial!

How to Connect MLX90614 Infrared Thermometer to Raspberry Pi Pico W: MicroPython Tutorial!

Learn how to use the MLX90614 with the Raspberry Pi Pico W and get infrared values in MicroPython.

Raspberry Pi Pico/Pico W Free Simulator

Raspberry Pi Pico/Pico W Free Simulator

Discover how to simulate Raspberry Pi Pico projects using Wokwi, a free online simulator for Arduino and MicroPython....

Interfacing the MPU6050 with Raspberry Pi Pico W in C++

Interfacing the MPU6050 with Raspberry Pi Pico W in C++

Interface with the MPU6050 using the Raspberry Pi Pico W in C++.

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.