Arduino UNO-Based Battery-Powered Dual DC Motor Robot with IR Sensor
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, a DC motor driver, two DC motors, a 5-channel IR sensor, a buck converter, and a Polymer Lithium Ion Battery. The circuit is designed to control the DC motors based on inputs from the IR sensor, with power management handled by the buck converter and the battery.
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
DC Motor (Motor 1)
- Description: A generic DC motor.
- Pins: pin 1, pin 2
DC Motor (Motor 2)
- Description: A generic 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
5 Channel IR Sensor
- Description: An IR sensor module with 5 channels.
- Pins: VCC, GND, S1, S2, S3, S4, S5, CLP, Near
Buck Converter
- Description: A DC-DC converter to step down voltage.
- Pins: IN+, IN-, OUT+, OUT-
Polymer Lithium Ion Battery - Generic
- Description: A generic rechargeable battery.
- Pins: GND, VCC
Wiring Details
Arduino UNO
GND connected to:
- 5 Channel IR Sensor (GND)
- Buck Converter (OUT-)
Vin connected to:
- 5 Channel IR Sensor (VCC)
- Buck Converter (OUT+)
A0 connected to:
- 5 Channel IR Sensor (S1)
A1 connected to:
- 5 Channel IR Sensor (S2)
A2 connected to:
- 5 Channel IR Sensor (S3)
A3 connected to:
- 5 Channel IR Sensor (S4)
A4 connected to:
- 5 Channel IR Sensor (S5)
D10 connected to:
- L298N DC Motor Driver (ENB)
D9 connected to:
- L298N DC Motor Driver (ENA)
D5 connected to:
- L298N DC Motor Driver (IN2)
D4 connected to:
- L298N DC Motor Driver (IN1)
D3 connected to:
- L298N DC Motor Driver (IN4)
D2 connected to:
- L298N DC Motor Driver (IN3)
DC Motor (Motor 1)
pin 1 connected to:
- L298N DC Motor Driver (OUT1)
pin 2 connected to:
- L298N DC Motor Driver (OUT2)
DC Motor (Motor 2)
pin 1 connected to:
- L298N DC Motor Driver (OUT4)
pin 2 connected to:
- L298N DC Motor Driver (OUT3)
L298N DC Motor Driver
GND connected to:
- Polymer Lithium Ion Battery (GND)
- Buck Converter (IN-)
5V connected to:
- Polymer Lithium Ion Battery (VCC)
- Buck Converter (IN+)
5 Channel IR Sensor
GND connected to:
- Arduino UNO (GND)
VCC connected to:
- Arduino UNO (Vin)
S1 connected to:
- Arduino UNO (A0)
S2 connected to:
- Arduino UNO (A1)
S3 connected to:
- Arduino UNO (A2)
S4 connected to:
- Arduino UNO (A3)
S5 connected to:
- Arduino UNO (A4)
Buck Converter
IN- connected to:
- Polymer Lithium Ion Battery (GND)
- L298N DC Motor Driver (GND)
IN+ connected to:
- Polymer Lithium Ion Battery (VCC)
- L298N DC Motor Driver (5V)
OUT- connected to:
- Arduino UNO (GND)
OUT+ connected to:
- Arduino UNO (Vin)
Polymer Lithium Ion Battery - Generic
GND connected to:
- L298N DC Motor Driver (GND)
- Buck Converter (IN-)
VCC connected to:
- L298N DC Motor Driver (5V)
- Buck Converter (IN+)
Code Documentation
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:
}
documentation.txt