Go Down

Topic: multiple solenoid valves working together ( multiple pins to be set as output ) (Read 3 times) previous topic - next topic


OH my god !! u r building my character based on whether i googled ur terms or not!!!! what r u??!! ..... why the *&@# do i need to google the terms while i am speaking to u ..... ??..... how could i know if ur answer is right or not and is worth to waste my time on googling and understanding the terms..... some fellow here answered me directly and gave me the link to arduino's shift registers and i checked them and read it..... so it's as simple as that!!   

Nick Gammon

OK, I've had enough.

You aren't using a mobile phone. Have the courtesy to type "you are" rather than "u r".

Kindly explain what your project is, that you need to turn on 100 valves at once. If they all need to be turned on at once, why cannot you use a single pin and connect all of the solenoids to it?

This page shows how you can use shift registers to turn on or off 32 LEDs (not Arduino shift registers, just shift registers).


You could extend that with some more chips to turn on or off many more things.

But please post proper sentences, with punctuation, capitals at the start of sentences, and give up on the mobile phone abbreviations, or I will lock the thread.


Nick Gammon I explained my project.... it is a graphical waterfall ..... using 100 solenoid valves they will open, at the beginning of the show, all at once .... then i will be using a program (EXE) to convert any drawing to black and white first and then to 1s and 0s (binary) so that the sequence is outputted to the solenoids through the arduino..... and hence the water will make the drawing

My question was ..... " how can i set the pins high or low without the need of writting for each pin (which will be a lot if i am not using shift registers, and i still do not know if this a good way) the commande pinMode( , )... that was  it....

why do i need to explain my whole project for such a question......why did the person who answered me ( the answer was the links he gave me for port manipulation) understood my question so easily and some need the whole project explanation to understand? 

if u feel obliged to close the thread because i am using abbreviation then do it

Thank u for the link     

Nick Gammon

Oh I see, you had that in reply #10.

If you re-read that you'll see that it looks like something PaulS said (it is inside the dotted block being a quote from him).

You need a bit of attention to detail to make the posts easier to read. Don't have what you say inside a quote from someone else.

why do i need to explain my whole project for such a question.

We are trying to help you, believe it or not. Now that you explain that you need to turn them on and off individually, to create a pattern, it makes more sense.

However that raises a wider issue, doesn't it? For the bulk of the display, you will want some on and some off, right? So the question about how to turn them all on or off is pretty minor. And surely, a short loop would solve that?

The shift register idea may well work, but you will have a lot of work wiring up 100 solenoids to it. Plus you may have issues with electrical noise etc. making things fire in ways you don't want. I would be making a smaller prototype and testing, personally.


Is this project not really just a POV (Persistence of Vision) program that turns on solenoids rather than discrete LEDs ?

POV with a few LEDs (up to the number of digital pins available) - one LED per pin
POV with more LEDs than available pins - use shift registers.  Sometimes built into the LED light string, but shift registers nonetheless,
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Go Up