Arduino UNO Controlled 775 Motor with Keypad Interface and L298N Driver
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, a 775 motor, a 12V battery, a 4X4 Membrane Matrix Keypad, a Flush Switch, and an L298N DC motor driver. The Arduino UNO is used to control the motor driver and read inputs from the keypad. The motor driver controls the 775 motor, and the flush switch is used to control the motor's power.
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
775 Motor
- Description: A high-power DC motor.
- Pins: positive, negative
Battery 12V
- Description: A 12V power source.
- Pins: +, -
4X4 Membrane Matrix Keypad
- Description: A keypad with 4 rows and 4 columns.
- Pins: R1, R2, R3, R4, C1, C2, C3, C4
Flush Switch
- Description: A simple on/off switch.
- Pins: GND, VCC
L298N DC Motor Driver
- Description: A dual H-Bridge 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
Wiring Details
Arduino UNO
- GND connected to:
- Battery 12V (-)
- L298N DC Motor Driver (GND)
- Vin connected to:
- L298N DC Motor Driver (5V)
- A1 connected to:
- 4X4 Membrane Matrix Keypad (C1)
- A2 connected to:
- 4X4 Membrane Matrix Keypad (C2)
- A3 connected to:
- 4X4 Membrane Matrix Keypad (C3)
- A4 connected to:
- 4X4 Membrane Matrix Keypad (C4)
- D9 connected to:
- L298N DC Motor Driver (IN2)
- D8 connected to:
- L298N DC Motor Driver (IN1)
- D7 connected to:
- 4X4 Membrane Matrix Keypad (R4)
- D6 connected to:
- 4X4 Membrane Matrix Keypad (R3)
- D5 connected to:
- 4X4 Membrane Matrix Keypad (R2)
- D4 connected to:
- 4X4 Membrane Matrix Keypad (R1)
775 Motor
- positive connected to:
- Flush Switch (VCC)
- negative connected to:
- L298N DC Motor Driver (OUT1)
Battery 12V
- - connected to:
- Arduino UNO (GND)
- L298N DC Motor Driver (GND)
- + connected to:
- L298N DC Motor Driver (12V)
4X4 Membrane Matrix Keypad
- C1 connected to:
- Arduino UNO (A1)
- C2 connected to:
- Arduino UNO (A2)
- C3 connected to:
- Arduino UNO (A3)
- C4 connected to:
- Arduino UNO (A4)
- R4 connected to:
- Arduino UNO (D7)
- R3 connected to:
- Arduino UNO (D6)
- R2 connected to:
- Arduino UNO (D5)
- R1 connected to:
- Arduino UNO (D4)
Flush Switch
- GND connected to:
- L298N DC Motor Driver (OUT2)
- VCC connected to:
- 775 Motor (positive)
L298N DC Motor Driver
- GND connected to:
- Battery 12V (-)
- Arduino UNO (GND)
- 5V connected to:
- Arduino UNO (Vin)
- IN2 connected to:
- Arduino UNO (D9)
- IN1 connected to:
- Arduino UNO (D8)
- OUT1 connected to:
- 775 Motor (negative)
- OUT2 connected to:
- Flush Switch (GND)
- 12V connected to:
- Battery 12V (+)
Code Documentation
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup() function is where you initialize your components and settings, and the loop() function is where you place the main logic that runs repeatedly.