A02YYUW is a waterproof ultrasonic sensor module with a 4.5 meter effective ranging distance.
It supports 3.3~5V wide voltage range and is compatible with 3.3V or 5V devices like Arduino, Raspberry Pi, etc. The average current of A02YYUW is only 8mA so it can be powered by most controllers' IO port. The ultrasonic sensor adopts closed separated probe, waterproof and dustproof, which could be well suitable for harsh and moist measuring environment. All the signal processing units are integrated inside the module, so users can directly obtain the distance value through Asynchronous Serial Interface. With 9600bit/s band rate, the sensor can easily communicate with upper-host or other MCU, which greatly shortens the developing cycle for users.
Use the sensor with Arduino controller to build up your projects, such as backing car annunciator, obstacle avoidance robot, object approaching detection etc.
Specification
- Operating Voltage: 3.3~5V
- standby Current: ≤5mA
- Average Current: ≤8mA
- Blind Zone Distance: 3cm
- Ranging Distance for Flat Object: 3-450cm
- Output: UART
- Response Time: 100ms
- Probe Center Frequency: 40K±1.0K
- Operating Temperature: -15~60℃
- Storage Temperature: -25~80℃
- Sensing Angle: 60°
- Protection Rate: IP67
UART Output
Output Communication
When "RX" floats or input High level, the module outputs processed value, the data is more steady, response time: 100-300ms; when input Low level, the module outputs real-time value, response time: 100ms.
UART |
data bit |
stop bit |
parity |
band rate |
TTL level |
8 |
1 |
none |
9600bps |
UART Output Form
Frame Data |
Description |
Byte |
Header |
0xFF |
1 byte |
DATA_H |
Distance Data High 8-bits |
1 byte |
DATA_L |
Distance Data Low 8-bits |
1 byte |
SUM |
Checksum |
1 byte |
UART Output
Header |
DATA_H |
DATA_L |
SUM |
0xFF |
0x07 |
0xA1 |
0xA7 |
Note: checksum only reserves the low 8-bits of the accumulated value.
SUM=(Header+Data_H+Data_L)&0x00FF
=(0XFF + 0X07 + 0XA1)&0x00FF
=0XA7;
Copy
Distance= Data_H*256+ Data_L=0X07A1;
Equal to 1953 when converted into decimal;
Represent the current measured distance is 1953mm.
Arduino Platform
Preparation
- Hardware
- Arduino UNO
- UNO IO Sensor Expansion Board
- A02YYUW Ultrasonic Sensor
- 4P Connector
- Software
Connection below
Sample Code
Raspberry Pi Platform
Preparation
- Raspberry Pi 4B
- Raspberry Pi IO Expansion Board
- A02YYUW Ultrasonic Sensor
- 4P Connector
Raspberry Pi Connection
Sample Code
Download the Ultrasonic Sensor Library
More Documents