-->
Page 1 of 1

Kindly guide with connect DC submersible pump with relay

PostPosted: Thu Jan 14, 2021 2:40 pm
by aruneshdutta
I am designing a project where my need to control a 3-6V DC submersible pump using relay motor and LIPO battery, I am supplying voltage to relay using my MB102 breadboard power supply and dc pump through LIPO battery through relay module ,On pressing the push button of my MB102 breadboard powersupply the relay triggers and starts the pump and quickly turns off the .pump , pump is fine as checked earlier as well

video-= https://gofile.io/d/AYz5OF

My code
int relayInput = D2; // the input to the relay pin
void setup() {
pinMode(relayInput, OUTPUT); // initialize pin as OUTPUT
}
void loop() {
digitalWrite(relayInput, HIGH); // turn relay on
delay(1000);
digitalWrite(relayInput, LOW); // turn relay off
delay(1000);
}
I also tried making delay(60000) to wait for 1min but there is no outcome ..kindly help

image of circuit Image

Re: Kindly guide with connect DC submersible pump with relay

PostPosted: Thu Jan 14, 2021 4:10 pm
by Bonzo
A picture is worth a thousand words
as the saying goes.

I recommend posting a diagram of what you have; even a photo of a sketch on paper or a photo of your setup.

Re: Kindly guide with connect DC submersible pump with relay

PostPosted: Thu Jan 14, 2021 11:54 pm
by aruneshdutta
Image

Re: Kindly guide with connect DC submersible pump with relay

PostPosted: Sat Jan 16, 2021 3:50 pm
by rudy
You need to provide some information about the relay module.

Not all modules can be controlled by a 3.3 volt processor. Most should though.