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

How to Use sensor ultrasonik: Examples, Pinouts, and Specs

Image of sensor ultrasonik
Cirkit Designer LogoDesign with sensor ultrasonik in Cirkit Designer

Introduction

The US100 Ultrasonic Sensor, manufactured by Arduino and Raspberry, is a versatile distance-measuring device that uses ultrasonic waves to determine the distance between the sensor and an object. By emitting sound waves and calculating the time it takes for the echo to return, the US100 provides accurate distance measurements in a wide range of applications.

Explore Projects Built with sensor ultrasonik

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 Radar System with Servo Motor
Image of ultrasonic radar: A project utilizing sensor ultrasonik 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 Distance Sensor with OLED Display and SIM900A Communication
Image of SENSOR: A project utilizing sensor ultrasonik 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 Distance Measurement with Bluetooth Interface and Visual Feedback
Image of BMO: A project utilizing sensor ultrasonik in a practical application
This circuit features an Arduino UNO microcontroller interfaced with an HC-SR04 ultrasonic sensor, a red LED with a series resistor, a buzzer, an I2C LCD 16x2 screen, and an HC-05 Bluetooth module. The ultrasonic sensor is likely used for distance measurement, with the Arduino controlling the LED and buzzer as indicators, displaying information on the LCD screen, and potentially communicating data wirelessly via the HC-05 Bluetooth module. The provided code skeleton suggests that the specific functionalities are yet to be implemented.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Controlled Ultrasonic Sensor Relay for Automated Lighting
Image of Automated room Light Using UI sensor_Paper: A project utilizing sensor ultrasonik in a practical application
This circuit features an Arduino UNO microcontroller interfaced with two HC-SR04 ultrasonic sensors, a relay module controlling a bulb, a potentiometer, an LED with a series resistor, and an LCD display. The Arduino uses the ultrasonic sensors to detect proximity and toggles the state of the relay, which in turn switches the bulb on or off. The potentiometer adjusts the LCD's contrast, and the LED serves as an indicator or debugging aid.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with sensor ultrasonik

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 ultrasonic radar: A project utilizing sensor ultrasonik 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 SENSOR: A project utilizing sensor ultrasonik 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 BMO: A project utilizing sensor ultrasonik in a practical application
Arduino UNO-Based Ultrasonic Distance Measurement with Bluetooth Interface and Visual Feedback
This circuit features an Arduino UNO microcontroller interfaced with an HC-SR04 ultrasonic sensor, a red LED with a series resistor, a buzzer, an I2C LCD 16x2 screen, and an HC-05 Bluetooth module. The ultrasonic sensor is likely used for distance measurement, with the Arduino controlling the LED and buzzer as indicators, displaying information on the LCD screen, and potentially communicating data wirelessly via the HC-05 Bluetooth module. The provided code skeleton suggests that the specific functionalities are yet to be implemented.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Automated room Light Using UI sensor_Paper: A project utilizing sensor ultrasonik in a practical application
Arduino-Controlled Ultrasonic Sensor Relay for Automated Lighting
This circuit features an Arduino UNO microcontroller interfaced with two HC-SR04 ultrasonic sensors, a relay module controlling a bulb, a potentiometer, an LED with a series resistor, and an LCD display. The Arduino uses the ultrasonic sensors to detect proximity and toggles the state of the relay, which in turn switches the bulb on or off. The potentiometer adjusts the LCD's contrast, and the LED serves as an indicator or debugging aid.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Obstacle detection in robotics
  • Distance measurement in automation systems
  • Liquid level monitoring
  • Parking assistance systems
  • Proximity sensing in security systems

Technical Specifications

The US100 Ultrasonic Sensor is designed for precision and ease of use. Below are its key technical details:

Parameter Specification
Operating Voltage 2.4V to 5.5V
Operating Current ≤ 2.0 mA
Measuring Range 2 cm to 450 cm
Accuracy ± 0.3 cm
Operating Temperature -20°C to 70°C
Communication Interface UART (9600 bps) or Trigger/Echo Pins
Trigger Pulse Width ≥ 10 µs
Echo Pulse Output Width proportional to distance

Pin Configuration and Descriptions

The US100 sensor has four pins, as described in the table below:

Pin Name Description
1 VCC Power supply pin (2.4V to 5.5V). Connect to the 5V pin of your microcontroller.
2 Trig/TX Trigger pin for initiating ultrasonic pulses or TX pin for UART communication.
3 Echo/RX Echo pin for receiving reflected signals or RX pin for UART communication.
4 GND Ground pin. Connect to the ground of your circuit.

Usage Instructions

The US100 Ultrasonic Sensor can operate in two modes: Trigger/Echo Mode and UART Mode. Below are instructions for using the sensor in both modes.

Trigger/Echo Mode

  1. Wiring:

    • Connect the VCC pin to the 5V pin of your microcontroller.
    • Connect the GND pin to the ground.
    • Connect the Trig pin to a digital output pin on your microcontroller.
    • Connect the Echo pin to a digital input pin on your microcontroller.
  2. Operation:

    • 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.
    • Measure the duration of the HIGH signal on the Echo pin to calculate the distance.
  3. Distance Calculation:
    Use the formula:
    [ \text{Distance (cm)} = \frac{\text{Echo Pulse Width (µs)}}{58} ]

  4. Arduino Example Code:

    // Define pins for the US100 sensor
    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 trigger 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 trigger 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 / 58.0;
    
      // 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
    }
    

UART Mode

  1. Wiring:

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

    • Send a command via UART to initiate a measurement.
    • The sensor will return the distance data in centimeters.
  3. Arduino Example Code:

    #include <SoftwareSerial.h>
    
    // Define RX and TX pins for SoftwareSerial
    SoftwareSerial us100(10, 11); // RX = pin 10, TX = pin 11
    
    void setup() {
      Serial.begin(9600);       // Initialize Serial Monitor
      us100.begin(9600);        // Initialize US100 UART communication
    }
    
    void loop() {
      us100.write(0x55);        // Send measurement command to US100
      delay(100);               // Wait for the response
    
      if (us100.available() >= 2) { // Check if data is available
        int highByte = us100.read(); // Read high byte of distance
        int lowByte = us100.read();  // Read low byte of distance
        int distance = (highByte << 8) + lowByte; // Combine bytes
    
        Serial.print("Distance: ");
        Serial.print(distance);
        Serial.println(" cm");
      }
    
      delay(500); // Wait for 500 ms before the next measurement
    }
    

Important Considerations and Best Practices

  • Ensure the sensor is mounted securely and aligned properly for accurate measurements.
  • Avoid placing the sensor near ultrasonic noise sources, such as motors or other ultrasonic sensors.
  • Use a capacitor (e.g., 10 µF) across the VCC and GND pins to stabilize the power supply.
  • When using multiple sensors, trigger them sequentially to avoid interference.

Troubleshooting and FAQs

Common Issues

  1. No Response from the Sensor

    • Solution: Check the wiring and ensure the power supply voltage is within the specified range (2.4V to 5.5V). Verify that the Trig and Echo pins are connected to the correct microcontroller pins.
  2. Inaccurate Distance Measurements

    • Solution: Ensure there are no obstructions or reflective surfaces near the sensor that could cause false readings. Verify that the sensor is mounted perpendicular to the target surface.
  3. Interference Between Multiple Sensors

    • Solution: Trigger each sensor sequentially with a delay between measurements to prevent ultrasonic wave interference.
  4. UART Communication Issues

    • Solution: Confirm that the baud rate is set to 9600 bps and that the Trig/TX and Echo/RX pins are correctly connected to the microcontroller's RX and TX pins.

FAQs

  1. Can the US100 measure distances below 2 cm?
    No, the minimum measurable distance is 2 cm. Objects closer than this may not be detected accurately.

  2. What is the maximum range of the US100?
    The sensor can measure distances up to 450 cm under ideal conditions.

  3. Can the US100 operate outdoors?
    Yes, but ensure the sensor is protected from direct exposure to rain or extreme environmental conditions.

  4. Is the US100 compatible with Raspberry Pi?
    Yes, the US100 can be used with Raspberry Pi via GPIO pins or UART communication.