US-100 ultrasonic distance with ESP32

Supply 3.3-5 V Bus GPIO Measures distance, temperature
VCCTRIG/TXECHO/RXGNDGND2

Pins and ESP32 wiring

PinRoleESP32 pinNotes
VCCPower3V3
TRIG/TXInput (the ESP32 drives it)D25With the jumper on: UART TX of the ESP32 goes here. Jumper off: trigger input
ECHO/RXOutput (the part drives it)D26With the jumper on: UART, connect to ESP32 RX. Jumper off: echo output
GNDGroundGND
GND2GroundGNDSecond ground pin, same as GND

Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.

Sources

Try it in 3D in BoardPilot

BoardPilot Part data (JSON)

Related parts

Part data: CC BY 4.0, free to reuse with credit to BoardPilot.