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

Arduino UNO-Based Battery-Powered Robotic Car with Ultrasonic and IR Sensors

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

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, motor drivers, motors, sensors, and a Bluetooth module. The circuit is designed to control motors and read sensor data, with the capability to communicate wirelessly via Bluetooth.

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. Motor amarillo motorreductor hobby

    • Description: A small DC motor with a gearbox.
    • Pins: vcc, GND
  3. L9110

    • Description: A dual-channel motor driver.
    • Pins: MOTOR B-A, MOTOR B-B, MOTOR A-A, MOTOR A-B, B-IA, B-IB, GND, VCC, A-IA, A-IB
  4. 2x 18650

    • Description: A battery pack consisting of two 18650 lithium-ion cells.
    • Pins: vcc, gnd
  5. HC-SR04 Ultrasonic Sensor

    • Description: An ultrasonic distance sensor.
    • Pins: VCC, TRIG, ECHO, GND
  6. IR Sensor

    • Description: An infrared sensor for obstacle detection.
    • Pins: out, gnd, vcc
  7. HC-06

    • Description: A Bluetooth module for wireless communication.
    • Pins: RXD, TXD, GND, VCC
  8. Rocker Switch (SPST)

    • Description: A single-pole single-throw switch.
    • Pins: 1, 2

Wiring Details

Arduino UNO

Motor amarillo motorreductor hobby

L9110

2x 18650

HC-SR04 Ultrasonic Sensor

IR Sensor

HC-06

Rocker 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 where you initialize your components and settings, and the loop() function is where the main logic of your program runs repeatedly.