Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO Controlled Battery-Powered Robotic Car with Ultrasonic Sensor

Image of Arduino UNO Controlled Battery-Powered Robotic Car with Ultrasonic Sensor

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO, an HC-SR04 Ultrasonic Sensor, multiple motors with reducers, a 4 x AAA Battery Mount, and an L293D motor driver. The circuit is designed to control the motors based on the input from the ultrasonic sensor, with the Arduino UNO serving as the central microcontroller.

Component List

HC-SR04 Ultrasonic Sensor

  • Description: Ultrasonic distance sensor
  • Pins: VCC, TRIG, ECHO, GND

Motor with Reducer

  • Description: DC motor with a gear reducer
  • Pins: 3 - 6 VCC, GND

4 x AAA Battery Mount

  • Description: Battery holder for four AAA batteries
  • Pins: -, +

Arduino UNO

  • Description: 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

L293D Motor Driver

  • Description: Dual H-Bridge motor driver IC
  • Pins: enable 1, input 1, output 1, gnd, output 2, input 2, vs, vss, input 4, output 4, output 3, input 3, enable 2

Wiring Details

HC-SR04 Ultrasonic Sensor

  • VCC connected to vss of L293D Motor Driver and + of 4 x AAA Battery Mount
  • TRIG connected to D12 of Arduino UNO
  • ECHO connected to D11 of Arduino UNO
  • GND connected to GND of Arduino UNO and gnd of L293D Motor Driver

Motor with Reducer

  • 3 - 6 VCC of two motors connected to output 1 of L293D Motor Driver
  • GND of two motors connected to output 2 of L293D Motor Driver
  • 3 - 6 VCC of two other motors connected to output 3 of L293D Motor Driver
  • GND of two other motors connected to output 4 of L293D Motor Driver

4 x AAA Battery Mount

  • + connected to vss of L293D Motor Driver and VCC of HC-SR04 Ultrasonic Sensor
  • - connected to GND of Arduino UNO and gnd of L293D Motor Driver

Arduino UNO

  • D5 connected to enable 1 of L293D Motor Driver
  • D6 connected to input 2 of L293D Motor Driver
  • D7 connected to input 1 of L293D Motor Driver
  • D8 connected to input 3 of L293D Motor Driver
  • D9 connected to input 4 of L293D Motor Driver
  • D3 connected to enable 2 of L293D Motor Driver
  • D12 connected to TRIG of HC-SR04 Ultrasonic Sensor
  • D11 connected to ECHO of HC-SR04 Ultrasonic Sensor
  • GND connected to GND of HC-SR04 Ultrasonic Sensor and gnd of L293D Motor Driver

L293D Motor Driver

  • enable 1 connected to D5 of Arduino UNO
  • input 1 connected to D7 of Arduino UNO
  • input 2 connected to D6 of Arduino UNO
  • input 3 connected to D8 of Arduino UNO
  • input 4 connected to D9 of Arduino UNO
  • enable 2 connected to D3 of Arduino UNO
  • vs connected to vss and + of 4 x AAA Battery Mount
  • vss connected to vs and + of 4 x AAA Battery Mount
  • gnd connected to GND of Arduino UNO and - of 4 x AAA Battery Mount

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.