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

Arduino UNO Controlled Ultrasonic Sensor with Servo Motor

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

Circuit Documentation

Summary of the Circuit

This circuit is designed to interface an Arduino UNO with an HC-SR04 Ultrasonic Sensor and a Servomotor SG90. The Arduino UNO acts as the central processing unit, controlling the sensor and the servomotor. The HC-SR04 is used to measure distance via ultrasonic waves, and the SG90 servomotor is used to actuate a mechanism based on the sensor's readings. The circuit is powered by a 9V battery connected to the Arduino, which also distributes power to the other components.

Component List

Arduino UNO

HC-SR04 Ultrasonic Sensor

Servomotor SG90

9V Battery

Wiring Details

Arduino UNO

HC-SR04 Ultrasonic Sensor

Servomotor SG90

9V Battery

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 HC-SR04 Ultrasonic Sensor or the Servomotor SG90. The user is expected to implement the setup and loop functions to initialize the sensor and motor and to define the interaction between them based on the sensor's readings.