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

Arduino-Controlled Ultrasonic Sensor with Servo and Dual Motor Driver

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled Ultrasonic Sensor with Servo and Dual Motor Driver

Circuit Documentation

Summary

This circuit is designed to control a pair of DC motors using an L298N motor driver, interfaced with an Arduino UNO microcontroller. The circuit also includes an HC-SR04 ultrasonic sensor for distance measurement and a Servomotor SG90 for precise angular movement. Power is supplied by a 4.5V battery pack, and a rocker switch is used to control the power flow to the circuit.

Component List

Arduino UNO

Servomotor SG90

HC-SR04 Ultrasonic Sensor

L298N DC Motor Driver

Motor Amarillo Motorreductor Hobby (x2)

Rocker Switch

Battery AAx3 4.5V

Wiring Details

Arduino UNO

Servomotor SG90

HC-SR04 Ultrasonic Sensor

L298N DC Motor Driver

Motor Amarillo Motorreductor Hobby

Rocker Switch

Battery AAx3 4.5V

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 circuit components. The user must add the necessary code to initialize the pins and implement the control logic for the motors, servo, and ultrasonic sensor.