Hello, I need a little help with the wiring of my relay module. I already searched and couldn't find the answer I need, but there's similar questions, so I'm pretty sure it's possible.
I'm automating a fogponics tower and need to switch the pump, fan and mister on and off. Since the mister is 24v, I went with everything 24v on a 6s li-ion setup (with BMS obviously) and connecting the arduino using a step down converter (https://www.aliexpress.com/item/1888459743.html)
Now I need help triggering the relay coils. I have this module:
https://www.aliexpress.com/item/1005002617199944.html
It has VCC, GND and 4 IN ports. I need a little advice in how to connect it... to me sounds logical to connect VCC to +24, share GND between the arduino and the battery (pre and post step down) and just feed a logical port into the IN ports, but I'm not sure if it's safe for the components. Should I add a diode in the GND to the arduino? a resistor? Should I just use battery VCC and GND? Should I add a transistor (mosfet?) to feed the IN port with 24v directly? if so, what else is needed in the circuit?
Should I just buy a 5v module and connect directly to the arduino VCC?
Thanks for reading, and sorry for the basic question.