QSZNTEC A02 Ultrasonic Sensing Sensor

Contents

A02 Waterproof Ultrasonic Sensing Sensor User Manual

Model: A02 Ultrasonic Sensing Sensor | Brand: QSZNTEC

1. Introduction

The A02 Waterproof Ultrasonic Sensing Module is a versatile ranging sensor designed for various applications requiring accurate distance measurement. It features a sensitive probe for stable and precise data acquisition, unaffected by the color, transparency, or material (metal and non-metal) of the inspection object. This module offers multiple output interfaces to suit different system requirements.

A02 Waterproof Ultrasonic Module in an applicable scene
Figure 1: A02 Waterproof Ultrasonic Module in various application scenarios, including horizontal ranging, object approaching, robot obstacle avoidance, and parking management systems.
Dianyingpu Ultrasonic Sensor highlighting IP67 rating
Figure 2: Dianyingpu Ultrasonic Sensor with IP67 rating, emphasizing its 3cm small blind zone, strong anti-interference, and accurate data.
Play video
Watch video online
Video 1: An overview of the A02 Ultrasonic Sensing Sensor, demonstrating its features and potential uses.

The module is suitable for automatic control, obstacle avoidance, and level sensing. It is certified with ISO9001, CE, RoHS, and FCC standards.

2. Specifications

General Specifications

Parameter Value
Product Name Ultraconis Sensor
Operating Voltage DC 3.3~5V
Operating Current < 8 mA
Standby Current < 5 uA
Accuracy 1 cm
Frequency 40 KHz
Blind Spot 3 cm
Interface Digital
Certificate ISO9001 CE RoHS FCC

A02U-V2.0 Specific Parameters

Parameter A02U-V2.0 Unit
Dead band 3 cm
Measuring range of Flat objects 3~450 cm
Beam Angle ≈60 degree
Response time 300~500 ms
Output signal TTL signal
MTTF 26000 Hrs
Connection type UART automatic
Power consumption ≤5 mA
Residual ripple <50 mA
Time delay before availability 500 ms
Dimensional drawing of the A02 Ultrasonic Module
Figure 3: Detailed dimensional drawing of the A02 Ultrasonic Module, showing measurements in millimeters.

3. Setup

The A02 module supports various output interfaces. Ensure you select the correct output mode before ordering, as pin functions correspond to the chosen mode and cannot coexist with other output modes.

3.1. Pin Definitions

The module's output interface can be configured for UART Auto, UART Controlled, PWM, Switch, or RS485. Below are the pin definitions for each mode:

UART Auto Output Pin Definition

Pin No. Mark Pin Description Remark
① VCC Power input
② GND GND
③ RX Processed value or Real time value output (1)
④ TX UART output (1)

UART Controlled Output Pin Definition

Pin No. Mark Pin Description Remark
① VCC Power input
② GND GND
③ RX Trigger input (1)
④ TX UART output (1)

PWM Output Pin Definition

Pin No. Mark Pin Description Remark
① VCC Power input
② GND GND
③ RX Trigger input (1)
④ TX PWM output (1)

Switch Output Pin Definition

Pin No. Mark Pin Description Remark
① VCC Power input
② GND GND
③ RX Switch negative output (1)
④ TX Switch positive output (1)

RS485 Output Pin Definition

Pin No. Mark Pin Description Remark
① VCC Power input
② GND GND
③ B RS485 Inverting input (1)
④ A RS485 Non-inverting input (1)

4. Operating Instructions

4.1. UART Auto Output

When the RX pin is suspended or receives a high level input, the module outputs a processed distance value, providing more stable data. The response time is typically 100-500ms. If the RX pin receives a low level input, the module outputs real-time distance values with a response time of 100ms.

Communication Parameters

UART Data Bit Stop Bit Parity Bit Baud Rate
TTL level 8 1 No 9600bps

UART Output Format

Data Frame Description Byte
Start Bit 0XFF 0XFF 1byte
Data_H High8 distance value 1byte
Data_L Low8 distance value 1byte
SUM Parity sum 1byte

Example: If Start Bit = 0XFF, Data_H = 0X07, Data_L = 0XA1, then SUM = (0XFF + 0X07 + 0XA1) & 0x00FF = 0XA7. The distance value is calculated as Data_H * 256 + Data_L = 0X07A1, which converts to 1953 in decimal. This means the current measurement distance is 1953mm.

4.2. UART Controlled Output

The module initiates a distance detection after the RX pin receives a falling edge pulse or any serial interface data. The TX pin will output a TTL level after detection is complete. The trigger period of the module must be greater than 70ms.

Communication Parameters

UART Data Bit Stop Bit Parity Bit Baud Rate
TTL level 8 1 No 9600bps

Timing Diagram (UART Controlled)

UART Controlled Output Timing Diagram
Figure 4: Timing diagram for UART Controlled Output. T1 > 70ms, T2 = 45~60ms.

4.3. PWM Output

When the RX pin receives a trigger falling edge pulse, the module begins detection. The TX pin will output a TTL level PWM high-level pulse width signal once. The period must be greater than 70ms. If no object is detected, the TX pin will output a fixed pulse width of approximately 35ms.

Timing Diagram (PWM)

PWM Output Timing Diagram
Figure 5: Timing diagram for PWM Output. T1 = 10~17ms; Flat object T2 = 0.18~35ms (PWM High level pulse width timing).

Distance Calculation Formula (PWM)

The distance (S) can be calculated using the formula: S = T * V / 2, where T is the duration of the PWM high-level pulse width and V is the speed of sound in air. Due to internal temperature compensation, V is directly calculated at 348m/s at room temperature. A simplified formula is S = T / 57.5 (where S is in centimeters and T is in microseconds).

Example: If the duration T of PWM high-level pulse width is 10000us, then S = 10000 / 57.5 ≈ 173.9 cm. This means the distance value is 173.9cm.

4.4. Switch Output

The module has a factory-set threshold of 1.5 meters and performs distance measurements every 100ms. For stability, if the distance value is detected to be less than the threshold 3 times in a row, it is determined that the target distance is less than the set threshold. Conversely, if the distance value is detected to be greater than the threshold 5 times in a row, it is determined that the target distance is greater than the set threshold value.

  • When the distance value is less than the threshold: TX outputs high level, RX outputs low level.
  • When the distance value is greater than the threshold: TX outputs low level, RX outputs high level.

Note: The TX pin of the module only outputs high and low level signals without driving capability.

4.5. RS485 Output

RS485 Interface Specification

Interface Data Bit Stop Bit Parity Bit Baud Rate
RS485 level 8 1 No 9600bps

RS485 Modbus Protocol Specification

Mode Parity Sensor Address Read Function Code Write Function Code
Modbus-RTU CRC-16/MODBUS Settable default 0x01 0x03 0x06

The sensor module acts as a slave, and the customer device acts as the master.

RS485 Modbus Register

Status Register Address Register Function Type of Data Description
Read-only 0x0100 Processing value Unsigned, 16bit Starts distance measurement after receiving command, outputs processed distance value (algorithm). Unit mm, response time 500ms.
Read-only 0x0101 Real-time value Unsigned, 16bit Starts distance measurement after receiving command, outputs real-time distance value. Unit mm, response time 100ms.
Read-only 0x0102 Temperature Unsigned, 16bit Unit is 0.1°C, resolution is 0.5°C, response time is about 100ms.
Read-only 0x0200 Slave address Unsigned, 16bit Range: 0x01~0xFE, default 0x01, 0xFF is broadcast address.

Remarks: The register data is high byte first, low byte last.

RS485 Modbus Examples

Example 1: Read processing value data

  • Master: 01 03 01 00 00 01 85 F6
  • Slave: 01 03 02 02 F2 38 A1
  • Description: Sensor address is 0x01, processing distance value is 0x02F2 (754mm).

Example 2: Read real time distance value

  • Master: 01 03 01 01 00 01 D4 36
  • Slave: 01 03 02 02 EF F8 A8
  • Description: Sensor address is 0x01, real time value is 0x02EF (751mm).

Example 3: Read temperature data

  • Master: 01 03 01 02 00 01 24 36
  • Slave: 01 03 02 01 2C B8 09
  • Description: Sensor address is 0x01, real temperature is 0x012C (30.0°C).

Example 4: Modify slave address

  • Master: 01 06 02 00 00 05 48 71
  • Slave: 01 06 02 00 00 05 48 71
  • Description: Sensor address is changed from 0x01 to 0x05.

5. Maintenance

To ensure optimal performance and longevity of your A02 Ultrasonic Sensing Sensor, follow these maintenance guidelines:

  • Keep Clean: Regularly wipe the sensor surface with a soft, dry cloth to remove dust and debris. Avoid using abrasive cleaners or solvents that could damage the sensor.
  • Environmental Conditions: Operate the sensor within its specified temperature and humidity ranges. Avoid prolonged exposure to extreme temperatures or direct sunlight.
  • Cable Integrity: Periodically inspect the connecting cable for any signs of wear, cuts, or damage. Ensure connections are secure.
  • Avoid Physical Impact: Protect the sensor from strong impacts or mechanical stress, which could affect its accuracy and functionality.

6. Troubleshooting

If you encounter issues with your A02 Ultrasonic Sensing Sensor, consider the following troubleshooting steps:

  • No Output/Incorrect Readings:
    • Verify power supply (DC 3.3~5V) and ground connections are correct and stable.
    • Check pin connections according to the specific output mode (UART, PWM, Switch, RS485) you are using.
    • Ensure the trigger period for UART Controlled and PWM modes is greater than 70ms.
    • For UART modes, confirm baud rate (9600bps), data bits (8), stop bits (1), and parity (No) settings match your receiving device.
    • For RS485, check Modbus protocol settings, including sensor address and function codes.
    • Inspect the sensor for any physical obstructions or damage to the transducers.
  • Inaccurate Data:
    • Ensure the target object is within the specified measuring range (3-450cm) and outside the blind spot (3cm).
    • Minimize strong anti-interference sources in the environment.
    • For Switch output, remember the stability logic (3 consecutive readings below threshold, 5 consecutive readings above threshold) before a state change is confirmed.
    • Verify the distance calculation formula for PWM output is correctly implemented in your code.
  • Module Not Responding:
    • Power cycle the module.
    • Double-check all wiring for continuity and correct polarity.
    • Consult the detailed documentation for specific interface requirements.

7. User Tips

  • Initial Inspection: Upon receiving the sensor, perform a visual check to ensure everything looks good before proceeding with installation and testing.
  • RS485 Output: The sensor is confirmed to have an RS485 output, which is useful for industrial applications requiring robust communication over longer distances.
  • Proper Setup: Users have reported the sensor working well, indicating that a correct and careful setup according to the instructions leads to reliable performance.

8. Documentation and Support

For further detailed technical information, programming guides, and additional resources, please refer to the official documentation:

  • A02 Ultrasonic Module Wiki Page
  • User manual (PDF): A comprehensive user manual in PDF format is available for download. This document contains in-depth information on the module's operation and technical details.

For product support or warranty inquiries, please contact the manufacturer, QSZNTEC, or your point of purchase. Maker Go is the manufacturer and exporter specializing in micro-controllers, starter kits, robots, shields, sensors, displays, and modules for various platforms.

Documents and downloads

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.

Rate this product if you’ve used it

Was this page helpful?