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

Arduino Uno R3 Controlled Robotic Vehicle with Sensors and Actuators

Image of Arduino Uno R3 Controlled Robotic Vehicle with Sensors and Actuators

Circuit Documentation

Summary

This circuit is designed to interface various sensors, actuators, and a motor driver with an Arduino Uno R3 microcontroller. The circuit includes IR sensors for object detection, an HC-SR04 ultrasonic sensor for distance measurement, SG90 servos for actuation, and a set of hobby gearmotors controlled by an L298N motor driver. A rocker switch is used to control power to the motor driver, and a 2x 18650 battery pack provides the power source. The circuit is likely intended for a small robot or an automated system that requires sensing and actuation capabilities.

Component List

Arduino Uno R3

  • Microcontroller board based on the ATmega328P
  • Features digital I/O pins, analog input pins, and various power pins

2x 18650 Battery Pack

  • Provides power to the circuit
  • Consists of two 18650 lithium-ion rechargeable batteries

Rocker Switch

  • Used to control the power flow to the motor driver
  • Has input and output pins for switching

L298N DC Motor Driver

  • Used to control the speed and direction of DC motors
  • Features inputs for motor control signals and outputs for motor connections

IR Sensors

  • Used for object detection or line tracking
  • Each sensor has an output, ground, and VCC pin

HC-SR04 Ultrasonic Sensor

  • Measures distances using ultrasonic waves
  • Has VCC, TRIG, ECHO, and GND pins

Tower Pro SG90 Servos

  • Small servos used for precise angular movement
  • Each servo has a signal, power (+5V), and ground (GND) pin

Hobby Gearmotors with 48:1 Gearbox

  • DC motors with attached gearboxes for increased torque
  • Each motor has two pins for electrical connection

Comment

  • A placeholder for additional notes or comments about the circuit

Wiring Details

Arduino Uno R3

  • 5V connected to various components for power
  • GND connected to various components for common ground
  • VIN connected to the output of the rocker switch for motor driver power
  • A0 connected to the output of one IR sensor
  • A1 connected to the output of another IR sensor
  • A2 connected to the ECHO pin of the HC-SR04 ultrasonic sensor
  • A3 connected to the TRIG pin of the HC-SR04 ultrasonic sensor
  • A5/SCL connected to the signal pin of one SG90 servo
  • Digital pins 2 to 10 connected to signal pins of servos and control pins of the L298N motor driver

2x 18650 Battery Pack

  • vcc connected to the input of the rocker switch
  • gnd connected to the common ground net

Rocker Switch

  • input connected to the VCC of the 2x 18650 battery pack
  • output connected to the 12V pin of the L298N motor driver and VIN of the Arduino Uno R3

L298N DC Motor Driver

  • 12V connected to the output of the rocker switch
  • GND connected to the common ground net
  • ENA, ENB, IN1, IN2, IN3, IN4 connected to various digital pins on the Arduino Uno R3 for motor control
  • OUT1, OUT2, OUT3, OUT4 connected to the pins of the hobby gearmotors

IR Sensors

  • vcc connected to the 5V pin of the Arduino Uno R3
  • gnd connected to the common ground net
  • out connected to the A0 and A1 pins of the Arduino Uno R3

HC-SR04 Ultrasonic Sensor

  • VCC connected to the 5V pin of the Arduino Uno R3
  • GND connected to the common ground net
  • ECHO connected to the A2 pin of the Arduino Uno R3
  • TRIG connected to the A3 pin of the Arduino Uno R3

Tower Pro SG90 Servos

  • Signal connected to various digital pins on the Arduino Uno R3
  • +5V connected to the 5V pin of the Arduino Uno R3
  • GND connected to the common ground net

Hobby Gearmotors with 48:1 Gearbox

  • pin 1 and pin 2 of each motor connected to the corresponding OUT pins of the L298N motor driver

Documented Code

No code has been provided for the microcontroller. The documentation of the code would typically include descriptions of the functionality implemented for each pin, initialization routines, main control loops, interrupt service routines, and any libraries used for interfacing with the components. Since no code is available, this section cannot be completed.