I want to controll six solenoid valves with my Arduino (not simultaniously, they shall open the water flow to six different plants and it doesn't need to happen at the same time). I tried with just one valve and it worked fine, by following this guide: Controlling A Solenoid Valve With Arduino - BC Robotics
Is it possible to power six valves with the same concept, by just adding one MOSFET per valve, or do I need an external power supply? In that case, should I build a parallel circuit with six branches and a 12V power supply?
septillion:
What is powering the valve now then? You don't get 12V from USB so what is your supply?
Why do you have a p-mosfet and the tip20??? You can put the p-mosfet away and to make it more efficient swap the tip120 for a logic level n-mosfet.
The solenoid valve works between 6-12V according to the specification, I might just have been lucky that it worked even with 5V. Before I saw this guide I used an external 12V power supply to power the valve. While testing I'm using the USB to power the Arduino, but when in "work mode" it shall be powered by from a regular 230V socket.
I used a P-mosfet because I found one in the workshop, but I'm about to order a bunch of them so I can choose N instead.
Like you probably have figured out I'm pretty novice in this area, especially regarding how to power all the components properly.
If the spec say 6V to 12V then get a 6V to 12V supply At 5V it might work now but it also might not work. That's where specs are for.
And just use the schematic you found (aka, don't forget the diode) and you may swap the TIP120 for a n-mosfet (with a lower or no gate resistor) because they are more efficient. But it the TIP120 doesn't get hot it's probably fine as well. Little bit less efficient but the tip120 is probably cheaper. But check the solenoid specs to see the current draw of it.
At 12V, the maximum current is 3000mA and one valve draws 320mA at 12V (which means that 6 parallel valves draw 6x320=1920mA at 12V). Makes this logic any sense?
If 12V is the max of the solenoid I might not choose 12V... But apart from that, it looks okay. Can't see the specs so I'll have to believe you about the 320mA.
septillion:
If 12V is the max of the solenoid I might not choose 12V... But apart from that, it looks okay. Can't see the specs so I'll have to believe you about the 320mA.
Nice! Probably push an update this evening which makes it behave a bit nicer it you try to update it very very often during fading. (Not a problem during normal fading.)