Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use us-016 ultrasonic: Examples, Pinouts, and Specs

Image of us-016 ultrasonic
Cirkit Designer LogoDesign with us-016 ultrasonic in Cirkit Designer

Introduction

The US-016 ultrasonic sensor, manufactured by Arduino (Part ID: US-016), is a highly reliable and accurate distance measuring device. It operates by emitting ultrasonic sound waves and calculating the time it takes for the echo to return after hitting an object. This time measurement is then used to determine the distance to the object based on the speed of sound.

Explore Projects Built with us-016 ultrasonic

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino UNO-Based Ultrasonic Distance Sensor with OLED Display and SIM900A Communication
Image of SENSOR: A project utilizing us-016 ultrasonic in a practical application
This circuit is a distance measurement and communication system using an Arduino UNO, an ultrasonic sensor, an OLED display, and a SIM900A module. The ultrasonic sensor measures the distance to an object, which is then displayed on the OLED screen and transmitted via the SIM900A module. The system is powered by a 18650 Li-ion battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Mega 2560 Controlled Ultrasonic Sensor Array with I2C LCD Display and Bluetooth Interface
Image of ADARNA: A project utilizing us-016 ultrasonic in a practical application
This circuit features an Arduino Mega 2560 microcontroller interfaced with multiple HC-SR04 ultrasonic sensors and two HC-06 Bluetooth modules. The ultrasonic sensors are likely used for distance measurement or object detection, while the Bluetooth modules enable wireless communication. Additionally, there is an I2C LCD display for outputting information such as sensor readings or system status.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based Ultrasonic Radar System with Servo Motor
Image of ultrasonic radar: A project utilizing us-016 ultrasonic in a practical application
This circuit is designed to function as an ultrasonic radar system, utilizing an Arduino UNO microcontroller, an HC-SR04 ultrasonic sensor, and an SG90 servo motor. The Arduino controls the servo to sweep the ultrasonic sensor through a range of angles, while the sensor measures the distance to any objects in its path. The system outputs the angle and distance measurements to the serial monitor and provides an indication when an obstacle is detected within 20 cm.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO-Based Ultrasonic Sensor and Relay-Controlled Audio System
Image of BT Speaker: A project utilizing us-016 ultrasonic in a practical application
This circuit features an Arduino UNO microcontroller interfaced with two HC-SR04 ultrasonic sensors for distance measurement, a 4-channel relay module for controlling external devices, and an EZ-SFX amplifier connected to two loudspeakers for audio output. The system is powered by a Polymer Lithium Ion Battery and includes basic setup and loop code for the Arduino.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with us-016 ultrasonic

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of SENSOR: A project utilizing us-016 ultrasonic in a practical application
Arduino UNO-Based Ultrasonic Distance Sensor with OLED Display and SIM900A Communication
This circuit is a distance measurement and communication system using an Arduino UNO, an ultrasonic sensor, an OLED display, and a SIM900A module. The ultrasonic sensor measures the distance to an object, which is then displayed on the OLED screen and transmitted via the SIM900A module. The system is powered by a 18650 Li-ion battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ADARNA: A project utilizing us-016 ultrasonic in a practical application
Arduino Mega 2560 Controlled Ultrasonic Sensor Array with I2C LCD Display and Bluetooth Interface
This circuit features an Arduino Mega 2560 microcontroller interfaced with multiple HC-SR04 ultrasonic sensors and two HC-06 Bluetooth modules. The ultrasonic sensors are likely used for distance measurement or object detection, while the Bluetooth modules enable wireless communication. Additionally, there is an I2C LCD display for outputting information such as sensor readings or system status.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ultrasonic radar: A project utilizing us-016 ultrasonic in a practical application
Arduino UNO Based Ultrasonic Radar System with Servo Motor
This circuit is designed to function as an ultrasonic radar system, utilizing an Arduino UNO microcontroller, an HC-SR04 ultrasonic sensor, and an SG90 servo motor. The Arduino controls the servo to sweep the ultrasonic sensor through a range of angles, while the sensor measures the distance to any objects in its path. The system outputs the angle and distance measurements to the serial monitor and provides an indication when an obstacle is detected within 20 cm.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of BT Speaker: A project utilizing us-016 ultrasonic in a practical application
Arduino UNO-Based Ultrasonic Sensor and Relay-Controlled Audio System
This circuit features an Arduino UNO microcontroller interfaced with two HC-SR04 ultrasonic sensors for distance measurement, a 4-channel relay module for controlling external devices, and an EZ-SFX amplifier connected to two loudspeakers for audio output. The system is powered by a Polymer Lithium Ion Battery and includes basic setup and loop code for the Arduino.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Obstacle detection in robotics
  • Distance measurement in automation systems
  • Liquid level sensing in tanks
  • Proximity detection in security systems
  • Smart parking systems

Technical Specifications

The US-016 ultrasonic sensor is designed for precision and ease of use. Below are its key technical details:

Parameter Specification
Operating Voltage 5V DC
Operating Current ≤ 3 mA
Measuring Range 2 cm to 350 cm
Accuracy ± 0.3 cm
Operating Frequency 40 kHz
Output Signal PWM (Pulse Width Modulation)
Trigger Input Signal 10 µs TTL pulse
Echo Output Signal PWM signal, proportional to distance
Operating Temperature -20°C to 70°C
Dimensions 45 mm x 20 mm x 15 mm

Pin Configuration and Descriptions

The US-016 sensor has four pins, as described in the table below:

Pin Name Description
1 VCC Power supply pin. Connect to 5V DC.
2 Trig Trigger pin. Send a 10 µs TTL pulse to initiate distance measurement.
3 Echo Echo pin. Outputs a PWM signal proportional to the measured distance.
4 GND Ground pin. Connect to the ground of the power supply.

Usage Instructions

How to Use the US-016 in a Circuit

  1. Power the Sensor: Connect the VCC pin to a 5V DC power source and the GND pin to ground.
  2. Trigger the Sensor: Send a 10 µs TTL pulse to the Trig pin to initiate a measurement.
  3. Read the Echo: Measure the duration of the PWM signal on the Echo pin. The duration corresponds to the time taken for the ultrasonic wave to travel to the object and back.
  4. Calculate Distance: Use the formula below to calculate the distance: [ \text{Distance (cm)} = \frac{\text{Time (µs)} \times 0.0343}{2} ] The factor 0.0343 accounts for the speed of sound in air (343 m/s), and the division by 2 accounts for the round trip of the sound wave.

Important Considerations and Best Practices

  • Ensure the sensor is mounted securely and aligned properly for accurate measurements.
  • Avoid placing the sensor near sources of ultrasonic noise or vibrations, as these can interfere with its operation.
  • Use a decoupling capacitor (e.g., 10 µF) between VCC and GND to stabilize the power supply.
  • The sensor may not perform well on soft or irregular surfaces, as they may absorb or scatter the ultrasonic waves.

Example Code for Arduino UNO

Below is an example of how to use the US-016 ultrasonic sensor with an Arduino UNO:

// Define pin connections
const int trigPin = 9; // Trigger pin connected to digital pin 9
const int echoPin = 10; // Echo pin connected to digital pin 10

void setup() {
  pinMode(trigPin, OUTPUT); // Set the trigger pin as an output
  pinMode(echoPin, INPUT);  // Set the echo pin as an input
  Serial.begin(9600);       // Initialize serial communication at 9600 baud
}

void loop() {
  // Send a 10 µs pulse to the trigger pin
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);

  // Measure the duration of the echo pulse
  long duration = pulseIn(echoPin, HIGH);

  // Calculate the distance in cm
  float distance = (duration * 0.0343) / 2;

  // Print the distance to the Serial Monitor
  Serial.print("Distance: ");
  Serial.print(distance);
  Serial.println(" cm");

  delay(500); // Wait for 500 ms before the next measurement
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output or Incorrect Readings

    • Cause: Incorrect wiring or loose connections.
    • Solution: Double-check all connections, ensuring VCC is connected to 5V, GND to ground, and the Trig and Echo pins are connected to the correct Arduino pins.
  2. Unstable or Fluctuating Measurements

    • Cause: Electrical noise or unstable power supply.
    • Solution: Add a decoupling capacitor (e.g., 10 µF) between VCC and GND to filter noise.
  3. Sensor Not Detecting Objects

    • Cause: Object is out of range or has a surface that absorbs ultrasonic waves.
    • Solution: Ensure the object is within the 2 cm to 350 cm range and has a reflective surface.
  4. Slow Response Time

    • Cause: Delay in the code or long measurement intervals.
    • Solution: Optimize the code to reduce unnecessary delays and ensure the sensor is triggered at appropriate intervals.

FAQs

Q: Can the US-016 measure distances through transparent materials like glass?
A: No, the US-016 ultrasonic sensor cannot measure distances through transparent materials, as ultrasonic waves do not pass through them effectively.

Q: What is the maximum angle of detection for the US-016?
A: The US-016 has a detection angle of approximately 15 degrees. Ensure objects are within this angle for accurate measurements.

Q: Can I use the US-016 with a 3.3V microcontroller?
A: The US-016 requires a 5V power supply for proper operation. If using a 3.3V microcontroller, a level shifter is recommended for the Trig and Echo pins.