ChatDiagram
arduino · sensors

Arduino Ultrasonic Servo Wiring

This Arduino wiring schematic connects an HC-SR04 ultrasonic distance sensor and a small servo to an Arduino Uno. The Arduino sends a trigger pulse, measures the echo pulse, and uses that measurement to command the servo. A shared 5 V supply and ground are essential for the signal references to work. The capacitor provides local supply smoothing, but a servo can draw more current than an Arduino USB port should provide. For a moving mechanism, use a suitably rated external 5 V supply and keep its ground connected to the Arduino ground. Check the exact board pin labels in the accompanying sketch and keep sensor cables short where possible.

Type Circuit schematicStandard IEEE Std 315 / ANSI Y32.2Engine schematex-circuitUpdated 9/24/2026
Arduino Ultrasonic Servo Wiring
Drawing preview
The request

“Draw an Arduino Uno circuit with a 5 V supply, 100 µF capacitor, HC-SR04 ultrasonic sensor on trigger and echo pins, and a 5 V servo on a signal pin.”

Then tryAdd a 220 Ω resistor on the trigger line.Change the servo label to Pan servo.
What is in this drawing

Read the decisions behind it.

01Supply

Give the board, sensor, and servo a common 5 V return.

02Sensor pins

Connect trigger and echo to Arduino signal pins.

03Actuator

Connect the servo control lead to a separate output pin.

Use for a small Arduino distance-sensing project that moves a servo.

More like this

Other examples in this family.

Browse all circuit diagram templates →

FAQ

Common questions

Why must grounds be shared?

The sensor and servo signals need the same voltage reference as the Arduino to be read correctly.

Can the Arduino power a servo?

A small unloaded servo may work temporarily, but an external regulated 5 V supply is safer for moving loads.

What does the HC-SR04 provide?

It emits an ultrasonic pulse and returns an echo timing signal that the Arduino converts to distance.