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

Arduino-Controlled Robot with Ultrasonic Sensor and Dual DC Motors

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled Robot with Ultrasonic Sensor and Dual DC Motors

Circuit Documentation

Summary

This circuit is designed to control a servo and two DC motors using an Arduino UNO microcontroller. It also includes an HC-SR04 Ultrasonic Distance Sensor for distance measurement. The Arduino UNO is powered by a 3xAAA Battery Pack and regulates power to the servo and the ultrasonic sensor. The DC motors are driven by an L298N DC motor driver, which is also powered by the battery pack. The Arduino UNO interfaces with the motor driver to control the speed and direction of the motors, and with the servo and ultrasonic sensor for their respective functions.

Component List

Arduino UNO

Servo

DC Motor (x2)

L298N DC Motor Driver

3xAAA Battery Pack with Switch and JST

HC-SR04 Ultrasonic Distance Sensor (Wokwi Compatible)

Wiring Details

Arduino UNO

Servo

DC Motor #1

DC Motor #2

L298N DC Motor Driver

3xAAA Battery Pack with Switch and JST

HC-SR04 Ultrasonic Distance 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 components. It needs to be populated with the appropriate setup and loop functions to initialize and control the servo, DC motors, and the ultrasonic sensor.