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

Arduino UNO-Based Battery-Powered Robotic System with Ultrasonic Sensor and LED Indicators

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

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfacing with an HC-SR04 Ultrasonic Sensor, a DC Motor driven by an L298P drive shield, and three LEDs (green, yellow, and red) each connected through a 220 Ohm resistor. The circuit is powered by a 9V battery connected through a power jack.

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. L298P drive shield

    • Description: A dual full-bridge driver designed to drive inductive loads such as relays, solenoids, DC and stepping motors.
    • Pins: B-, B+, A-, A+, GND, VIN
  3. DC Motor

    • Description: A simple DC motor.
    • Pins: pin 1, pin 2
  4. LED: Two Pin (green)

    • Description: A green LED.
    • Pins: cathode, anode
  5. LED: Two Pin (yellow)

    • Description: A yellow LED.
    • Pins: cathode, anode
  6. LED: Two Pin (red)

    • Description: A red LED.
    • Pins: cathode, anode
  7. Resistor (220 Ohms)

    • Description: A resistor with a resistance of 220 Ohms.
    • Pins: pin1, pin2
  8. HC-SR04 Ultrasonic Sensor

    • Description: An ultrasonic sensor for distance measurement.
    • Pins: VCC, TRIG, ECHO, GND
  9. Power jack

    • Description: A power jack for connecting the 9V battery.
    • Pins: POSITIF, NEGATIF
  10. 9V Battery

    • Description: A 9V battery for powering the circuit.
    • Pins: +, -

Wiring Details

Arduino UNO

L298P drive shield

HC-SR04 Ultrasonic Sensor

DC Motor

LED: Two Pin (green)

LED: Two Pin (yellow)

LED: Two Pin (red)

Resistor (220 Ohms)

Power jack

9V Battery

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)