Battery-Powered DC Motor Control Using L298N and 7805 Voltage Regulator
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to control a DC motor using a 9V battery, a 7805 voltage regulator, and an L298N DC motor driver. The circuit includes the necessary wiring details and embedded code for the microcontroller.
Component List
7805 Voltage Regulator
- Description: A voltage regulator that converts input voltage to a stable 5V output.
- Pins: Vin, Gnd, Vout
L298N DC Motor Driver
- Description: A dual H-bridge motor driver that allows control of the speed and direction of two DC motors.
- 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
- Description: A simple DC motor with two connection pins.
- Pins: pin 1, pin 2
9V Battery
- Description: A standard 9V battery used as the power source for the circuit.
- Pins: +, -
Wiring Details
7805 Voltage Regulator
- Vin is connected to the + pin of the 9V battery.
- Gnd is connected to the - pin of the 9V battery.
- Vout is connected to the IN1 pin of the L298N DC motor driver.
L298N DC Motor Driver
- 5V is connected to the Vin pin of the 7805 Voltage Regulator.
- GND is connected to the Gnd pin of the 7805 Voltage Regulator.
- IN1 is connected to the Vout pin of the 7805 Voltage Regulator.
- OUT1 is connected to pin 2 of the DC Motor.
- OUT2 is connected to pin 1 of the DC Motor.
DC Motor
- pin 1 is connected to the OUT2 pin of the L298N DC motor driver.
- pin 2 is connected to the OUT1 pin of the L298N DC motor driver.
9V Battery
- + is connected to the Vin pin of the 7805 Voltage Regulator.
- - is connected to the Gnd pin of the 7805 Voltage Regulator.
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
This document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the embedded code for the microcontroller.