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

Arduino UNO and L293D-Based Battery-Powered Robotic Vehicle with Ultrasonic Sensor

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

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an L293D motor driver, two hobby gearmotors, a micro servo, an ultrasonic sensor, and a 2x 18650 battery pack. The circuit is designed to control the motors and servo, and to read data from the ultrasonic sensor.

Component List

  1. L293D Motor Driver

    • Description: Motor driver IC used to control the direction and speed of motors.
    • Pins: 5V, GND, +, Servo1, Servo2, RX/DO, TX/D1, 9V, A0, A1, A2, A3, A4/SDA, A5/SCL, VIN, 3.3V, RESET, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13
  2. 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
  3. Hobby Gearmotor with 48:1 gearbox (Motor 1)

    • Description: DC motor with a 48:1 gearbox for increased torque.
    • Pins: pin 1, pin 2
  4. Hobby Gearmotor with 48:1 gearbox (Motor 2)

    • Description: DC motor with a 48:1 gearbox for increased torque.
    • Pins: pin 1, pin 2
  5. Micro Servo 9G

    • Description: Small servo motor used for precise control of angular position.
    • Pins: GND, +5V, PWM
  6. Ultrasonic Sensor

    • Description: Sensor used to measure distance by using ultrasonic waves.
    • Pins: +VCC, Trigger, Echo, GND
  7. 2x 18650 Battery Pack

    • Description: Battery pack consisting of two 18650 lithium-ion batteries.
    • Pins: vcc, gnd

Wiring Details

L293D Motor Driver

Arduino UNO

Hobby Gearmotor with 48:1 gearbox (Motor 1)

Hobby Gearmotor with 48:1 gearbox (Motor 2)

Micro Servo 9G

Ultrasonic Sensor

2x 18650 Battery Pack

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 or configurations, and the loop() function contains the main code that runs repeatedly. You can add your specific logic to control the motors, servo, and read data from the ultrasonic sensor within these functions.