Battery-Powered Dual DC Motor Control with L298N and 7805 Voltage Regulator
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to control two DC motors using an L298N motor driver and a 7805 voltage regulator. The power is supplied by a 9V battery. The L298N motor driver is controlled by a microcontroller, which is programmed to manage the motor operations.
Component List
7805 Voltage Regulator
- Pins: Vin, Gnd, Vout
- Description: A voltage regulator that steps down the 9V input to a stable 5V output.
L298N DC 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
- Description: A dual H-bridge motor driver that can control the direction and speed of two DC motors.
DC Motor (Motor 1)
- Pins: pin 1, pin 2
- Description: A standard DC motor.
DC Motor (Motor 2)
- Pins: pin 1, pin 2
- Description: A standard DC motor.
9V Battery
- Pins: +, -
- Description: A 9V battery used to power the circuit.
Wiring Details
7805 Voltage Regulator
- Vin: Connected to the 9V battery positive terminal.
- Gnd: Connected to the 9V battery negative terminal.
- Vout: Not connected in this circuit.
L298N DC Motor Driver
- IN1: Connected to the 9V battery positive terminal.
- IN3: Connected to the 9V battery positive terminal.
- 12V: Connected to the 9V battery positive terminal.
- GND: Connected to the 9V battery negative terminal.
- OUT1: Connected to pin 2 of DC Motor 1.
- OUT2: Connected to pin 1 of DC Motor 1.
- OUT3: Connected to pin 2 of DC Motor 2.
- OUT4: Connected to pin 1 of DC Motor 2.
DC Motor (Motor 1)
- pin 1: Connected to OUT2 of the L298N motor driver.
- pin 2: Connected to OUT1 of the L298N motor driver.
DC Motor (Motor 2)
- pin 1: Connected to OUT4 of the L298N motor driver.
- pin 2: Connected to OUT3 of the L298N motor driver.
9V Battery
- +: Connected to Vin of the 7805 voltage regulator, IN1, IN3, and 12V of the L298N motor driver.
- -: Connected to Gnd of the 7805 voltage regulator and GND of the L298N motor driver.
Code Documentation
sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
documentation.txt