Can you control two solenoid valve using only one digital pin?

I have 4 solenoid valve to use and it used by pair each pair turns on the same time and turns off the same time I was wondering if it is possible in a Arduino mega?

Yes, you can control 2 solenoids with one output. Just connect the solenoid driver inputs to the same pin. Or have each solenoid driver to its own pin and use 2 digitalWrites in succession. The writes are so close together, temporally, that they look simultaneous.

thank you very much

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.