Skip to product information
1 of 8

ShillehTek HC-SR04 Ultrasonic Distance Sensor with RGB Light

ShillehTek HC-SR04 Ultrasonic Distance Sensor with RGB Light

Regular price $7.99 USD
Regular price Sale price $7.99 USD
Sale Sold out
Tax included. Shipping calculated at checkout.

HC-SR04 ultrasonic distance sensor with RGB LEDs provides 2–400 cm range and a 6-LED visual indicator; ideal for robotics, obstacle detection, and DIY Raspberry Pi or Arduino projects (5V powered).

View full details

The SHILLEHTEK HC-SR04 Ultrasonic Distance Sensor with RGB Light combines a reliable HC-SR04 ultrasonic module for straightforward distance measurement with an integrated RGB module of six LEDs that can be driven by common libraries to provide color-coded proximity feedback. It runs from a 5V DC supply and operates across a broad range of approximately 2 cm to 400 cm (1"–13 ft), suitable for robotics, obstacle detection, and DIY sensing projects. The unit is broadly compatible with popular microcontrollers and single-board computers, including Arduino and Raspberry Pi (Pico and Pico W), and can serve as a visual distance or status indicator. Practical, maker-focused, and easy to integrate into existing systems.

No additional feature info available.

No documents available. Please contact us for more information.

Product Overview

The SHILLEHTEK HC-SR04 Ultrasonic Distance Sensor with RGB Light combines a reliable HC-SR04 ultrasonic module for straightforward distance measurement with an integrated RGB module of six LEDs that can be driven by common libraries to provide color-coded proximity feedback. It runs from a 5V DC supply and operates across a broad range of approximately 2 cm to 400 cm (1"–13 ft), suitable for robotics, obstacle detection, and DIY sensing projects. The unit is broadly compatible with popular microcontrollers and single-board computers, including Arduino and Raspberry Pi (Pico and Pico W), and can serve as a visual distance or status indicator. Practical, maker-focused, and easy to integrate into existing systems.

Product Overview

The SHILLEHTEK HC-SR04 Ultrasonic Distance Sensor with RGB Light combines a reliable HC-SR04 ultrasonic module for straightforward distance measurement with an integrated RGB module of six LEDs that can be driven by common libraries to provide color-coded proximity feedback. It runs from a 5V DC supply and operates across a broad range of approximately 2 cm to 400 cm (1"–13 ft), suitable for robotics, obstacle detection, and DIY sensing projects. The unit is broadly compatible with popular microcontrollers and single-board computers, including Arduino and Raspberry Pi (Pico and Pico W), and can serve as a visual distance or status indicator. Practical, maker-focused, and easy to integrate into existing systems.

Features & Specs

[Ultrasonic Distance Sensor]: Accurate HC-SR04 module measures distance using ultrasonic pulses for obstacle detection and rangefinding.

[RGB Visual Indicator]: Onboard RGB lighting provides clear color feedback to represent measured distance or status.

[6-LED RGB Module]: Six integrated LEDs deliver vibrant color output compatible with common LED libraries.

[Wide Detection Range]: Operates effectively between 2 cm and 400 cm for close and long-range measurements.

[5V Power Supply]: Runs on a standard 5V DC supply for easy integration with typical development boards.

[Microcontroller Compatibility]: Works with Raspberry Pi (including Pico/Pico W), Arduino, and other popular microcontrollers.

Features & Specs

[Ultrasonic Distance Sensor]: Accurate HC-SR04 module measures distance using ultrasonic pulses for obstacle detection and rangefinding.

[RGB Visual Indicator]: Onboard RGB lighting provides clear color feedback to represent measured distance or status.

[6-LED RGB Module]: Six integrated LEDs deliver vibrant color output compatible with common LED libraries.

[Wide Detection Range]: Operates effectively between 2 cm and 400 cm for close and long-range measurements.

[5V Power Supply]: Runs on a standard 5V DC supply for easy integration with typical development boards.

[Microcontroller Compatibility]: Works with Raspberry Pi (including Pico/Pico W), Arduino, and other popular microcontrollers.

Documents

Documents

Related Videos

Related Videos

Customer Reviews

Based on 30 reviews
67%
(20)
23%
(7)
7%
(2)
3%
(1)
0%
(0)
c
cdxcess
Only One Side of Light Working

Only one side of light is working, and there is no cable with this light so I will have to get a cable that fit. no documentation so just watch YouTube for help. I am returning this.I fix it Two side is working now, it was software problem

G
Granddad
Standard Jumpers DO NOT fit

This sensor should come with the proper wiring included. Standard jumper wires would not connect securely. I was in the middle of a project and did not have time to research what kind of harness was needed, nor wait to order one. It looks like it will be a cool little addition to projects but ya can't hook it up easily. I'd gladly pay a little more to either have a standard header on it OR the proper wiring/harness included.

j
joel olsen
It uses a 2.45mm pitch jst connector

The media could not be loaded.









I Haven't personally used Because one I received it.It seems to have a 5-pin female 2.45mm pitch JST connector on the back. Soon As I get a male JST connector I will post my thoughts on usability.OKI finally got around to connecting it to let you know you can really use the library.For changing the colors use the adafruit_neopixel.h library for arduino ide. It's actually nice and bright. Clear , And pretty easy to use. Once you get the hang of it, I definitely recommend

n
nour zaki
Hcsr04 with color

Cool how it measures distance and shows color!!!

P
Phil
Sensor only no instructions

This item is neat but the pins are very short and will barely work with breadboard connectors. The second thing is no instructions what so ever you can go on you tube but there is very little information I was kinda disappointed.

S
Sterling M. Smith
Great for tinkering with almost any microcontroller, mainly for hobbyists, though.

This is a fun little gadget, but it doesn't come with any instructions at all, only the device in a ESD bag and that's okay. Instructions aren't needed and I think they would actually make this less appealing based on other items of this type.All the information you need on it is online along with a variety of projects ready to go for just about any micro-controller card.It works by sending out ultrasonic waves and determining the distance to an object by the time before the echo is received, pretty much like sonar on a small scale.You could use it for a robot project that can sense walls, or if you calibrate it and adjust your code, you can make a fairly accurate measuring tool.I tested it out on an ESPP32 controller using a proximity detector I found online. It wasn't hard to wire up and I had a mini proximity detector that would sound an alarm on a little piezo buzzer when the distance got smaller. It was a little like playing "You're getting warmer" as the pitch went higher the closer you got to the sensor.It's a fun little tinkering gadget. It will mostly be something for anyone who likes to experiment with micro-controllers, but you could get several and design your own working robot that would avoid obstacles or map out a room. Lots of possibilities.Everything worked right out of the package after I set up the project and loaded the code.Overall, pretty cool for kids or adults who want to learn coding or general science. Five stars.

K
KMan
A Neat Upgrade to Ultrasonic Modules

It's great that this works with the code from a regular HC-SR04 ultrasonic module but with the added 6 NeoPixels. I made a little project where the NeoPixels change color depending on the distance read by the sensor.

G
Ghost Rider
RGB Module... Very Cool

The RGB lights on this module makes a typical module look high-tech and makes projects pop! It works like a standard sound sensor, but with lights! You can find all the libraries you need at Adafruit. I am currently using this on a desktop robotic arm project, and people think I am Tony Stark in his workshop! LOL!

A
A. Spradlin
Bling bling

A bog-standard ultrasonic sensor with RGB lights added. Worked no problem with the standard libraries available for the HC-SR04 (ESP32 and RPi is what I tested), with the addition of not having to source and place RGB LEDs for visual feedback. I think it would be a good upgrade or replacement for any of the various robot or car kits that use an HC-SR04 AND are programmable, preferably with a spare GPIO pin for the LEDs.

d
dg
Cool device, no docs

I'm still learning the Arduino environment, so I picked this up to continue my education. The functionality is nice, but I am more interested in the details of how to interface, how to program, etc. My impressions:- There are no docs included, so I am struggling to figure out how to make this work. Several of the other reviewers suggested that there are lots of tutorials on-line, and they are correct. However, the tutorials all expect either some minimum level of knowledge, or else leave out critical or important information, like where to find the specific libraries used.- Once I struggled through the tutorials and found one that I could make work, the interfacing is straightforward, though not as 'plug and play' as I hoped. Wiring up the module to my Arduino involves wiring up the module to my Arduino, not connecting some female header to a male header and pressing hard... Ok, I'm capable, I can do this...- After the wiring is complete, getting the program running is pretty straightforward. LEDs flash and numbers are appropriately received for distance. It works!Learning the Arduino environment is fun but challenging, and this module doesn't make it any easier. However, it is functionally pretty cool and does what it is intended to do. Recommended!

Customer Reviews

Based on 30 reviews
67%
(20)
23%
(7)
7%
(2)
3%
(1)
0%
(0)
c
cdxcess
Only One Side of Light Working

Only one side of light is working, and there is no cable with this light so I will have to get a cable that fit. no documentation so just watch YouTube for help. I am returning this.I fix it Two side is working now, it was software problem

G
Granddad
Standard Jumpers DO NOT fit

This sensor should come with the proper wiring included. Standard jumper wires would not connect securely. I was in the middle of a project and did not have time to research what kind of harness was needed, nor wait to order one. It looks like it will be a cool little addition to projects but ya can't hook it up easily. I'd gladly pay a little more to either have a standard header on it OR the proper wiring/harness included.

j
joel olsen
It uses a 2.45mm pitch jst connector

The media could not be loaded.









I Haven't personally used Because one I received it.It seems to have a 5-pin female 2.45mm pitch JST connector on the back. Soon As I get a male JST connector I will post my thoughts on usability.OKI finally got around to connecting it to let you know you can really use the library.For changing the colors use the adafruit_neopixel.h library for arduino ide. It's actually nice and bright. Clear , And pretty easy to use. Once you get the hang of it, I definitely recommend

n
nour zaki
Hcsr04 with color

Cool how it measures distance and shows color!!!

P
Phil
Sensor only no instructions

This item is neat but the pins are very short and will barely work with breadboard connectors. The second thing is no instructions what so ever you can go on you tube but there is very little information I was kinda disappointed.

S
Sterling M. Smith
Great for tinkering with almost any microcontroller, mainly for hobbyists, though.

This is a fun little gadget, but it doesn't come with any instructions at all, only the device in a ESD bag and that's okay. Instructions aren't needed and I think they would actually make this less appealing based on other items of this type.All the information you need on it is online along with a variety of projects ready to go for just about any micro-controller card.It works by sending out ultrasonic waves and determining the distance to an object by the time before the echo is received, pretty much like sonar on a small scale.You could use it for a robot project that can sense walls, or if you calibrate it and adjust your code, you can make a fairly accurate measuring tool.I tested it out on an ESPP32 controller using a proximity detector I found online. It wasn't hard to wire up and I had a mini proximity detector that would sound an alarm on a little piezo buzzer when the distance got smaller. It was a little like playing "You're getting warmer" as the pitch went higher the closer you got to the sensor.It's a fun little tinkering gadget. It will mostly be something for anyone who likes to experiment with micro-controllers, but you could get several and design your own working robot that would avoid obstacles or map out a room. Lots of possibilities.Everything worked right out of the package after I set up the project and loaded the code.Overall, pretty cool for kids or adults who want to learn coding or general science. Five stars.

K
KMan
A Neat Upgrade to Ultrasonic Modules

It's great that this works with the code from a regular HC-SR04 ultrasonic module but with the added 6 NeoPixels. I made a little project where the NeoPixels change color depending on the distance read by the sensor.

G
Ghost Rider
RGB Module... Very Cool

The RGB lights on this module makes a typical module look high-tech and makes projects pop! It works like a standard sound sensor, but with lights! You can find all the libraries you need at Adafruit. I am currently using this on a desktop robotic arm project, and people think I am Tony Stark in his workshop! LOL!

A
A. Spradlin
Bling bling

A bog-standard ultrasonic sensor with RGB lights added. Worked no problem with the standard libraries available for the HC-SR04 (ESP32 and RPi is what I tested), with the addition of not having to source and place RGB LEDs for visual feedback. I think it would be a good upgrade or replacement for any of the various robot or car kits that use an HC-SR04 AND are programmable, preferably with a spare GPIO pin for the LEDs.

d
dg
Cool device, no docs

I'm still learning the Arduino environment, so I picked this up to continue my education. The functionality is nice, but I am more interested in the details of how to interface, how to program, etc. My impressions:- There are no docs included, so I am struggling to figure out how to make this work. Several of the other reviewers suggested that there are lots of tutorials on-line, and they are correct. However, the tutorials all expect either some minimum level of knowledge, or else leave out critical or important information, like where to find the specific libraries used.- Once I struggled through the tutorials and found one that I could make work, the interfacing is straightforward, though not as 'plug and play' as I hoped. Wiring up the module to my Arduino involves wiring up the module to my Arduino, not connecting some female header to a male header and pressing hard... Ok, I'm capable, I can do this...- After the wiring is complete, getting the program running is pretty straightforward. LEDs flash and numbers are appropriately received for distance. It works!Learning the Arduino environment is fun but challenging, and this module doesn't make it any easier. However, it is functionally pretty cool and does what it is intended to do. Recommended!