Relay module gets triggered on its own when SMPS is powered ON

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.

What is SMPS?
When ALL the code is posted in code tags plus any error logs or serial output also in code tags plus a wiring diagram (photo of hand drawn is fine) someone may be able to help.

1 Like

i believe i have added enough data and references,and will add more if it needed.
TQ

Hint: People don’t ask for information they don’t need. Since you haven’t solved the problem, how can you know what information others will need to help solve it?

When posting your code, ensure it’s formatted properly. Additionally, include an annotated schematic that clearly shows how everything is wired. Your current pictures are nearly useless; I can’t even read the labels.

Please also provide:

  1. Links to the technical documentation for each hardware device.
  2. Clear, sharp pictures where all lettering is readable, as blurry images are generally unhelpful.

These steps will greatly improve the chances of resolving your issue.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.