Battery-Powered Dual DC Motor Control System with IR Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes a power source, motor driver, DC motors, IR sensors, and a logic gate IC. The circuit is designed to control the operation of two DC motors based on the input from two IR sensors. The MX1508 DC Motor Driver is used to drive the motors, and the 74HC00 IC is used for logic operations.
Component List
3xAA Battery
- Pins: VCC, GND
- Description: Provides power to the circuit.
- Purpose: Power source for the entire circuit.
DC Motor (2 units)
- Pins: pin 1, pin 2
- Description: Converts electrical energy into mechanical motion.
- Purpose: Drives mechanical components.
MX1508 DC Motor Driver
- Pins: OUT 4, OUT 3, OUT 2, OUT1, IN 1, IN 2, IN 3, IN 4, Negative (-), Positive (+)
- Description: Controls the speed and direction of the DC motors.
- Purpose: Motor driver for the DC motors.
74HC00
- Pins: 1A, 1B, 1Y, 2A, 2B, 2Y, GND, 3Y, 3A, 3B, 4Y, 4A, 4B, VCC
- Description: Quad 2-input NAND gate.
- Purpose: Logic operations for controlling the motor driver.
IR Sensor (2 units)
- Pins: out, gnd, vcc
- Description: Detects infrared light.
- Purpose: Provides input signals based on IR detection.
Wiring Details
3xAA Battery
VCC is connected to:
- vcc of IR Sensor 1
- vcc of IR Sensor 2
- Positive (+) of MX1508 DC Motor Driver
GND is connected to:
- gnd of IR Sensor 1
- gnd of IR Sensor 2
- GND of 74HC00
- Negative (-) of MX1508 DC Motor Driver
DC Motor 1
- pin 1 is connected to OUT 3 of MX1508 DC Motor Driver
- pin 2 is connected to OUT 4 of MX1508 DC Motor Driver
DC Motor 2
- pin 1 is connected to OUT1 of MX1508 DC Motor Driver
- pin 2 is connected to OUT 2 of MX1508 DC Motor Driver
MX1508 DC Motor Driver
- Positive (+) is connected to VCC of 3xAA Battery
- Negative (-) is connected to GND of 3xAA Battery
- IN 1 is connected to 2A of 74HC00
- IN 2 is connected to 1Y of 74HC00
- IN 3 is connected to 1B of 74HC00
- IN 4 is connected to 1A of 74HC00
- OUT 1 is connected to pin 1 of DC Motor 2
- OUT 2 is connected to pin 2 of DC Motor 2
- OUT 3 is connected to pin 1 of DC Motor 1
- OUT 4 is connected to pin 2 of DC Motor 1
74HC00
- 1A is connected to out of IR Sensor 1
- 1B is connected to IN 3 of MX1508 DC Motor Driver
- 1Y is connected to out of IR Sensor 2
- 2A is connected to IN 1 of MX1508 DC Motor Driver
- GND is connected to GND of 3xAA Battery
- VCC is connected to VCC of 3xAA Battery
IR Sensor 1
- vcc is connected to VCC of 3xAA Battery
- gnd is connected to GND of 3xAA Battery
- out is connected to 1A of 74HC00
IR Sensor 2
- vcc is connected to VCC of 3xAA Battery
- gnd is connected to GND of 3xAA Battery
- out is connected to 1Y of 74HC00
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