Water Pump and Relay

Hey, so my problem is that the water pump and the relay doesn't work. The water pump should start when the moisture level drops to a certain point. I hear only a clicking from the relay, and that's it, and lcd screen+arduino freezes for a few seconds(not even the green light from the relay turns on). Water Pump used to work before I rewired the project. Any advice would help!
This is how I wired it:


Fritzing for all project:

I don't see a common ground connection between the two breadboards.
If the pump draws more than 100mA, then the power connections should NOT go through the breadboard

image

Pushbuttons or indicators?

I'm using the breadboards separately. I use a breadboard only for the relay and water pump, connected to a 3.7V Li-ion battery, connected to a 5v step up module. The breadboards are not connected one to each other. I got KiCad schematics for every component if it helps..

Switches, I turn off and on my project without having to unplug the power source.

Maybe it helps understanding the project:
This is How I wired the Buttons:


This is how I power the water pump:

This is how I power Arduino:

Are the solar cells OK with being shorted out?

As I can see, yes. I use a switch for the solar cells so I can charge my Li-Ion batteries using a wall adapter, so I don't burn on the charging module.
I use another switch to turn on and off my project. Until now all good.

There needs to be a connection between the arduino GND and the relay module GND, I don't see one.

Oh, there is no one to be honest, I didn't knew that. It used to work without using a common ground connection between the relay and Arduino. So I should connect the relay GND to the other breadboard connected to Arduino GND?

ALL grounds shown in our fritzing diagram need to be connected together.
The pump connections shold NOT go through the breadboard.

As soon as I can I will connect all grounds together and try to eliminate the pump connections thru the breadboard.
One question, why the pump should not go through the breadboard?

Breadboards can't handle large currents. If the pump uses more than 100mA, you should connect it directly to the relay and power supply, without the breadboard

1 Like

The pump uses 70 to 120mA, thanks for answering my question. Thank you for your advices! I will comeback with an update as soon as I can.

Hi,
Can we please have a circuit diagram?
An image of a hand drawn schematic will be fine, include ALL power supplies, component names and pin labels.

I don't mean the one you have posted bits of with netname connections.

We need a proper schematic with ALL signal wires shown/drawn.
You can still use 5V, gnd connections as netnames.
But you need to be able to show easily a signal flow from input devices to your controller and to output devices from your controller.
Please pay attention to gnd and supply connections.

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

I can try to draw a circuit diagram. I got one in KiCAD right now only( my hand drawing is really bad :smiley: )

Hi,

So is mine, a JPG EXPORT from KiCad Schematic will be good, as long as components are connected by wires not NetNames.

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

SchematicaProiect.pdf (52.1 KB)
Pdf works? I can't export as jpg :smiley:

Tom.. :smiley: :+1: :coffee: :australia:

Hi,
As stated earlier, there is not reason to short you PVs out to stop charging the CN3065 will do that for you.

Why are you shorting the 5V to gnd?

Thanks.. Tom.. :smiley: :+1: :coffee: :australia: