This is the setup that i used. This is a DC 3.6V solenoid valve, but in the product review, they said it operates at 4.5-6V, so i have tried to increase the supply voltage.
However, it still didn’t work.
Code: i simply turned on and off the relay with Serial Monitor
I guess you have a flyback diode between + and - and that the red cable at the back goes to the + of your power supply (what is it?) and that the second black cable that you have in the front goes to the negative pole of the power supply ?
Yes it is the flyback diode. Red wire of the solenoid valve connects to NO of the relay.
Positive terminal of power supply goes to COM
Black wire of the solenoid connects to negative terminal of the power supply
The current draw is not known as there’s no details about that. I tried to increase the current step by step
Those solenoid valves often need just a quick pulse to open. And reverse polarity to close. In that case your relay setup will not work.
Try it just with your power source, without diode, swapping polarities.
Don't keep it powered, just a quick pulse.