# Multiple solenoid control with Arduino

**URL:** <https://forum.core-electronics.com.au/t/multiple-solenoid-control-with-arduino/7148>\
**Category:** Support\
**Created:** [15 January 2020 23:11 UTC](https://forum.core-electronics.com.au/t/multiple-solenoid-control-with-arduino/7148 "2020-01-15T23:11:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim108019](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@Tim108019](https://forum.core-electronics.com.au/u/Tim108019)\
**Post date:** [15 January 2020 23:11 UTC](https://forum.core-electronics.com.au/t/multiple-solenoid-control-with-arduino/7148/1 "2020-01-15T23:11:34Z")

</div>

Greetings all, I am a newbie to the boards and to electronics control design in general. I appreciate any help with my design problem.

I need to control two 12v solenoid air valves alternating one open and the other closed in 4 second cycles, while simultaneously controlling a pair of 12v latch solenoids in a .3 second open/.6 second closed cycle. There is no synchronization of the different cycles required, as long as all elements are running at the same time on a continuous loop.

Hoping that an Arduino Uno could handle this task. Not sure what other pieces to the puzzle are required to make it a reality, but probably will need help with code too, since this is my first venture.

If there is a tutorial relevant to my assignment I appreciate a link to shorten my search.

Thanks!

---

<div class="post-metadata">

**Author:** ![Owen](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/owen/32/2948_2.png) [@Owen](https://forum.core-electronics.com.au/u/Owen)\
**Post date:** [16 January 2020 04:09 UTC](https://forum.core-electronics.com.au/t/multiple-solenoid-control-with-arduino/7148/2 "2020-01-16T04:09:08Z")

</div>

Hey Tim,

[This motor driver shield](https://core-electronics.com.au/adafruit-motor-stepper-servo-shield-for-arduino-v2-kit-v2-0.html) should work for exactly what you need while only needing one Arduino for all 4 solenoids.

You would just use it the exact same way you’d use a motor shield normally, except you will just replace the motors with the solenoids.

[This power supply](https://core-electronics.com.au/12v-5a-switching-power-supply-45158.html) should be perfect for running the 4 solenoids (you could even run the Pi off it as it has its own onboard voltage regulator).

---

<div class="post-metadata">

**Author:** ![Tim108019](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@Tim108019](https://forum.core-electronics.com.au/u/Tim108019)\
**Post date:** [16 January 2020 19:14 UTC](https://forum.core-electronics.com.au/t/multiple-solenoid-control-with-arduino/7148/3 "2020-01-16T19:14:42Z")

</div>

Owen, thanks for the excellent guidance and suggestions. The setup looks like it would work well for my application.  
Since I am such a rookie, can you or anyone else suggest a particular tutorial to begin with for programming the code? I don’t mind starting with the bonehead basics first and working my way up to a confident level later.
