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

Arduino Nano Controlled Servo with Ultrasonic Sensor

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

Circuit Documentation

Summary of the Circuit

This circuit integrates an Arduino Nano microcontroller with a Micro servo 9G and an HC-SR04 Ultrasonic Sensor. The Arduino Nano serves as the central processing unit, controlling the servo based on input from the ultrasonic sensor. The servo is actuated by a PWM signal from the Arduino, and the ultrasonic sensor provides distance measurements by sending and receiving ultrasonic pulses. The circuit is powered by the 5V output from the Arduino Nano, which is distributed to both the servo and the ultrasonic sensor. Ground connections are shared among all components to complete the circuit.

Component List

Arduino Nano

Micro servo 9G

HC-SR04 Ultrasonic Sensor

Wiring Details

Arduino Nano

Micro servo 9G

HC-SR04 Ultrasonic Sensor

Documented Code

Arduino Nano 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 specific to the operation of the circuit. The user is expected to fill in the setup and loop functions with code to initialize the pins and implement the control logic for the servo and ultrasonic sensor.