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

Arduino-Based Obstacle Avoiding and Line Following Robot with IR and Ultrasonic Sensors

View and Edit Project In Cirkit DesignerImage of Arduino-Based Obstacle Avoiding and Line Following Robot with IR and Ultrasonic Sensors

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes various sensors, a motor driver, and an Arduino microcontroller. The circuit is designed to interface with multiple sensors and control motors, making it suitable for applications such as obstacle avoidance and line following in robotics.

Component List

  1. 4 Channel Infrared Tracing Module

    • Pins: VCC, GND, IN1, IN2, IN3, IN4
    • Description: Used for line following applications.
  2. IR Sensor Avoid Obstacles

    • Pins: VCC, GND, OUT
    • Description: Used for obstacle detection.
  3. HC-SR04 Ultrasonic Sensor

    • Pins: VCC, TRIG, ECHO, GND
    • Description: Used for distance measurement.
  4. LED: Two Pin (red)

    • Pins: Cathode, Anode
    • Description: Used as an indicator.
  5. Resistor

    • Pins: Pin1, Pin2
    • Description: 220 Ohms resistor used for current limiting.
  6. L298N DC Motor Driver

    • Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
    • Description: Used to drive DC motors.
  7. Arduino Sensor Shield v5.0

    • Pins: Multiple pins for various sensors and actuators.
    • Description: Provides easy connections for sensors and actuators to the Arduino.
  8. Arduino UNO

    • Pins: Multiple pins for I/O operations.
    • Description: Microcontroller used to control the circuit.
  9. Motor with Reducer

    • Pins: 3 - 6 VCC, GND
    • Description: DC motor with a gear reducer.
  10. 18650 Li-Ion

    • Pins: Positive, Negative
    • Description: Power source for the circuit.
  11. Tower Pro SG90 Servo

    • Pins: Signal, +5V, GND
    • Description: Servo motor for precise control.

Wiring Details

4 Channel Infrared Tracing Module

IR Sensor Avoid Obstacles

HC-SR04 Ultrasonic Sensor

LED: Two Pin (red)

Resistor

L298N DC Motor Driver

Arduino Sensor Shield v5.0

Arduino UNO

Motor with Reducer

18650 Li-Ion

Tower Pro SG90 Servo

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:

}

Additional Documentation (documentation.txt)

This documentation provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code for the Arduino microcontroller.