Component for effectively toggling VIN output?

I'm in the middle of constructing a little aeroponic tower for my kitchen herbs (3D printed structure, a small pump and a micro-fine misting head, etc) because I'm a super lazy gardener.

The pump is a standard 12v, 3.6w brushless DC pump.

I have a 12v, 1a power supply and an Arduino Uno. The pump needs more than 5v to switch on, but it will switch on for the VIN pin's power output given the Arduino's power supply. I don't want the pump to be going continuously, but I would like it to periodically turn on and off.

Obviously I need some sort of AND gate chip that will allow one of the other pins to act as a control switch so I can control when the VIN output reaches the pump.

What would be a good component (or set of components?) to do that?

The thing you need is a relay. Do come in Arduino-friendly modules like this one

Awesomesauce.

So if I wanted to be maximally lazy... do I want a relay shield (ie: https://store.arduino.cc/usa/mkr-relay-proto-shield)?

blue_alu:
So if I wanted to be maximally lazy... do I want a relay shield (ie: https://store.arduino.cc/usa/mkr-relay-proto-shield)?

Never used on of those (come on, the module is already pretty lazy!), but I'm pretty sure it'll do the job!

Yeah I just don't have a breadboard. It didn't occur to me that the VIN pin wouldn't be inherently controllable (in hindsight it's kinda obvious), so I'm adapting. -_-

blue_alu:
So if I wanted to be maximally lazy... do I want a relay shield (ie: https://store.arduino.cc/usa/mkr-relay-proto-shield)?

Did you see I made your link clickable? Please do that in future.

TimMJN:
Never used on of those but I'm pretty sure it'll do the job!

No it won't, the one suggested by the OP is not compatible with Uno, it is for MKR boards.

You can get relay shields for Uno and they're pretty cheap if bought from China. They generally contain 4 relays, you only need 1, but for max laziness...


A downside of shields is that usually you don't get to decide what pins they use. Sometimes they can use pins you need for other things like sensors. You might want to use a soil moisture sensor for example (I would recommend the capacitive type). I don't think the pins used by that shield would be a problem for you.

PaulRB:
No it won't, the one suggested by the OP is not compatible with Uno, it is for MKR boards.

Good catch, missed that!

I would use a transistor instead of a relay here.

Are you powering the pump from the Vin pin?

PaulRB:
You might want to use a soil moisture sensor for example (I would recommend the capacitive type).

Advantage of an aeroponic garden - no soil. Like I said, lazy gardener. :smiley:

The entire thing will be so simple that it's just a matter of switching the power on for 5 minutes and then off for 15 minutes for a 20 minute cycle root misting.

SteveMann:
Are you powering the pump from the Vin pin?

That's the plan.

Timer relay module

I found an easy to source relay shield for the Uno, and am going with that (it's four lines of code to do the timing digitally, not a big deal):

It has selectable digital IO control if I really want it, but I mean... I'm 100% fine with just using the default pins.

The real advantage is that each relay has its own connection testing button which will make setup easier.