Hi guys,
I'm new to Arduino but must do the control subsystem for our university project, which is an unmanned firefighting vehicle.
I used the Arduino Uno board with Arduino Compatible Motor Servo Controller Module on it. Now I have a DC 12V water pump .
Also, we use the <IRremote.h> to control the prototype with a TV remote.
Because our budget is limited, I want to ask for guidance on connecting and controlling this pump. Do we need any relays, and how can I wire them?
Any guidance would be greatly appreciated. Thank you.
take a paper and draw your devices. it gives you clear view what you need.
1 Like
I would suggest using a relay to turn on/off the pump. But don't forget a diode across the input of the relay. But it also depends on the specifications of the pump and the switching speed.
DaveX
May 11, 2023, 1:52am
4
The pump's datasheet says it takes 1580ma at 12V:
... so yes you need a relay or MOSFET:
https://www.gammon.com.au/motors
Code-wise, I'd experiment with the built-in state-change pushbutton example to control the pin controlling your pump driver:
Are any relays okay or do I have to notice something?
Cool project! To control your 12V pump with the Arduino, you're right, you'll need a relay. Here's the simple version:
Get a 5V relay that works with Arduino.
Connect the relay's VCC and GND to Arduino's 5V and GND. Connect IN on relay to a digital pin on Arduino.
Connect pump's + wire to relay's NO terminal, and - wire directly to power supply ground. Connect power supply + to relay's COM.
In your code, set relay pin HIGH to turn pump on, and LOW to turn it off.
2 Likes
DaveX
May 11, 2023, 2:32am
7
Any relay that can handle 12V 1.7A DC would work, but overkill is good. One of the common 30V, 10A DC arduino relay modules would work fine.
I’ve taken a look at this article: https://arduinogetstarted.com/tutorials/arduino-controls-pump
I’ve used a 6AA battery pack for the Arduino, do I need another battery pack for the relay and pump? If yes, how much voltage of it should be used
DaveX
May 13, 2023, 11:07pm
9
6xAAs would give 9V and 2-3000mAh of capacity.
The pump spec says it needs 12V at 1580mA, so yes, you do need additional power. How long do you have to run the pump?
Pololu - Understanding battery capacity: Ah is not A ).
1 Like
In the article I mentioned above, there is a wiring instruction:
I wonder if we connect the power source to the relay like that circuit, we don't need to power the Arduino with another pack, right? I mean, will the Arduino be supplied by the source connected with the relay?
I'm considering this option: Duinotech Arduino Compatible 5V Relay , can you give me some advice. Thank you
DaveX
May 14, 2023, 12:37am
12
No. The main function of a relay are that it's controlled/output terminals are completely isolated from the input terminals.
If it is a good 12V source, you can hook it to the barrel jack of the arduino.
So we need two power sources, one for Arduino and one for the relay?
LarryD
May 14, 2023, 12:53am
14
Suggest you use separate power supplies for the Arduino and the pump.
The pump should have a kickback diode across the pump’s red/black motor wires.
1 Like
system
Closed
November 10, 2023, 12:53am
15
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.