Most 4-channel relay modules can be connected to the Arduino's outputs directly.
The IRF540N is not a logic level MOSFET, and should not be used with an Arduino.
The TIP120 isn't even a MOSFET, it's a darlington transistor. It's much less efficient than a MOSFET.
There's loads of information available online on how to use MOSFETs with an Arduino.
Here's a simple schematic:
PieterP:
Most 4-channel relay modules can be connected to the Arduino's outputs directly.
The IRF540N is not a logic level MOSFET, and should not be used with an Arduino.
The TIP120 isn't even a MOSFET, it's a darlington transistor. It's much less efficient than a MOSFET.
There's loads of information available online on how to use MOSFETs with an Arduino.
Here's a simple schematic:
I need to switch between 4 valves... That's it
1 valve is so easy With TIP120,, But if I want to connect 4 valves so I guess Relay module will be good
But As I said I don't know how to connect my valves with the Module
See the section of that page "How Relay Contacts Work:"
A relay is just a switch controlled by Arduino.
You will need a separate 12V supply to operate the solenoids.
You should use a separate 5V supply to run the relay part of the relay boards. This is then optically isolated from the Arduino.
It is very common to have problem running solenoids if you do not pay attention to grounding, wiring and optical isolation, and reverse "flyback" diodes on the solenoid coils.
Here's a decent logic level, low Rds, N-channel MOSFET that Arduino can drive directly to sink current thru the solenoid coil to energize it. Don't forget the diode across the coils (anode to power supply)
Pretty low Rds, 0.072 ohm typical at 3A (your valve website does not indicate how much is needed). At 3A, the MOSFET would dissipate P = IV = IIR = 3A x 3A x 0.072ohm = 648mW, might need a little heat sinking if left on for long periods.
Alpha & Omega make much lower Rds parts if you can work with a large SMD package, TO-252 (like D-PAK), just .0033 ohm:
for Power dissipation of 3A x 3A x 0.0033ohm = 30mW. No heatsinking needed.
I don't know where the big fascination with optical isolation comes from, certainly seems like overkill at these low current draws.
@CrossRoads. Hello I'm totally new and I spent a whole day reading about MOSFET transistors. I also found this interestenting thread where you suggest 2 MOSFETs. I am planning an Arduino project and I found on AliExpress a seller "Eiechip" who sells IRFZ44N. This MOSFET is really cheap. I think I see the logo from the manufacturer "International Rectifier". If I read the data sheet, Rds is quite low. Since your post was 3 years ago, I am asking myself if the standards for Rds have changed?
The Project I am planing: 6 Solenoid Valves (12V, 0,5A) / 6 diodes 1N4007 / 6 MOSFETs IRFZ44N / 1 Arduino Uno. 6 X 10K Ohm Resistors and 6 X Resistor 200 Ohm --> between digital output pin en MOSFET Gate. I am asking myself if this value is ok?