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

Arduino UNO Controlled Servomotor with HC-SR04 Ultrasonic Sensor

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Servomotor with HC-SR04 Ultrasonic Sensor

Circuit Documentation

Summary

The circuit in question consists of an Arduino UNO microcontroller, a Servomotor SG90, and an HC-SR04 Ultrasonic Sensor. The Arduino UNO serves as the central processing unit, controlling the servomotor and interfacing with the ultrasonic sensor to possibly measure distance or detect objects. The servomotor is likely used for some form of motion or position control, and the ultrasonic sensor is used for distance measurements or proximity detection.

Component List

Arduino UNO

Servomotor SG90

HC-SR04 Ultrasonic Sensor

Wiring Details

Arduino UNO

Servomotor SG90

HC-SR04 Ultrasonic Sensor

Documented Code

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

}

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

}

File Name: sketch.ino

The provided code is a template with the standard setup() and loop() functions for an Arduino sketch. The setup() function is intended to contain initialization code that runs once when the microcontroller is powered on or reset. The loop() function contains the main logic of the sketch, which runs repeatedly as long as the microcontroller is powered. Additional code would be required to control the servomotor and read data from the ultrasonic sensor.