# Ultrasonic Sonar Distance Sensors

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/083/791/medium800/adafruit_products_HC-SR04_top.jpg?1573080454)

If you're like me, you've dreamed of being a dolphin - smoothly gliding through the water. Using your echo-location abilities to detect tasty fish treats. Until genetic modifications catches up with our desires, we'll just have to make do with these handy **HC-SR04 and US100 Ultrasonic Sonar Distance Sensors** and a pair of flippers.

These ubiquitous sensors are really common in robotics projects, but they can also be used for automation, interactive art and motion sensing. They work at about 2cm to 400cm away, but we think 10cm-250cm will get you the best results.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/083/792/medium800/adafruit_products_HC-SR04_back.jpg?1573080464)

The HC-SR04 sensors are fast, fairly easy to use, and low cost. They do require powering from 5V for best results: connect GND (ground) and VCC to 5V power. While the Trig signal can be 3V or 5V, the 'return' Echo signal is 5V logic. For that reason, we include two 10K resistors, use these as a divider to convert the 5V logic level to a safe 2.5V that you can ready with your 3V device.

![](https://cdn-learn.adafruit.com/assets/assets/000/083/808/medium800/adafruit_products_US100_top_angle.jpg?1573143683)

The US-100 is very similar to the popular HC-SR04 ultrasonic sensors, and even looks the same, but has a few extra tricks

- This sensor can run from 3-5V so you don't need any logic level shifters or dividers. Just power from whatever your microcontroller provides
- You can use in "HC-SR04" mode _or_ in "Serial UART" mode.

![](https://cdn-learn.adafruit.com/assets/assets/000/083/809/medium800/adafruit_products_US100_back.jpg?1573143692)

When the jumper on the back is removed, it acts like an HC-SR04 with a trigger and echo pin. When the jumper is in place, you use 9600 baud UART to communicate with the sensor. In UART mode, send 0x55 and read back two bytes (16 bit value) that is mm distance, or 0x50 to read the temperature in degrees C. Handy if you want to use with a computer and a USB-serial converter, or some other device that can't do the special timing needed for the HC-SR04 trigger/echo.

![](https://cdn-learn.adafruit.com/assets/assets/000/083/810/medium800/adafruit_products_US100_top.jpg?1573143726)

- [Next Page](https://learn.adafruit.com/ultrasonic-sonar-distance-sensors/pinouts.md)

## Primary Products

### HC-SR04 Ultrasonic Sonar Distance Sensor + 2 x 10K resistors

[HC-SR04 Ultrasonic Sonar Distance Sensor + 2 x 10K resistors](https://www.adafruit.com/product/3942)
If you're like me, you've dreamed of being a dolphin - smoothly gliding through the water. Using your echo-location abilities to detect tasty fish treats. Until genetic modifications catches up with our desires, we'll just have to make do with these handy **HC-SR04 Ultrasonic...**

In Stock
[Buy Now](https://www.adafruit.com/product/3942)
[Related Guides to the Product](https://learn.adafruit.com/products/3942/guides)

## Featured Products

### US-100 Ultrasonic Distance Sensor - 3V or 5V Logic

[US-100 Ultrasonic Distance Sensor - 3V or 5V Logic](https://www.adafruit.com/product/4019)
If you're like me, you've dreamed of being a dolphin - smoothly gliding through the water. Using your echo-location abilities to detect tasty fish treats. Until genetic modifications catch up with our desires, we'll just have to make do with this handy **US-100 Ultrasonic...**

In Stock
[Buy Now](https://www.adafruit.com/product/4019)
[Related Guides to the Product](https://learn.adafruit.com/products/4019/guides)
### Ultrasonic Distance Sensor - 3V or 5V - HC-SR04 compatible

[Ultrasonic Distance Sensor - 3V or 5V - HC-SR04 compatible](https://www.adafruit.com/product/4007)
If you're like me, you've dreamed of being a dolphin - smoothly gliding through the water. Using your echo-location abilities to detect tasty fish treats. Until genetic modifications catches up with our desires, we'll just have to make do with these handy&nbsp; **3V Ultrasonic...**

Out of Stock
[Buy Now](https://www.adafruit.com/product/4007)
[Related Guides to the Product](https://learn.adafruit.com/products/4007/guides)

## Related Guides

- [Adabot Toy Robot Friend](https://learn.adafruit.com/adabot-rp2040.md)
- [Adafruit DRV2605L Haptic Controller Breakout](https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout.md)
- [No-Code WipperSnapper Summoning Horn](https://learn.adafruit.com/adafruit-io-wippersnapper-summoning-horn.md)
- [Bluefruit Playground Hide and Seek](https://learn.adafruit.com/hide-n-seek-bluefruit-ornament.md)
- [Custom Scrolling Quote Board Matrix Display](https://learn.adafruit.com/aio-quote-board-matrix-display.md)
- [Circuit Playground Express Head-Tilt Ears](https://learn.adafruit.com/circuit-playground-express-head-tilt-ears.md)
- [PyPortal Google Calendar Event Display](https://learn.adafruit.com/pyportal-google-calendar-event-display.md)
- [FunHouse Mail Slot Detector](https://learn.adafruit.com/funhouse-mail-slot-detector.md)
- [HalloWing Interactive Cat Toy](https://learn.adafruit.com/hallowing-cat-toy.md)
- [LED Trampoline](https://learn.adafruit.com/led-trampoline.md)
- [Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout](https://learn.adafruit.com/adafruit-vl53l0x-micro-lidar-distance-sensor-breakout.md)
- [CircuitPython Made Easy on Circuit Playground Express and Bluefruit](https://learn.adafruit.com/circuitpython-made-easy-on-circuit-playground-express.md)
- [Adafruit INA23x DC Current Voltage Power Monitor](https://learn.adafruit.com/adafruit-ina237-dc-current-voltage-power-monitor.md)
- [Adafruit 2.8" TFT Touch Shield v2 - Capacitive or Resistive](https://learn.adafruit.com/adafruit-2-8-tft-touch-shield-v2.md)
- [Adafruit TPA2012 2.1W Stereo Audio Amplifier](https://learn.adafruit.com/adafruit-ts2012-2-8w-stereo-audio-amplifier.md)
