A02YYUW waterproof ultrasonic distance (UART) with ESP32
Supply 3.3-5 V
Bus GPIO
Measures distance
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| VCC | Power | 3V3 | Red wire. Use 3V3 so TX stays at 3.3 V |
| GND | Ground | GND | Black wire |
| RX | Input (the ESP32 drives it) | D25 | Yellow wire. Mode select: HIGH or open = processed value, LOW = real-time value |
| TX | Output (the part drives it) | D26 | UART: the part sends data here. Connect to an ESP32 RX pin (9600 baud). White wire |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Sources
- DFRobot SEN0311 A02YYUW wiki, Supply 3.3 to 5 V; UART 9600 baud; range 3 to 450 cm; wires red VCC, black GND, yellow RX, white TX
Try it in 3D in BoardPilot
Related parts
A3144 hall effect switchAM312 mini PIR motion sensorATGM336H GPS/BeiDou moduleBeitian BN-220 GPS moduleBenewake TF-Luna LiDAR (UART mode)Benewake TFmini-S LiDAR (UART)
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.