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

Arduino UNO-Based Battery-Powered Robotic Vehicle with IR and Ultrasonic Sensors

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

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, various sensors, a motor driver, DC motors, a servo, an LCD display, a buzzer, and a power supply. The circuit is designed to interface with multiple sensors and actuators, providing control and feedback through the Arduino UNO.

Component List

  1. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  2. L298N DC Motor Driver

    • Description: A dual H-Bridge motor driver module.
    • 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
  3. DC Motor

    • Description: A simple DC motor.
    • Pins: pin 1, pin 2
  4. IR Sensor

    • Description: An infrared sensor for obstacle detection.
    • Pins: out, gnd, vcc
  5. 9V Battery

    • Description: A 9V battery for power supply.
    • Pins: -, +
  6. Rocker Switch (SPST)

    • Description: A single-pole single-throw switch.
    • Pins: 1, 2
  7. HC-SR04 Ultrasonic Sensor

    • Description: An ultrasonic distance sensor.
    • Pins: VCC, TRIG, ECHO, GND
  8. 16x2 I2C LCD

    • Description: A 16x2 character LCD display with I2C interface.
    • Pins: GND, VCC, SDA, SCL
  9. Buzzer

    • Description: A simple piezoelectric buzzer.
    • Pins: PIN, GND
  10. Micro Servo 9G

    • Description: A small servo motor.
    • Pins: GND, +5V, PWM

Wiring Details

Arduino UNO

L298N DC Motor Driver

DC Motor

IR Sensor

9V Battery

Rocker Switch (SPST)

HC-SR04 Ultrasonic Sensor

16x2 I2C LCD

Buzzer

Micro Servo 9G

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 code is a basic template for the Arduino UNO. The setup() function is used to initialize any settings or configurations, and the loop() function contains the main code that runs repeatedly. You can add your specific logic and functionality within these functions to control the various components connected to the Arduino UNO.