Arduino Nano Motor and Pump
by devkrishnavhora in Circuits > Arduino
77 Views, 0 Favorites, 0 Comments
Arduino Nano Motor and Pump
Objective
The objective of this project is to control a motor and water pump using an Arduino Nano.
A 16×2 LCD is used to display the current status of the motor and pump. A push button connected to D12 is used to turn the motor and pump ON or OFF.
The motor and pump are controlled through their respective motor-driver connections.
Supplies
Arduino Nano
DESHBOT Shield
16×2 LCD
Push button
Motor
Water pump
Pin Connections
16×2 LCD
The LCD uses the DESHBOT Shield pin configuration:
LCD ConnectionArduino Nano
RS - A4
EN - A3
D4 - A2
D5 - A1
D6 - A0
D7 - D13
These are the LCD connections used in the supplied project code.
Control Button
ComponentArduino Pin
ON/OFF Button - D12
The button uses INPUT_PULLUP, so one side of the button is connected to D12 and the other side is connected to GND.
Motor
Motor DriverArduino Nano
Motor A - D6
Motor B - D7
Pump
Pump DriverArduino Nano
Pump A - D8
Pump B - D9
Working Principle
When the Arduino Nano is switched ON, the LCD displays:
After the startup message, the LCD displays the current motor and pump status.
Initially, both the motor and pump are OFF.
The LCD displays:
When the user presses the D12 button, the Arduino turns ON both the motor and pump.
The LCD changes to:
When D12 is pressed again, both the motor and pump are turned OFF.
Motor Control
The motor is controlled using two Arduino pins:
- D6 = Motor A
- D7 = Motor B
When the motor is turned ON:
When the motor is turned OFF:
The motor should be connected through a suitable motor driver rather than directly to the Arduino Nano.
Pump Control
The pump is controlled using:
- D8 = Pump A
- D9 = Pump B
When the pump is turned ON:
When the pump is turned OFF:
The pump should use an appropriate driver and external power supply according to the pump's requirements.
Button Operation
Only one button is required in this project.
D12 works as the ON/OFF control.
First Press
LCD:
Second Press
LCD:
The same process can be repeated continuously.
LCD Display
The 16×2 LCD provides information to the user.
Startup:
When OFF:
When ON:
This allows the user to easily understand the current state of the system.
Downloads
Conclusion
The DESHBOT Motor and Pump Control System is a simple Arduino Nano project that demonstrates how external motors and pumps can be controlled using a microcontroller.
The 16×2 LCD displays the system status, while the D12 push button provides simple ON/OFF control.
When D12 is pressed, the Arduino activates both the motor and pump. Pressing D12 again stops both devices.
The project provides a basic foundation for developing more advanced systems such as automatic water pumps, irrigation systems, cooling systems, and IoT-based pump controllers.