Hello everyone! im having an issue that you might be able to help.
I want to make an automatic irrigation system. When the sensor detects dry soil and the water level sensor knows theres enough water it would turn on the pump and start irrigating.
Everything is working except the relay. im connecting the relay module to vcc, gnd and signal (digital output of arduino through a transistor.)
When its time for the relay to switch, the led signal turns on but it wont switch (theres no click sound).
I wanted to test the relay module if maybe it is damaged by connecting vcc, gnd, and the signal to vcc but it doesnt work. Not very familiar with this module, am i doing something wrong? (i tried another module and same problem)
i attach the diagram an 3 pics when is off and on.
Thanks for the answer but still cant make it work.
I connected the pin 13 to a 14ohm resistor (i dont have a 220 right now) with the base of the transistor. And when i measure the output of the transistor when its supposed to be off it says 3.7V (measuring the output of the resistor with a vcc). When its on it says 5V
Update! so i tried removing the transistor and diode and connect directly the pin 13 to the signal of the relay.
The relay module does turn on when its supposed but theres not enough power to make the switch. I can tell by the led of the relay module that is not fully bright.