Login

Interface water pump with NodeMCU using relay

Objectives

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

Things

  1. NodeMCU board (quantity: 1 no.)
  2. Micro USB cable A to B (quantity: 1 no.)
  3. Breadboard (quantity: 1 no.)
  4. 12V mini water pump (quantity: 1 no.)
  5. 12V DC power jack (quantity: 1 no.)
  6. 5V relay module (quantity: 1 no.)
  7. Push button (quantity: 1 no.)
  8. Jumper wire – male to male (quantity: 7 no.)
  9. 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

 

Interfacing water pump with NodeMCU using relay

Takeaway

Loader Loading...
EAD Logo Taking too long?
Reload Reload document
| Open Open in new tab
April 22, 2020

0 responses on "Interface water pump with NodeMCU using relay"

Leave a Message

Your email address will not be published.

top

Knowledge and Content by Li2 Technologies | © 2021 NASSCOM Foundation | All rights reserved

X