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

How to Use sensor ultrasonik US-026: Examples, Pinouts, and Specs

Image of sensor ultrasonik US-026
Cirkit Designer LogoDesign with sensor ultrasonik US-026 in Cirkit Designer

Introduction

The US-026 is an ultrasonic distance sensor designed to measure the distance to an object using sound waves. It emits ultrasonic pulses and calculates the time it takes for the echo to return, enabling accurate distance measurements. This sensor is widely used in robotics, automation, and IoT applications for tasks such as obstacle detection, distance measurement, and object tracking.

Explore Projects Built with sensor ultrasonik US-026

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 sensor ultrasonik US-026 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 UNO-Based Ultrasonic Sensor and Color Detection System with Audio Feedback
Image of ttki: A project utilizing sensor ultrasonik US-026 in a practical application
This circuit integrates multiple HC-SR04 ultrasonic sensors, a TCS3200 color sensor, and a DFPlayer Mini module with an Arduino UNO to create a multi-sensor system capable of distance measurement, color detection, and audio playback. The system is powered by a 2x 18650 battery pack regulated by an LM2596 module, and it interfaces with a speaker for audio output.
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 sensor ultrasonik US-026 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 Mega 2560 Bluetooth-Controlled Ultrasonic Distance Measurement
Image of circuitcycle: A project utilizing sensor ultrasonik US-026 in a practical application
This circuit features an Arduino Mega 2560 microcontroller interfaced with an HC-05 Bluetooth Module and an HC-SR04 Ultrasonic Sensor. The HC-05 is powered by the Arduino's VIN pin and is grounded to the Arduino's GND, enabling wireless communication capabilities. The HC-SR04 is powered by the Arduino's 5V output and uses two digital PWM pins (D7 for TRIG and D6 for ECHO) to measure distances via ultrasonic waves.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with sensor ultrasonik US-026

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 sensor ultrasonik US-026 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 ttki: A project utilizing sensor ultrasonik US-026 in a practical application
Arduino UNO-Based Ultrasonic Sensor and Color Detection System with Audio Feedback
This circuit integrates multiple HC-SR04 ultrasonic sensors, a TCS3200 color sensor, and a DFPlayer Mini module with an Arduino UNO to create a multi-sensor system capable of distance measurement, color detection, and audio playback. The system is powered by a 2x 18650 battery pack regulated by an LM2596 module, and it interfaces with a speaker for audio output.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ADARNA: A project utilizing sensor ultrasonik US-026 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 circuitcycle: A project utilizing sensor ultrasonik US-026 in a practical application
Arduino Mega 2560 Bluetooth-Controlled Ultrasonic Distance Measurement
This circuit features an Arduino Mega 2560 microcontroller interfaced with an HC-05 Bluetooth Module and an HC-SR04 Ultrasonic Sensor. The HC-05 is powered by the Arduino's VIN pin and is grounded to the Arduino's GND, enabling wireless communication capabilities. The HC-SR04 is powered by the Arduino's 5V output and uses two digital PWM pins (D7 for TRIG and D6 for ECHO) to measure distances via ultrasonic waves.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Obstacle detection in robotics
  • Distance measurement in automation systems
  • Parking assistance systems
  • Liquid level measurement
  • Security and proximity sensing

Technical Specifications

The US-026 sensor is a reliable and versatile component with the following key specifications:

Parameter Value
Operating Voltage 3.3V to 5V
Operating Current ≤ 15mA
Measuring Range 2cm to 450cm
Measuring Accuracy ±0.3cm
Operating Frequency 40kHz
Output Signal PWM or UART (selectable)
Communication Protocol UART (9600 baud rate)
Dimensions 45mm x 20mm x 15mm
Operating Temperature -10°C to 70°C

Pin Configuration

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

Pin Name Description
1 VCC Power supply pin. Connect to 3.3V or 5V.
2 TRIG/TX Trigger pin for PWM mode or TX pin for UART mode. Sends trigger signal or data.
3 ECHO/RX Echo pin for PWM mode or RX pin for UART mode. Receives echo signal or data.
4 GND Ground pin. Connect to the ground of the circuit.

Usage Instructions

The US-026 sensor can operate in two modes: PWM mode and UART mode. Below are the steps to use the sensor in a circuit:

Using the Sensor in PWM Mode

  1. Wiring:

    • Connect the VCC pin to a 3.3V or 5V power supply.
    • Connect the GND pin to the ground of the circuit.
    • Connect the TRIG pin to a digital output pin of your microcontroller.
    • Connect the ECHO pin to a digital input pin of your microcontroller.
  2. Triggering the Sensor:

    • Send a 10µs HIGH pulse to the TRIG pin to initiate a measurement.
    • The sensor will emit an ultrasonic pulse and set the ECHO pin HIGH for a duration proportional to the distance.
  3. Calculating Distance:

    • Measure the duration of the HIGH signal on the ECHO pin.
    • Use the formula:
      [ \text{Distance (cm)} = \frac{\text{Time (µs)} \times 0.034}{2} ] where 0.034 cm/µs is the speed of sound in air.

Using the Sensor in UART Mode

  1. Wiring:

    • Connect the VCC and GND pins as described above.
    • Connect the TX pin to the RX pin of your microcontroller.
    • Connect the RX pin to the TX pin of your microcontroller.
  2. Communication:

    • Configure the UART communication at a baud rate of 9600.
    • The sensor will send distance data in a specific format (e.g., ASCII or binary).

Example Code for Arduino UNO (PWM Mode)

// Define pins for the US-026 sensor
const int trigPin = 9; // TRIG pin connected to digital pin 9
const int echoPin = 10; // ECHO pin connected to digital pin 10

void setup() {
  pinMode(trigPin, OUTPUT); // Set TRIG pin as output
  pinMode(echoPin, INPUT);  // Set ECHO pin as input
  Serial.begin(9600);       // Initialize serial communication
}

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

  // Measure the duration of the HIGH signal on the ECHO pin
  long duration = pulseIn(echoPin, HIGH);

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

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

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

Important Considerations

  • Ensure the sensor is not obstructed by objects that could interfere with the ultrasonic waves.
  • Avoid using the sensor in environments with high humidity or extreme temperatures, as this may affect accuracy.
  • Use decoupling capacitors near the power supply pins to reduce noise.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output or Incorrect Readings:

    • Ensure the sensor is powered correctly (3.3V or 5V).
    • Verify the connections to the microcontroller.
    • Check for loose wires or poor soldering.
  2. Inconsistent Measurements:

    • Ensure there are no obstacles near the sensor that could cause false echoes.
    • Use a stable power supply to avoid voltage fluctuations.
  3. Sensor Not Responding in UART Mode:

    • Verify the baud rate is set to 9600.
    • Check the TX and RX connections between the sensor and the microcontroller.

FAQs

Q: Can the US-026 measure distances less than 2cm?
A: No, the minimum measurable distance is 2cm. Objects closer than this may not be detected accurately.

Q: Can I use the US-026 with a 3.3V microcontroller?
A: Yes, the sensor supports both 3.3V and 5V operation. Ensure the logic levels are compatible.

Q: How do I switch between PWM and UART modes?
A: The mode is typically selected by configuring the sensor's pins or using specific commands. Refer to the manufacturer's datasheet for details.

Q: What is the maximum range of the US-026?
A: The maximum range is 450cm, but accuracy may decrease at longer distances.