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

Arduino-Controlled Dual DC Motor with IR Sensor Feedback

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled Dual DC Motor with IR Sensor Feedback

Circuit Documentation

Summary of the Circuit

This circuit is designed to control two DC motors using an Arduino UNO microcontroller and an L298N DC motor driver. Additionally, two IR sensors are included for input sensing. The Arduino UNO is responsible for processing the signals from the IR sensors and driving the motors through the L298N motor driver based on the sensor inputs. The motors are powered by a 9V battery, which also supplies power to the motor driver. The Arduino UNO is powered through its Vin pin, which is connected to the 5V output of the motor driver, and it controls the motor driver using several of its digital I/O pins.

Component List

IR Sensor

DC Motor

Arduino UNO

L298N DC Motor Driver

9V Battery

Wiring Details

IR Sensor

DC Motor

Arduino UNO

L298N DC Motor Driver

9V Battery

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:

}

The provided code is a template with empty setup() and loop() functions. The setup() function is intended to contain initialization code that runs once when the Arduino is powered on or reset. The loop() function is meant to contain the main logic of the program, which runs repeatedly as long as the Arduino is powered.

Additional Notes