Hi everyone!

@ PaulS

Thanks for the reply.

I did say "Personally, I feel...". If you feel otherwise, I have no problem with that. If I offended you, I apologize.

Nevermind... From CrossRoads' reply I see this is standard practice! XD XD XD XD

You are right. But, that requires an external resistor and more wiring. There are internal pullup resistors in the Arduino. Make use of them, and the wiring gets a lot simpler - one wire from the switch to the pin and one wire from the switch to ground. Then, LOW means pressed.

I do remember seeing something like that somewhere. Thanks for the tip! Will definately look into it!

I don't like the name, still, but that's OK. As long as the name means something to you, stick with it.

I suppose as I learn more, so my programming skills will develop and things will change. For now, let's leave it as such just to keep my head in the game :smiley:

There is a reminder right on the board.

... which I don't have yet, but checked out a diagram and saw it on there :blush:

That's fine. If, and it's a big if, the solenoid opens and closes in a consistent amount of time, and that every time the there is the same delay between triggering the solenoid and turning it off, the exact same amount of material is dispensed.

For things like washing machines dispensing soap, a minor (or even significant) variation is acceptable. If you are dispensing medicine, it is not.

If you are, as you hinted, going to be having the Arduino do other things, delay() is not a good idea. Look at the blink without delay example to see how to avoid it.

The name, delayTime, is not particularly good, either. Since the purpose of the delay is to dispense material, I'd use a name like dispenseTime.

Ok, cool. Will do some digging and come back with another option.

Luckily it's not medicine or anything critical, and a small variation will be acceptable XD

Thanks for the feedback PaulS!