Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, two L298N DC motor drivers, four DC motors, and three 9V batteries. The Arduino UNO controls the motor drivers, which in turn drive the DC motors. The 9V batteries provide the necessary power to the motor drivers.
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
L298N DC Motor Driver (1)
- 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
L298N DC Motor Driver (2)
- 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
DC Motor (1)
- Description: A simple DC motor.
- Pins: pin 1, pin 2
DC Motor (2)
- Description: A simple DC motor.
- Pins: pin 1, pin 2
DC Motor (3)
- Description: A simple DC motor.
- Pins: pin 1, pin 2
DC Motor (4)
- Description: A simple DC motor.
- Pins: pin 1, pin 2
9V Battery (1)
- Description: A 9V battery for power supply.
- Pins: -, +
9V Battery (2)
- Description: A 9V battery for power supply.
- Pins: -, +
9V Battery (3)
- Description: A 9V battery for power supply.
- Pins: -, +
Wiring Details
Arduino UNO
- D11 connected to IN1 of L298N DC Motor Driver (2)
- D10 connected to IN2 of L298N DC Motor Driver (2)
- D9 connected to IN3 of L298N DC Motor Driver (2)
- D8 connected to IN4 of L298N DC Motor Driver (2)
- D7 connected to IN2 of L298N DC Motor Driver (1)
- D6 connected to IN1 of L298N DC Motor Driver (1)
- D5 connected to IN3 of L298N DC Motor Driver (1)
- D4 connected to IN4 of L298N DC Motor Driver (1)
L298N DC Motor Driver (1)
- IN1 connected to D6 of Arduino UNO
- IN2 connected to D7 of Arduino UNO
- IN3 connected to D5 of Arduino UNO
- IN4 connected to D4 of Arduino UNO
- OUT1 connected to pin 1 of DC Motor (1)
- OUT2 connected to pin 2 of DC Motor (1)
- OUT3 connected to pin 2 of DC Motor (2)
- OUT4 connected to pin 1 of DC Motor (2)
- 12V connected to + of 9V Battery (1)
- GND connected to - of 9V Battery (1)
L298N DC Motor Driver (2)
- IN1 connected to D11 of Arduino UNO
- IN2 connected to D10 of Arduino UNO
- IN3 connected to D9 of Arduino UNO
- IN4 connected to D8 of Arduino UNO
- OUT1 connected to pin 1 of DC Motor (3)
- OUT2 connected to pin 2 of DC Motor (3)
- OUT3 connected to pin 2 of DC Motor (4)
- OUT4 connected to pin 1 of DC Motor (4)
- 12V connected to + of 9V Battery (2)
- GND connected to - of 9V Battery (2)
DC Motor (1)
- pin 1 connected to OUT1 of L298N DC Motor Driver (1)
- pin 2 connected to OUT2 of L298N DC Motor Driver (1)
DC Motor (2)
- pin 1 connected to OUT4 of L298N DC Motor Driver (1)
- pin 2 connected to OUT3 of L298N DC Motor Driver (1)
DC Motor (3)
- pin 1 connected to OUT1 of L298N DC Motor Driver (2)
- pin 2 connected to OUT2 of L298N DC Motor Driver (2)
DC Motor (4)
- pin 1 connected to OUT4 of L298N DC Motor Driver (2)
- pin 2 connected to OUT3 of L298N DC Motor Driver (2)
9V Battery (1)
- + connected to 12V of L298N DC Motor Driver (1)
- - connected to GND of L298N DC Motor Driver (1)
9V Battery (2)
- + connected to 12V of L298N DC Motor Driver (2)
- - connected to GND of L298N DC Motor Driver (2)
9V Battery (3)
- + connected to 5V of L298N DC Motor Driver (2)
- - connected to GND of L298N DC Motor Driver (2)
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:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.
