Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Controlled Servo with Ultrasonic Sensor

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Servo with Ultrasonic Sensor

Circuit Documentation

Summary of the Circuit

This circuit integrates an Arduino UNO microcontroller with a Micro servo 9G and an HC-SR04 Ultrasonic Sensor. The Arduino UNO serves as the central processing unit, controlling the servo motor and interfacing with the ultrasonic sensor to measure distances. The servo motor is controlled via PWM signals from the Arduino, and the ultrasonic sensor is used to detect objects within its range by emitting ultrasonic waves. The circuit is powered by the 5V output from the Arduino, which is distributed to both the servo and the ultrasonic sensor.

Component List

Arduino UNO

Micro servo 9G

HC-SR04 Ultrasonic Sensor

Wiring Details

Arduino UNO

Micro servo 9G

HC-SR04 Ultrasonic Sensor

Documented Code

Arduino UNO Code (sketch.ino)

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Note: The provided code is a template and does not contain any functional code to control the servo or read the ultrasonic sensor. Additional code is required to implement the desired functionality.