Interface water pump with Arduino uno using relay

Objectives

  • Interface relay module with Arduino .
  • Interface mini water pump with relay and power.
  • Control the water pump with a button.

Things

  1. Arduino board (quantity: 1 no.)
  2. Micro USB cable A to B (quantity: 1 no.)
  3. 12V mini water pump (quantity: 1 no.)
  4. 12V DC power jack (quantity: 1 no.)
  5. 5V relay module (quantity: 1 no.)
  6. Push button (quantity: 1 no.)
  7. Jumper wire – male to male (quantity: 7 no.)
  8. Arduino IDE on your computer

Let’s begin!

A relay is a device which let’s a low current device like NodeMCU to control a device with a high current requirement like a water pump. The relay behaves like a switch. We make a complete circuit to run the water pump (using a 12V DC power jack) and then use the relay as a way to make or break the circuit.

The relay has three terminals on the low current side- VCC, GND, and IN. The IN pin is how the NodeMCU controls the relay.

The relay also has three terminals on the high current side – NO, C, and NC – which stand for Normally Open, Common, and Normally Closed, respectively.

If the pump circuit is connected between NO and C, then the pump is initially OFF. Giving a LOW signal to the IN pin will cause the relay to close the circuit, and the pump will run.

If the pump circuit is connected between NC and C, then the pump is initially running. Giving a LOW signal to the IN pin will cause the relay to open the circuit, and the pump will switch OFF.

We also use a button connected as an input to decide whether to send LOW to the relay or not.

Interfacing water pump with NodeMCU using relay

 

need ton add

Interfacing water pump with NodeMCU using relay

 

December 1, 2018
top

© 2020 Li2 Technologies Pvt Ltd | All Rights Reserved

X