Arduino 5V relay

Hi,
Could 5v relay be powered with 6v (4 x 1.5v batteries), or should i use 4.5v (3 x 1.5v)

Depends on the relay.
What does the datasheet say for minimum and maximum

It's this one, found on some site it could go from 3.75 to 6 i think?


6V would be better.

FYI:
The voltage of a 1.5V alkaline battery is not constant.
As the power is used-up, the voltage will drop.
They start at about 1.5V and drop to about 1.2V before going completely dead.
So if you use 3 batteries the voltage will start at 4.5V and drop to 3.6V.
For the relay, I recommend to stay above 4V for reliable operation, so 4 batteries would be best

You can chose to use a solid state relay, many will operate through the full charge/discharge voltages of the batteries. Many commercial ones run from about 3 to 32Volt. There is a catch you will need to pick one for AC or DC depending on your load.


Ok so my project looks like this, would it all work with current diagram?

Your frizzy is useless to me, I do not have the parts and most of the connections labels are not readable. Good Luck!

No. You need to connect the 6V power ground to the Uno GND
VIN need to be between 7V and 12V. 5V will not work.
The pump has no power!
Is your servo 7.2V?
Are your motors 5V?

Here's what to do:

  • Connect the 7.4V power to Uno Vin
  • Connect the L298 5V output to the relay Vcc, and to the water pump.
  • Use the 6V power for the servo.
  • Make sure all grounds are connected together.

So I can use wago for connecting all grounds from powers and devices, and connect in single arduino GND pin? I will draw new drawing and sending it later! Thank you


this is fixed diagram

All my changes/additions are the fat lines.

  • You only need one 7.4V power source.
  • Note the relay/pump connections.
  • Added an extra ground wire to the Uno.

So I can use wago for connecting all grounds from powers and devices, and connect in single arduino GND pin?

Yes but notice that I added an extra GND wire.

I have to leave now

Yes, surely i will have to use both gnd pins, I have wago with 5 holes, so I would have to use 2 wagos and i'll use two pins, but only thing that i dont understand, I will use 7.2v for VIN, so how can I use only one power source for Arduino board and L298N that powers 4 x BO Motors + 5v relay + water pump. Thank you in advance!

It depends, what is this 7.2V power source that you are using?

I'm using this battery, I have 2 of them
battery

The motors will use much much more current than the Uno. So having two batteries will not make much of a difference since the motor battery will die long before the Uno battery.
You can still use two batteries if you want, I was just making things simpler.

Okay, thank you so much!

When you use the L298 module make sure you have all the jumpers in place.
(circled in green)
L298N-Modulel-Pins

Have fun!