Hello,
I have connected my arduino mega 2560 to a 8 channel relay(JQC3F-05VDC-C)(1), and each relay is connected to 24volt peristaltic pump (2). The pumps are powered by 24v,10 amps SMPS weidmuller(3).
When SMPS is OFF:
i am trying to build a tea dispenser, when i press the button(5 buttons are there)(4) to dispense a beverage the code works accordingly the relay gets turned ON and OFF within the specified time and there is no problem.
When SMPS is ON:
But when i turn ON the SMPS and press the button of a beverage, the relays get triggered and all the motors run one by one untill i turn OFF the SMPS.
more details:
1.used attached interrupt for the buttons and works perfectly fine.
2.cannot post the code cause it's of close to 600 lines(due to use of other sensors such as float sensors,temp sensors and LED's)
(1). pic of relay module i am using:
(2).data sheet of preistaltic pump used:
Peristaltic Pump HPP 24V at ₹ 4950/piece | OEM Peristaltic Pump in Chennai | ID: 2851746205455
(3).pic of SMPS being used:
for ref:
used the below config to connect pumps with the relay.


