Wiring
Wire and mount the ultrasonic sensor.
1. Connect the sensor
Disconnect power. Keep the servo connections from Final Wiring in place.
| Pin | Connect to |
|---|---|
| VCC | Supply rated for your sensor |
| TRIG | D6 (GPIO 12) |
| ECHO | D7 (GPIO 13) for 3.3 V logic |
| GND | Shared NodeMCU and servo ground |
2. Mount and check
- Mount the sensor on the pan assembly so it faces straight ahead at 90°.
- With power off, check clearance across pan 0–180° and tilt 90–180°. Leave cable slack and keep the cable clear of the firing mechanism.