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

Arduino UNO-Based Battery-Powered Robotic Car with Ultrasonic Sensor and Motor Control

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

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO, an HC-SR04 Ultrasonic Sensor, a DRIVER SHIELD L293D, multiple motors and wheels, a micro servo, a DC motor, a fan, a rocker switch, a toggle switch, and a battery mount. The circuit is designed to control various motors and sensors using the Arduino UNO as the central microcontroller.

Component List

  1. 4 x AAA Battery Mount

    • Pins: -, +
    • Description: Holds four AAA batteries to provide power to the circuit.
    • Purpose: Power supply for the circuit.
  2. 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.
    • Purpose: Central control unit for the circuit.
  3. HC-SR04 Ultrasonic Sensor

    • Pins: VCC, TRIG, ECHO, GND
    • Description: Ultrasonic distance sensor.
    • Purpose: Measures distance by using ultrasonic waves.
  4. DRIVER SHIELD L293D

    • Pins: RESET, 3.3V, 5V, GND, VIN, 9V, A0, A1, A2, A3, A4, A5, M2 (+), M2 GND (-), M1 (+), M1 GND (-), M3 (+), M3 GND (-), M4 GND (-), M4 (+), SERVO_2, SERVO_1, RX/D0, TX/D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, ARef, D13, D12, VCC (External Power Supply), GND (External Power Supply)
    • Description: Motor driver shield for Arduino.
    • Purpose: Controls the motors and provides power to other components.
  5. Micro servo 9G

    • Pins: GND, +5V, PWM
    • Description: Small servo motor.
    • Purpose: Provides precise control of angular position.
  6. Motor and Wheels

    • Pins: vcc, GND
    • Description: DC motor with attached wheels.
    • Purpose: Provides movement for the circuit.
  7. 1.5v Battery

    • Pins: +, minus
    • Description: Single 1.5V battery.
    • Purpose: Provides power to specific components.
  8. DC Motor

    • Pins: pin 1, pin 2
    • Description: Standard DC motor.
    • Purpose: Provides rotational movement.
  9. Fan

    • Pins: GND, 5V
    • Description: Small fan.
    • Purpose: Provides airflow.
  10. Rocker Switch

    • Pins: 1, 2
    • Description: On/Off switch.
    • Purpose: Controls power to the circuit.
  11. Toggle Switch SPST

    • Pins: L1, COM
    • Description: Single-pole single-throw switch.
    • Purpose: Controls power to specific components.

Wiring Details

4 x AAA Battery Mount

Arduino UNO

HC-SR04 Ultrasonic Sensor

DRIVER SHIELD L293D

Micro servo 9G

Motor and Wheels

1.5v Battery

DC Motor

Fan

Rocker Switch

Toggle Switch SPST

Documented Code

Arduino UNO Code

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, and the loop() function contains the main code that runs repeatedly. Currently, the code does not perform any specific actions and serves as a starting point for further development.