Relay clicking, but not working

Hello!

I am trying to make a simple plant watering bot.
I am using a SRD-05VDC-SL-C 4 relay module as my relay. It clicks, but the motor (for pumping water) does not work. I have tried multiple relays.

I am using:
2 3V batteries (should I use one?)
Arduino Uno
Soil moisture sensor

The batteries are connected to the Arduino Vin and Ground ports.
The relay is connected to the 5V port.

The relay clicks, the red light turns on (and off later on), but nothing else happens.
Any help would be appreciated!

Help us help you.

1 Like

Do not connect relay loads to the Arduino 5v pin.


Always show us a good schematic of your proposed circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.

Its a power issue. Use a 5V wall adapter and use the +5 pin instead of Vin.

Hey there!
Sorry for replying so late.
Here is the relay that I'm using: https://www.amazon.com/SainSmart-101-70-101-4-Channel-Relay-Module/dp/B0057OC5O8/
Here is the moisture sensor: https://www.amazon.com/Gikfun-Capacitive-Moisture-Detection-Watering/dp/B09C2YYCMQ/

Here is my diagram:

Thank you in advance!

Wrt your schematic the powersupply for the motor is missing.

Are you using CR123 batteries or the little coin size bateries?

I am using 2 3.7V rechargable batteries, something like these: https://www.aliexpress.com/item/1005004998092657.html

Link is no good
Sorry, the page you requested can not be found:(

The relay that you use has 3 connection : GND, PWD, SIG!
On power fase 3 connection : NO, C, NC
To activate it you need to connect SIG to a DPin of your arduino. Change the state on DPin (example D8) the relay switch the state C->NO (D8 LOW), C->NC (D8 HIGH).
You do not have this connection on your schema
example

int relay_pin = 8;

void setup(){
pinMode(relay_pin,OUTPUT);
}

void loop(){
digitalWrite(relay_pin,HIGH);
delay(5000);
digitalWrite(relay_pin,LOW);
delay(5000);
}

The way the relay is wired, image from post#5 the relay is on all the time.


An example of a way to control the relay as depicted in post#5 to operate from an MCU.


This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.