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

The circuit in question consists of an Arduino UNO microcontroller, an HC-SR04 Ultrasonic Sensor, and a Servomotor SG90. The Arduino UNO serves as the central processing unit, controlling the sensor and the servomotor. The HC-SR04 is used to measure distances via ultrasonic waves, and the Servomotor SG90 is used to actuate or move to specific positions based on the control signals from the Arduino. The circuit is powered by the 5V output from the Arduino, which is distributed to both the ultrasonic sensor and the servomotor. Ground connections are shared among all components to complete the circuit.

Component List

Arduino UNO

HC-SR04 Ultrasonic Sensor

Servomotor SG90

Wiring Details

Arduino UNO

HC-SR04 Ultrasonic Sensor

Servomotor SG90

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:

}

This code is a template for the Arduino UNO. The setup() function is intended to contain initialization code that runs once at the start, such as pin mode declarations. The loop() function is designed to contain the main logic of the program, which will run repeatedly.

Note: The actual functionality needs to be implemented within these functions to control the HC-SR04 Ultrasonic Sensor and the Servomotor SG90 based on the requirements of the application.


End of Documentation