HC-SR04 Ultrasonic Distance Sensor with RGB Light for Arduino, Raspberry Pi & Pico

SKU 06-EZZB-HL9Q

$7.99 USD Shipping & tax calculated at checkout
In stock· Order by 3pm ET and it ships today

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).

  • Free Ground Shipping U.S. orders $35+
  • Ships from USA Domestic fulfillment
  • 30-day returns Free defect replacement
  • 7-day support Fast email replies
Frequently bought together
ShillehTek HC-SR04 Ultrasonic Distance Sensor with RGB light emitting colorful spectrum HC-SR04 Ultrasonic Distance Sensor with RGB Light for Arduino, Raspberry Pi & Pico ★★★★★ (30) $7.99 This item
Total for 4 items
$27.46

Products related to this item

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.

Frequently asked questions

It is broadly compatible with Arduino boards and Raspberry Pi Pico or Pico W projects. Use it with a controller that can provide a 5V supply and read the ultrasonic sensor’s digital trigger and echo signals.
ShillehTek supplies this as a ready-to-use module with headers already soldered. For setup, connect power, ground, the HC-SR04 trigger and echo lines, and the RGB LED control connection according to your controller and library.
The module runs from a 5V DC supply. The HC-SR04 distance section uses digital trigger and echo signals; when using 3.3V-only GPIO boards, confirm the echo signal is safely matched to the controller’s input limits.
It is well suited for robot obstacle detection, proximity alerts, and DIY distance sensing. The integrated six-LED RGB module can provide color-coded feedback, such as changing colors as an object moves closer or farther away.
Check for a stable 5V supply, shared ground, correct trigger and echo wiring, and a clear path to the target. Ultrasonic sensors can give inconsistent results on soft, angled, very small, or acoustically reflective surfaces.

Have other questions?

Chat with our US-based team — we usually reply fast.

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

Full Product Manual ShillehTek HC-SR04 Ultrasonic Distance Sensor with RGB Light | ShillehTek Product Manual In-depth setup guide with wiring, code examples, and troubleshooting.

Related Tutorials

Raspberry Pi Pico HC-SR04+: 3.3V GPIO compatible
Oct 22, 2023Tutorial

Raspberry Pi Pico HC-SR04+: 3.3V GPIO compatible

Compare HC-SR04+ vs HC-SR04 to choose a 3.3V GPIO friendly ultrasonic distance sensor for boards like Raspberry Pi Pi...
Pico W HC-SR04 RGB: Distance Colors in MicroPython
Oct 22, 2023Tutorial

Pico W HC-SR04 RGB: Distance Colors in MicroPython

Build a Pico W + HC-SR04 RGB (RUS-04) distance sensor in MicroPython, using WS2812 control to change LED colors by di...
Raspberry Pi Pico HC-SR04: Measure Distance in MicroPython
Oct 22, 2023Tutorial

Raspberry Pi Pico HC-SR04: Measure Distance in MicroPython

Build a Raspberry Pi Pico HC-SR04 distance sensor project in MicroPython to get reliable ultrasonic readings fast for...
Arduino Uno HCSR04 RGB: Distance readings with LEDs
Oct 22, 2023Tutorial

Arduino Uno HCSR04 RGB: Distance readings with LEDs

Build an Arduino UNO HCSR04 RGB ultrasonic project that prints distance in cm and drives 6 built-in LEDs for clear fe...
Raspberry Pi Pico W HC-SR04: Wi-Fi Robot Course Setup
Feb 27, 2025Tutorial

Raspberry Pi Pico W HC-SR04: Wi-Fi Robot Course Setup

Set up a Raspberry Pi Pico W with an HC-SR04 robot project: install MicroPython in Thonny and run a LED test to prepa...
Raspberry Pi Pico W HC-SR04: Robot Assembly Guide
Feb 27, 2025Tutorial

Raspberry Pi Pico W HC-SR04: Robot Assembly Guide

Assemble a Raspberry Pi Pico W robot with an L298N motor driver and HC-SR04 ultrasonic sensor, then tidy wiring with ...
Raspberry Pi Pico W HC-SR04: Obstacle Detection LEDs
Feb 28, 2025Tutorial

Raspberry Pi Pico W HC-SR04: Obstacle Detection LEDs

Build Raspberry Pi Pico W obstacle detection with an HC-SR04 ultrasonic sensor and Neopixel LED proximity colors in M...
Arduino VL53L0X: Millimetre Distance Over Serial
May 14, 2026Tutorial

Arduino VL53L0X: Millimetre Distance Over Serial

Build an Arduino Nano + VL53L0X ToF distance reader that streams millimetre measurements over Serial for accurate sho...
Arduino Nano SG92R Servo: Smooth 0-180 Sweep
May 15, 2026Tutorial

Arduino Nano SG92R Servo: Smooth 0-180 Sweep

Build an Arduino Nano SG92R servo sweep (0 to 180 degrees) in minutes using the Servo library, with wiring guidance a...
Arduino IR Obstacle Sensor: Blink LED on Detect
May 15, 2026Tutorial

Arduino IR Obstacle Sensor: Blink LED on Detect

Build an Arduino IR obstacle sensor trigger that blinks the onboard LED and prints Serial alerts using a simple HIGH/...
Arduino Nano HC-05: Bluetooth Robot Car Control
May 18, 2026Tutorial

Arduino Nano HC-05: Bluetooth Robot Car Control

Build an Arduino Nano robot car using an HC-05 Bluetooth module and L298N motor driver for phone control, including w...
Arduino Nano HC-SR04 vs VL53L0X: Pick right sensor
May 29, 2026Tutorial

Arduino Nano HC-SR04 vs VL53L0X: Pick right sensor

Compare Arduino Nano readings from HC-SR04 ultrasonic vs VL53L0X ToF to choose the right distance sensor for robots, ...

Related Videos

Customer Reviews