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

Arduino-Controlled Dual Motor Robot with Obstacle Detection

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled Dual Motor Robot with Obstacle Detection

Circuit Documentation

Summary

This circuit is designed to control two DC motors using an Arduino UNO and an L298N DC motor driver. It also includes two IR sensors for object detection and an HC-SR04 ultrasonic sensor for distance measurement. The circuit is powered by a 12V battery, which also supplies power to the motor driver. The Arduino UNO manages the sensors and motor driver through its GPIO pins.

Component List

Arduino UNO

L298N DC Motor Driver

DC Motor (x2)

Battery 12V

HC-SR04 Ultrasonic Sensor

IR Sensor (x2)

Wiring Details

Arduino UNO

L298N DC Motor Driver

DC Motors

Battery 12V

HC-SR04 Ultrasonic Sensor

IR Sensors

Documented Code

sketch.ino

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

documentation.txt

The code for the Arduino UNO is currently a template with empty setup and loop functions. The setup function is intended to initialize the pins and any libraries needed for the sensors and motor driver. The loop function will contain the main logic for reading sensor values, processing them, and controlling the motors accordingly.