Arduino UNO Controlled DC Motor with L298N Driver and 5V Power Supply
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, a DC motor, an L298N DC motor driver, a 5V 5A power supply, and a 220V power source. The Arduino UNO controls the DC motor through the L298N motor driver, which is powered by the 5V 5A power supply. The 220V power source provides the necessary AC input for the power supply.
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 5V 5AMP
- Description: A power supply unit that converts 220V AC to 5V DC with a maximum current of 5A.
- Pins: 220V Positive Pole (AC), 220V Negative Pole (AC), GND, GND (DC), 12V-24V Output (DC)
Power 220V
- Description: A standard 220V AC power source.
- Pins: hot wire, neutral wire
Wiring Details
Arduino UNO
- D5 connected to L298N DC motor driver IN3
- D4 connected to L298N DC motor driver IN4
- D3 connected to L298N DC motor driver ENB
DC Motor
- pin 1 connected to L298N DC motor driver OUT4
- pin 2 connected to L298N DC motor driver OUT3
L298N DC Motor Driver
- IN3 connected to Arduino UNO D5
- IN4 connected to Arduino UNO D4
- ENB connected to Arduino UNO D3
- OUT4 connected to DC Motor pin 1
- OUT3 connected to DC Motor pin 2
- 12V connected to POWER SUPPLY 5V 5AMP 12V-24V Output (DC)
- GND connected to POWER SUPPLY 5V 5AMP GND (DC)
POWER SUPPLY 5V 5AMP
- 12V-24V Output (DC) connected to L298N DC motor driver 12V
- GND (DC) connected to L298N DC motor driver GND
- 220V Positive Pole (AC) connected to Power 220V neutral wire
- 220V Negative Pole (AC) connected to Power 220V hot wire
Power 220V
- neutral wire connected to POWER SUPPLY 5V 5AMP 220V Positive Pole (AC)
- hot wire connected to POWER SUPPLY 5V 5AMP 220V Negative Pole (AC)
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 descriptions, wiring details, and the code used in the Arduino UNO microcontroller.