Arduino UNO-Based Battery-Powered Robotic System with Multiple Sensors and Motor Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, various sensors (IR, ultrasonic), a motor driver, DC motors, a buck converter, and a battery mount. The circuit is designed to interface multiple sensors and control DC motors using the Arduino UNO. The power is supplied through a buck converter connected to a 4 x AAA battery mount.
Component List
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
4 x AAA Battery Mount
- Description: A battery holder for four AAA batteries.
- Pins: -, +
Buck Converter
- Description: A DC-DC converter that steps down voltage.
- Pins: IN+, IN-, OUT+, OUT-
Sharp IR Sensor
- Description: An infrared sensor for distance measurement.
- Pins: VCC, GND, Pin
DC Motor
- Description: A simple DC motor.
- Pins: pin 1, pin 2
L298N DC Motor Driver
- Description: A 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
IR Sensor
- Description: An infrared sensor for object detection.
- Pins: out, gnd, vcc
HC-SR04 Ultrasonic Distance Sensor
- Description: An ultrasonic sensor for distance measurement.
- Pins: VCC, TRIG, ECHO, GND
Resistor
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
DIP Switch 3 Position
- Description: A 3-position DIP switch.
- Pins: 1, 2, 3, 4, 5, 6
Wiring Details
Arduino UNO
5V is connected to:
- VCC of Sharp IR Sensor
- VCC of another Sharp IR Sensor
- VCC of HC-SR04 Ultrasonic Distance Sensor
- OUT+ of Buck Converter
- VCC of IR Sensor
- VCC of another HC-SR04 Ultrasonic Distance Sensor
- Pin 5 of DIP Switch 3 Position
- Pin 6 of DIP Switch 3 Position
- VCC of another IR Sensor
- VCC of another Sharp IR Sensor
GND is connected to:
- GND of Sharp IR Sensor
- pin2 of Resistor
- GND of another Sharp IR Sensor
- GND of HC-SR04 Ultrasonic Distance Sensor
- OUT- of Buck Converter
- pin2 of another Resistor
- gnd of IR Sensor
- GND of another HC-SR04 Ultrasonic Distance Sensor
- gnd of another IR Sensor
- GND of another Sharp IR Sensor
A0 is connected to:
- out of IR Sensor
A1 is connected to:
- Pin of Sharp IR Sensor
A2 is connected to:
- Pin of another Sharp IR Sensor
A3 is connected to:
- Pin of another Sharp IR Sensor
A4 is connected to:
- out of another IR Sensor
D13 is connected to:
- IN1 of L298N DC Motor Driver
D12 is connected to:
- IN2 of L298N DC Motor Driver
D11 is connected to:
- ENA of L298N DC Motor Driver
D10 is connected to:
- ENB of L298N DC Motor Driver
D9 is connected to:
- IN3 of L298N DC Motor Driver
D8 is connected to:
- IN4 of L298N DC Motor Driver
D7 is connected to:
- pin1 of Resistor
D6 is connected to:
- pin1 of another Resistor
D5 is connected to:
- TRIG of HC-SR04 Ultrasonic Distance Sensor
D4 is connected to:
- ECHO of HC-SR04 Ultrasonic Distance Sensor
D3 is connected to:
- TRIG of another HC-SR04 Ultrasonic Distance Sensor
D2 is connected to:
- ECHO of another HC-SR04 Ultrasonic Distance Sensor
4 x AAA Battery Mount
- is connected to:
- IN- of Buck Converter
- IN- of another Buck Converter
+ is connected to:
- IN+ of Buck Converter
- IN+ of another Buck Converter
Buck Converter
OUT+ is connected to:
- 12V of L298N DC Motor Driver
OUT- is connected to:
- GND of L298N DC Motor Driver
L298N DC Motor Driver
OUT4 is connected to:
- pin 1 of DC Motor
OUT3 is connected to:
- pin 2 of DC Motor
OUT1 is connected to:
- pin 1 of another DC Motor
OUT2 is connected to:
- pin 2 of another DC Motor
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:
}
Additional Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including the components used, their connections, and the code running on the Arduino UNO.