Arduino UNO Controlled Dual Motor Driver with IR Array Sensing
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to interface an Arduino UNO with a 5 channel IR array and two DC Mini Metal Gear Motors through an L293D Motor Driver. The Arduino UNO is powered by a 3.7V battery connected to its Vin and GND pins. The 5 channel IR array is powered by the 5V output from the Arduino UNO. The L293D Motor Driver is used to control the two DC motors and is powered by a separate 3.7V battery. The Arduino UNO's digital and analog pins are used to interface with the IR array and to control the motor driver.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- It has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button.
L293D Motor Driver
- A motor driver IC that allows DC motors to be driven in both directions.
- It has 16 pins and can drive two motors simultaneously.
DC Mini Metal Gear Motor
- A small DC motor with a gearbox for increased torque.
- It has 2 input pins for controlling the motor's direction.
3.7V Battery
- A power source used to power the Arduino UNO and the motors through the motor driver.
5 Channel IR Array
- An array of infrared sensors used for line tracking or obstacle detection.
- It has 5 analog outputs corresponding to each sensor and requires a VCC and GND connection.
Wiring Details
Arduino UNO
- 5V to 5 channel IR array VCC
- GND to 5 channel IR array GND, 3.7V battery -
- Vin to 3.7V battery +
- A0-A4 to 5 channel IR array A1-A5 respectively
- D3-D6 to L293D Motor Driver pins 8, 7, 6, 5 respectively
L293D Motor Driver
- Pin 5, 6, 7, 8 to Arduino UNO D6, D5, D4, D3 respectively
- Pin 10, 9 to DC Mini Metal Gear Motor 1 IN2, IN1 respectively
- Pin 12, 11 to DC Mini Metal Gear Motor 2 IN2, IN1 respectively
- Pin 3 to 3.7V battery +
- Pin 4 to 3.7V battery -
DC Mini Metal Gear Motor 1
- IN1, IN2 to L293D Motor Driver pin 9, 10 respectively
DC Mini Metal Gear Motor 2
- IN1, IN2 to L293D Motor Driver pin 11, 12 respectively
3.7V Battery 1
- + to Arduino UNO Vin
- - to Arduino UNO GND
3.7V Battery 2
- + to L293D Motor Driver pin 3
- - to L293D Motor Driver pin 4
5 Channel IR Array
- VCC to Arduino UNO 5V
- GND to Arduino UNO GND
- A1-A5 to Arduino UNO A0-A4 respectively
Documented 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
(No additional documentation provided within the code files.)