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

Arduino UNO-Based Battery-Powered Robotic Car with Ultrasonic Sensor

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Battery-Powered Robotic Car with Ultrasonic Sensor

Circuit Documentation

Summary

This document provides a detailed overview of a circuit designed to control a pair of DC gear motors using an L298N motor driver and an Arduino UNO. The circuit also includes an HC-SR04 ultrasonic sensor for distance measurement and two LEDs for visual indicators. The power supply is provided by a 9V battery.

Component List

  1. Gearmotor DC Wheels Right

    • Pins: PIN1, PIN2
    • Description: A DC gear motor used for the right wheel of the robot.
  2. Gearmotor DC Wheels Left

    • Pins: PIN1, PIN2
    • Description: A DC gear motor used for the left wheel of the robot.
  3. 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: A dual H-bridge motor driver used to control the DC gear motors.
  4. Arduino UNO

    • 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
    • Description: A microcontroller board based on the ATmega328P.
  5. HC-SR04 Ultrasonic Sensor

    • Pins: VCC, TRIG, ECHO, GND
    • Description: An ultrasonic sensor used for distance measurement.
  6. Resistor (220 Ohms)

    • Pins: pin1, pin2
    • Description: A resistor with a resistance of 220 Ohms.
  7. LED: Two Pin (Red)

    • Pins: cathode, anode
    • Description: A red LED used as a visual indicator.
  8. LED: Two Pin (Green)

    • Pins: cathode, anode
    • Description: A green LED used as a visual indicator.
  9. Battery 9V

    • Pins: VCC, GND
    • Description: A 9V battery used as the power supply for the circuit.

Wiring Details

Gearmotor DC Wheels Right

Gearmotor DC Wheels Left

L298N DC Motor Driver

Arduino UNO

HC-SR04 Ultrasonic Sensor

Resistor (220 Ohms)

LED: Two Pin (Red)

LED: Two Pin (Green)

Battery 9V

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:

}

Documentation (documentation.txt)

This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and documented code.