General

A01NYUB Ultrasonic Distance Sensor on pi 5 without Expansion Board

userHead Owen.Warner 2025-11-18 16:43:34 22 Views1 Replies

Hello,

I am trying to run the A01NYUB Ultrasonic Distance Sensor with my pi 5 directly (no Expansion Board).
I use the https://github.com/DFRobot/DFRobot_RaspberryPi_A02YYUW_Drift Boss library.
Unfortunately, I only get “No data!”.

Any suggestions?

2025-11-19 16:23:37

The Raspberry Pi 5’s UART pins are 3.3 V only and not 5-V tolerant. You must use a bi-directional logic-level shifter, or at least a voltage divider on the sensor’s TX to  Pi RX line.

 

userHeadPic ahsrab.rifat