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

Arduino-Controlled Dual Motor Driver with Ultrasonic Sensing

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

Circuit Documentation

Summary of the Circuit

This circuit is designed to control two hobby gearmotors using an L298N DC motor driver, which is interfaced with an Arduino UNO microcontroller. The Arduino UNO also interfaces with an HC-SR04 Ultrasonic Sensor for distance measurement. The entire circuit is powered by a Li-ion battery, which provides the necessary voltage for the motor driver and the microcontroller through voltage regulation.

Component List

L298N DC Motor Driver

Hobby Gearmotor with 48:1 Gearbox (x2)

Li-ion Battery, 2200 mAh 11.1 V

Arduino UNO

HC-SR04 Ultrasonic Sensor

Wiring Details

L298N DC Motor Driver

Hobby Gearmotor with 48:1 Gearbox

Li-ion Battery, 2200 mAh 11.1 V

Arduino UNO

HC-SR04 Ultrasonic 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 motors or read the ultrasonic sensor. The user must implement the control logic and sensor reading code within the setup() and loop() functions.