220 vac solenoid valve control with single channel relay module using arduino stuck issue

I need help of experts. I am noob in arduino programming and circuitry. I am controlling 220 volt solenoid valve using single channel relay module but here problem starts I when I disconnects the load from relay it works fine but when I put inductive load the arduino uno stucks after 4 runs please help me I am geeting mad​:cry::cry:
I am also getting display on lcd with i2c module.

Welcome and thanks for posting pictures. Unfortunately they don’t seem to show anything useful

Have a read of the forum guidelines

Schematics and code in code tags are useful but read the guide in full before posting

The easiest and quickest test is to be sure ALL the 220VAC wiring is as far away from any Arduino wiring as possible. Where that is not possible, be sure the 220VAC wiring is at right angle to any Arduino wiring. Do you still get the failure?

Yes they both are separate

What does 4 runs mean? How many times does the relay operate during those 4 runs?

You need a properly sized RC snubber or bidirectional TVS diode wired across (in parallel with) the valve coil. What is the coil's wattage?
Do you mean the relay is sticking ON?

Using a solid state relay will eliminate the arcing problems. Try this link: Solid State Relay - 40A (3-32V DC Input) - COM-13015 - SparkFun Electronics (24 - 380 VAC). I have used these devices in the past with brush motors (Lamb vac motors) and never had any problems.

Hi, @abdullahsarkar
Welcome to the forum.

Can you post a link to spec/data of the solenoid valve?
Can you post an image of your relay module?

Can we please have a circuit diagram?
An image of a hand drawn schematic will be fine, include ALL power supplies, component names and pin labels.
A couple of images of your project would also help.

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

I found the problem due to power supply I increased 3 amps to 12 volt 5amps now its working fine. The lcd is also cause of stucking the arduino when wires of lcd with i2c display displace during arduino code execution it always stucks.

Hi,

What do you mean bu "stucks"?
Do you mean the display freezes or locks up?

An image of a hand drawn schematic will be fine, include ALL power supplies, component names and pin labels.
A couple of images of your project would also help.

Tom.. :smiley: :+1: :coffee: :australia:

That's likely not the cause of the problem.
Perhaps the other supply is a bit better at stopping interference from mains power.
Powering an Arduino with a relay and an LCD attached to it from 12volt is wrong.
You could soon have delayed restarts because the regulator on the Arduino is getting too hot.
You should power the (unspecified) Arduino with 5volt on the USB socket.

The root of your problem is likely what JCA34F said in post#6.
A solenoid valve produces nasty spikes when you turn it on/off with a relay.
You must use a suitable snubber circuit across that solenoid.
Leo..

Read post 2 again

Actually I am using 7405 ic to powerup the relay module. Supplying 12 volts to ic from the same power supply. But to lcd I gave 5 volts from arduino.

Can we please have a circuit diagram?
An image of a hand drawn schematic will be fine, include ALL power supplies, component names and pin labels.

Does the 7805 get hot?
Have you got the bypass capacitors on its Vin and Vout pins as per the datasheet?

Can you post a link to spec/data of the solenoid valve?

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:


Again same issue this is the valve I am make on/off with relay module

Can I use SSR? Please help me

Any one is active? I need suggestion can I use SSR to on and off solenoid valve will my issue be resolved

Hi,
Please supply a schematic and we will see.
Your wiring looks like a bit of a rats nest.
Have you got 240Vac wiring separated from ALL the other wiring?

Tom... :smiley: :+1: :coffee: :australia:


Here it is please see this

Hi,
Thanks for the diagram.

Have you got the specified capacitors connected to the input and output pins of the 7805?


Have you kept the 220Vac wires that come into the relay and go out to the motor separated from the rest of the wiring.
This is essential so you do not induce starting current spikes on the lower voltage control and power supply wires.

Thanks.. Tom.. :smiley: :+1: :coffee: :australia: