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

Arduino UNO-Based Line Following Robot with IR Obstacle Detection

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Line Following Robot with IR Obstacle Detection

Circuit Documentation

Summary

This circuit is designed to interface an Arduino UNO with various sensors and a motor driver to control two DC Mini Metal Gear Motors. The sensors include a Line Sensor, an IR sensor, and two TCRT-5000 IR sensors. The L298N DC motor driver is used to drive the motors, and the entire system is powered by two 18650 Li-ion batteries. The Arduino UNO serves as the central processing unit, reading sensor inputs and controlling the motor outputs.

Component List

Arduino UNO

Line Sensor

IR Sensor

TCRT-5000 IR Sensor (x2)

L298N DC Motor Driver

DC Mini Metal Gear Motor (x2)

18650 Li-ion Battery x 2

Wiring Details

Arduino UNO

Line Sensor

IR Sensor

TCRT-5000 IR Sensors

L298N DC Motor Driver

DC Mini Metal Gear Motors

18650 Li-ion Batteries

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:

}

This is the template code for the Arduino UNO. The setup() function is called once when the microcontroller is powered on or reset. It is used to initialize the pins and set up the initial state of the program. The loop() function is called repeatedly and contains the main logic of the program. It will read sensor inputs, process them, and control the motor outputs accordingly.

Additional Notes