Hello to all!
I am trying to gain some insight here and any suggestions, comments, ideas are greatly appreciated.
I have my first project here. I am trying to activate a 6v 300mA water pump with a PIR. When motion is detected, the pump will turn on and run for a determined amount of time (say 2 seconds) and shut off. Here is my issue so far. I have been told I can use the VIN pin to get the 6v I need if I supply the Uno board with a external 6v. (need it to run from a battery pack). But the issue I have is that if I use the VIN pin, is there any control? Meaning can you write it into the code to switch on when the PIR has been tripped? I hope this makes enough sense for someone with enough knowledge to help.
Again, any insight is greatly appreciated!