Circuit Documentation
Summary
This circuit utilizes an Arduino UNO microcontroller to control two DC motors through an L298N DC motor driver. The power supply is provided by a battery pack consisting of two 18650 lithium-ion cells. The Arduino communicates with the motor driver to control the speed and direction of the motors.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Purpose: Acts as the main control unit for the circuit, sending signals to the motor driver to control the motors.
L298N DC Motor Driver
- Description: A dual H-bridge motor driver that can control the direction and speed of two DC motors.
- Purpose: Interfaces between the Arduino and the DC motors, allowing for control of motor direction and speed.
2x 18650 Lithium-Ion Battery
- Description: A rechargeable lithium-ion battery pack.
- Purpose: Provides the necessary power supply for the circuit.
DC Motor (x2)
- Description: Standard DC motors used for driving wheels or other mechanical components.
- Purpose: Perform the mechanical work as directed by the motor driver.
Wiring Details
Arduino UNO
- 5V: Connected to L298N (5V)
- GND: Connected to L298N (GND) and 2x 18650 (gnd)
- D10: Connected to L298N (ENB)
- D9: Connected to L298N (IN4)
- D8: Connected to L298N (IN3)
- D7: Connected to L298N (IN2)
- D6: Connected to L298N (IN1)
- D5: Connected to L298N (ENA)
L298N DC Motor Driver
- 5V: Connected to Arduino UNO (5V)
- GND: Connected to Arduino UNO (GND) and 2x 18650 (gnd)
- ENA: Connected to Arduino UNO (D5)
- IN1: Connected to Arduino UNO (D6)
- IN2: Connected to Arduino UNO (D7)
- IN3: Connected to Arduino UNO (D8)
- IN4: Connected to Arduino UNO (D9)
- ENB: Connected to Arduino UNO (D10)
- OUT1: Connected to DC Motor (pin 2)
- OUT2: Connected to DC Motor (pin 1)
- OUT3: Connected to DC Motor (pin 2)
- OUT4: Connected to DC Motor (pin 1)
- 12V: Connected to 2x 18650 (vcc)
2x 18650 Lithium-Ion Battery
- vcc: Connected to L298N (12V)
- gnd: Connected to L298N (GND) and Arduino UNO (GND)
DC Motor (x2)
Motor 1:
- pin 1: Connected to L298N (OUT2)
- pin 2: Connected to L298N (OUT1)
Motor 2:
- pin 1: Connected to L298N (OUT4)
- pin 2: Connected to L298N (OUT3)
Documented Code
Arduino Code
void setup() {
}
void loop() {
}
Documentation
This section is reserved for additional documentation or notes related to the circuit. Currently, there are no additional notes provided.