“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.”
Read the decisions behind it.
Give the board, sensor, and servo a common 5 V return.
Connect trigger and echo to Arduino signal pins.
Connect the servo control lead to a separate output pin.
Use for a small Arduino distance-sensing project that moves a servo.
Other examples in this family.
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.