I`ve corrected your relay - pump wiring.
- Add a kickback diode across the pump.
![]()
It will fix a problem of controlling 12relay with 5v signal?
or i have to add there a transistor.
Yes, 12V is voltage for relay coil and you can control it using standard 5V logic.
Will IN4004 be enough?
Also, what about capacitor 16V, 100uF mentioned before, should i also add this?
As usual with aliexpress the description does not match the picture of the 1 channel 12V relay.
It does not have an optocoupler or JD_VCC for the relay power.
So it may or may not be OK to use with 5V control signal.
To be safe I would either buy the 5V version or buy a different 12V relay that states it can be controlled with 5V
Okey, thanks, if I don't get a relay that have an optocoupler or JD_VCC I will have to connect transistor through 5V signal right?
You have a driver transistor for the relay on the relay module..
Why don't you connect 5V to module input and see if it works and avoid further confusion?
You connect 5V to IN and GND to GND and listen if you hear click.
Don't know. There are many types of relays and relay modules.
If you want a 12V relay then buy one that clearly states that it can be controlled by a 5V signal.
Buy one that has an optoisolator and you will be safe wether it's a 12V or 5V relay
