
DFRobot SEN0313 A01NYUB Waterproof Ultrasonic Distance Sensor
Measure the distance to a target using ultrasonic echoes and read the result through a TTL UART connection. The A01NYUB combines the probe and signal processing in one enclosed sensor. Its removable bell-mouth supports the maker's 28–750 cm range for flat targets, making it useful for obstacle-detection and level-monitoring prototypes with enough clearance.
Before choosing: Allow at least 28 cm between the sensor and the nearest target. The 1 mm distance resolution is not the same as accuracy: DFRobot specifies ±1 cm accuracy. The maximum range depends on the target and mounting conditions, and the 7.5 m figure is specified with the bell-mouth fitted. IP67 is the sensor's protection rating, not a claim that it can measure distance underwater.
Features and specifications
| Maker model | DFRobot SEN0313 / A01NYUB |
|---|---|
| Measurement method | Ultrasonic echo ranging |
| Range for flat targets | 28–750 cm with bell-mouth fitted |
| Blind zone | 0–28 cm |
| Distance resolution | 1 mm |
| Specified accuracy | ±1 cm |
| Supply voltage | 3.3–5 V DC |
| Average current | Up to 15 mA |
| Output | TTL UART, 9600 bps, 8 data bits, 1 stop bit, no parity |
| Probe frequency | 40 kHz ±1 kHz |
| Sensing angle | 55° with bell-mouth; 40° without, per maker |
| Operating temperature | −15 to 60°C |
| Storage temperature | −25 to 80°C |
| Protection rating | IP67, per maker |
| Connector | PH2.0 four-pin |
Connection and UART data
The four connections are VCC, GND, RX and TX. Connect VCC and GND to a compatible supply, then connect the sensor's TX output to the controller's UART receive input. Check the controller's input voltage limits and the official wiring guide before connecting. This is a UART-output sensor, not a separate trigger/echo interface.
The RX connection selects the output mode. According to the official protocol reference, leaving RX floating or high selects the steadier processed output, with a 150–300 ms response time; holding RX low selects real-time output, with a 150 ms response time. The general product specifications also list a nominal 100 ms response, so use the mode-specific protocol figures when planning data timing.
Distance is sent as a four-byte frame: 0xFF header, distance high byte, distance low byte and checksum. Combine the two distance bytes to obtain millimetres, and validate the checksum before using the reading. Arduino and Raspberry Pi examples are linked below.
Mounting and use
Keep the sensing opening clear and aim the sensor at a suitable target. Leave room for the blind zone and check the beam diagram when choosing a mounting position. Protect controller boards, exposed cable joins and the power supply separately. Use the sensor for through-air ranging; do not treat the enclosure's water-resistance rating as an underwater measurement specification.
Package Includes
- 1 × DFRobot A01NYUB waterproof ultrasonic sensor
- 1 × PH2.0 four-pin connector cable
Arduino, Raspberry Pi, expansion board and power supply are not included. Wiring images show example connections, not additional package contents.