Hi again,
The solenoids work! The circuit provided was ok and works!
Now it's the programming that bugs me. I made a patch in max to control the solenoids but it's apparently waaaayy to slow to get it running (don't know why though, it shouldn't be)
I'm trying to program the solenoids in the arduino software.
What I'm trying to do is have a basic duration of a movement of the solenoid (which is just an adaptation of the blinking led thing with solenoid1 == HIGH and delay(24) solenoid1 == LOW and delay (38)) This loop has to be called until the basic duration (t1) is over. t1 is random(0.1-80)/10*60000 and needs to be called again when the last solenoid has finished it's cycle.
solenoid2 needs to begin somewhere during the second half of solenoid1's cycle and solenoid3 needs to begin somewhere in the cycle of solenoid2.
The whole movement of the solenoids doesn't need to start over again as soon as solenoid3 cycle is over but has to wait a random time between 1 and 5 minutes.
I have no id where to start here and would really be thankfull to anyone pointing me in the right direction. I know it's maybe a bit much to ask but I'm getting stressed since I need to have it finished next week.
pieter