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

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

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

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, various sensors, motors, a motor driver, a rocker switch, and a power source. The circuit is designed to interface with multiple sensors and control motors using the Arduino UNO. The document includes a component list, wiring details, and the embedded code used in the microcontroller.

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. IR Sensor (x2)

    • Description: Infrared sensor for object detection.
    • Pins: out, gnd, vcc
  3. Motor amarillo motorreductor hobby (x4)

    • Description: Hobby DC motor with gear reduction.
    • Pins: vcc, GND
  4. L298N DC Motor Driver

    • Description: Dual H-Bridge motor driver.
    • Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
  5. Rocker Switch

    • Description: A simple on/off switch.
    • Pins: output, input
  6. HC-SR04 Ultrasonic Sensor

    • Description: Ultrasonic distance sensor.
    • Pins: VCC, TRIG, ECHO, GND
  7. 18650 Li-ion Battery x 2

    • Description: Rechargeable lithium-ion battery.
    • Pins: +, -
  8. Micro Servo 9G

    • Description: Small servo motor.
    • Pins: GND, +5V, PWM

Wiring Details

Arduino UNO

IR Sensor (x2)

Motor amarillo motorreductor hobby (x4)

L298N DC Motor Driver

Rocker Switch

HC-SR04 Ultrasonic Sensor

18650 Li-ion Battery x 2

Micro Servo 9G

Code Documentation

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 logic that runs repeatedly. You can add your specific logic and sensor/motor control code within these functions.