Arduino UNO-Based Smart Motor Control System with Current Sensing and LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, various sensors, a motor driver, a DC motor, a solenoid, a battery, an LCD display, a potentiometer, and a rocker switch. The circuit is designed to interface these components for a specific application, with the Arduino UNO serving as the central control unit.
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
ACS712 Current Sensor 5A 20A 30A
- Description: A current sensor module that can measure up to 30A.
- Pins: 1, 2, GND, OUT, VCC
IR Sensor
- Description: An infrared sensor for object detection.
- Pins: out, gnd, vcc
DC Motor
- Description: A simple DC motor.
- Pins: pin 1, pin 2
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
Solenoid
- Description: An electromechanical solenoid.
- Pins: pin1, pin2
12V 200Ah Battery
- Description: A high-capacity 12V battery.
- Pins: GND, 12V
16x2 I2C LCD
- Description: A 16x2 character LCD with I2C interface.
- Pins: GND, VCC, SDA, SCL
Potentiometer
- Description: A variable resistor.
- Pins: GND, Output, VCC
Rocker Switch
- Description: A simple on/off switch.
- Pins: 1, 2
Wiring Details
Arduino UNO
- 5V: Connected to VCC of 16x2 I2C LCD, VCC of ACS712 Current Sensor, and vcc of IR Sensor.
- GND: Connected to GND of ACS712 Current Sensor, GND of IR Sensor, GND of 12V 200Ah Battery, GND of 16x2 I2C LCD, GND of L298N DC Motor Driver, pin 2 of DC Motor, and GND of Potentiometer.
- A0: Connected to OUT of ACS712 Current Sensor.
- A4: Connected to SDA of 16x2 I2C LCD.
- A5: Connected to SCL of 16x2 I2C LCD.
- D9: Connected to ENA of L298N DC Motor Driver.
- D7: Connected to out of IR Sensor.
- D3: Connected to IN2 of L298N DC Motor Driver.
- D2: Connected to IN1 of L298N DC Motor Driver.
ACS712 Current Sensor 5A 20A 30A
- VCC: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
- OUT: Connected to A0 of Arduino UNO.
- 1: Connected to OUT1 of L298N DC Motor Driver.
- 2: Connected to pin2 of Solenoid.
IR Sensor
- vcc: Connected to 5V of Arduino UNO.
- gnd: Connected to GND of Arduino UNO.
- out: Connected to D7 of Arduino UNO.
DC Motor
- pin 1: Connected to Output of Potentiometer.
- pin 2: Connected to GND of 12V 200Ah Battery.
L298N DC Motor Driver
- GND: Connected to GND of 12V 200Ah Battery.
- 12V: Connected to 12V of 12V 200Ah Battery.
- ENA: Connected to D9 of Arduino UNO.
- IN1: Connected to D2 of Arduino UNO.
- IN2: Connected to D3 of Arduino UNO.
- OUT1: Connected to 1 of ACS712 Current Sensor.
- OUT2: Connected to pin1 of Solenoid.
Solenoid
- pin1: Connected to OUT2 of L298N DC Motor Driver.
- pin2: Connected to 2 of ACS712 Current Sensor.
12V 200Ah Battery
- GND: Connected to GND of 16x2 I2C LCD, GND of L298N DC Motor Driver, GND of Arduino UNO, pin 2 of DC Motor, and GND of Potentiometer.
- 12V: Connected to 2 of Rocker Switch.
16x2 I2C LCD
- VCC: Connected to 5V of Arduino UNO.
- GND: Connected to GND of 12V 200Ah Battery.
- SDA: Connected to A4 of Arduino UNO.
- SCL: Connected to A5 of Arduino UNO.
Potentiometer
- GND: Connected to GND of 12V 200Ah Battery.
- Output: Connected to pin 1 of DC Motor.
- VCC: Connected to 1 of Rocker Switch.
Rocker Switch
- 1: Connected to VCC of Potentiometer.
- 2: Connected to 12V of 12V 200Ah Battery.
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)