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

Arduino UNO-Powered Robotic Vehicle with Ultrasonic and IR Sensors

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Powered Robotic Vehicle with Ultrasonic and IR Sensors

Circuit Documentation

Summary

This circuit is designed to interface an Arduino UNO with various sensors, actuators, and a motor driver. It includes ultrasonic sensors for distance measurement, IR sensors for object detection, a servo motor for precise angular movement, DC gearmotors for driving wheels, a motor driver to control the gearmotors, LEDs for visual indication, a buzzer for audio signaling, and a water pump for fluid movement. The circuit is powered by a 12V battery, with voltage regulation provided by the Arduino UNO and the motor driver module.

Component List

Arduino UNO

HC-SR04 Ultrasonic Sensor

Gearmotor DC Wheels (Right and Left)

L298N Motor Driver Controller Board Module

12V Battery (Small Size)

Servo

IR Sensor

Water Pump

LED: Two Pin (Red)

Resistor

Buzzer

Wiring Details

Arduino UNO

HC-SR04 Ultrasonic Sensor

Gearmotor DC Wheels (Right and Left)

L298N Motor Driver Controller Board Module

12V Battery (Small Size)

Servo

IR Sensor

Water Pump

LED: Two Pin (Red)

Resistor

Buzzer

Documented Code

// Code for the Arduino UNO
// Filename: sketch.ino

// Define pin connections & constants
const int triggerPin = 7;
const int echoPin = 6;
const int motorInputPins[] = {2, 3, 4, 5};
const int irSensorPins[] = {A0, A1, A2};
const int ledPins[] = {10, 12};
const int servoPin = 9;
const int waterPumpPin = 8;
const int buzzerPin = 11;

void setup() {
  // Initialize all connected pins
  pinMode(triggerPin, OUTPUT);
  pinMode(echoPin, INPUT);
  for (int i = 0; i < 4; i++) {
    pinMode(motorInputPins[i], OUTPUT);
  }
  for (int i = 0; i < 3; i++) {
    pinMode(irSensorPins[i], INPUT);
  }
  for (int i = 0; i < 2; i++) {
    pinMode(ledPins[i], OUTPUT);
  }
  pinMode(servoPin, OUTPUT);
  pinMode(waterPumpPin, OUTPUT);
  pinMode(buzzerPin, OUTPUT);
}

void loop() {
  // Main code loop
  // Add functionality as per application requirements
}

Note: The provided code is a template and does not include specific functionality. It initializes the pins and sets their modes according to the circuit connections. The user should add the actual logic for reading sensors, controlling actuators, and implementing the desired behavior of the system.