Electronic – arduino – A more elegant solution to wiring this system

arduinoconnectorprototypingstripboard

I have a pressure system with eight solenoid valves on it and I'm controlling it from an Arduino. For each valve I have a solid state relay that an Arduino controls to switch on and off 12V from the supply. I've gotten this circuit to work properly with a single relay and solenoid:

enter image description here

Now I'm beginning to scale it and it all works but my setup is pretty messy. Here is a single SSR hooked up to a single valve and then the holders for all the other SSRs on the board:

enter image description here

So I was planning on using that terminal connector and then that small proto
board mostly because this will be changing around a lot and I may be throwing some more pieces in so I don't want it to be 100% permanent but I do want it to be more durable and a little more elegant. Any thoughts on how I should wire this up? Or anything better than that terminal connector?

Here is a schematic of half of the full setup:

enter image description here

Best Answer

First I'd make the Relay board plug into the Adruino board as a piggyback assembly by adding a 2xWhatever header strip on the back.

Then on the relay board I would add suitable PCB connectors for each solenoid and a big one for the power supply.

The piggyback board should be a PCB eventually.

BTW those fly-back diodes should be closer to the SSR not the solenoid valves.

Actually, using I2C relay board(s) may be even better. Then the relay controllers can be localized close to the solenoids where it is needed with minimal connections to the Adruino and tighter power connections.

enter image description here