US-100 ultrasonic distance with ESP32
Supply 3.3-5 V
Bus GPIO
Measures distance, temperature
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| VCC | Power | 3V3 | |
| TRIG/TX | Input (the ESP32 drives it) | D25 | With the jumper on: UART TX of the ESP32 goes here. Jumper off: trigger input |
| ECHO/RX | Output (the part drives it) | D26 | With the jumper on: UART, connect to ESP32 RX. Jumper off: echo output |
| GND | Ground | GND | |
| GND2 | Ground | GND | Second 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
- US-100 ultrasonic module manual, Jumper selects UART (9600 baud) or trigger/echo mode; supply 2.4 to 5.5 V
Try it in 3D in BoardPilot
Related parts
A02YYUW waterproof ultrasonic distance (UART)A3144 hall effect switchAM312 mini PIR motion sensorATGM336H GPS/BeiDou moduleBeitian BN-220 GPS moduleBenewake TF-Luna LiDAR (UART mode)
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.