Arduino UNO Controlled DC Motor with L298N Driver and 12V Power Supply
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller controlling a DC motor through an L298N DC motor driver. The power supply for the motor driver is provided by a 12V 5A power supply, which is connected to a 220V AC power source.
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
DC Motor
- Description: A simple DC motor with two connection pins.
- Pins: pin 1, pin 2
L298N DC Motor Driver
- Description: A dual H-Bridge motor driver that allows speed and direction control 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
POWER SUPPLY 12V 5AMP
- Description: A power supply unit providing 12V DC at 5A from a 220V AC input.
- Pins: 220V Positive Pole (AC), 220V Negative Pole (AC), GND, GND (DC), 12V-24V Output (DC)
Power 220V
- Description: A 220V AC power source.
- Pins: hot wire, neutral wire
Wiring Details
Arduino UNO
- D5 is connected to IN3 of the L298N DC motor driver.
- D4 is connected to IN4 of the L298N DC motor driver.
- D3 is connected to ENB of the L298N DC motor driver.
DC Motor
- pin 1 is connected to OUT4 of the L298N DC motor driver.
- pin 2 is connected to OUT3 of the L298N DC motor driver.
L298N DC Motor Driver
- IN3 is connected to D5 of the Arduino UNO.
- IN4 is connected to D4 of the Arduino UNO.
- ENB is connected to D3 of the Arduino UNO.
- OUT4 is connected to pin 1 of the DC Motor.
- OUT3 is connected to pin 2 of the DC Motor.
- 12V is connected to 12V-24V Output (DC) of the POWER SUPPLY 12V 5AMP.
- GND is connected to GND (DC) of the POWER SUPPLY 12V 5AMP.
POWER SUPPLY 12V 5AMP
- 12V-24V Output (DC) is connected to 12V of the L298N DC motor driver.
- GND (DC) is connected to GND of the L298N DC motor driver.
- 220V Positive Pole (AC) is connected to neutral wire of the power 220V.
- 220V Negative Pole (AC) is connected to hot wire of the power 220V.
Power 220V
- neutral wire is connected to 220V Positive Pole (AC) of the POWER SUPPLY 12V 5AMP.
- hot wire is connected to 220V Negative Pole (AC) of the POWER SUPPLY 12V 5AMP.
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:
}
Additional 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.