I'm trying to create a digital water flow meter with limit control using an Arduino Nano. The flow meter has a reed switch that closes and opens for every 10 liters of water flow. To count the total liters consumed, I've connected the reed switch to an interrupt pin on the Arduino. To cut off the water flow, I've used a 230V AC solenoid valve.
The problem is that when the 230V AC is not connected, the liter count is accurate. However, when the AC voltage is turned on, the count increases randomly when I try to switch the solenoid valve. The noise is not coming from the relay coil but from the load (solenoid valve).
What are the possible ways to resolve this issue?
I've enclosed the circuit diagram
The problem is that when the 230V AC is not connected, the liter count is accurate. However, when the AC voltage is turned on, the count increases randomly when I try to switch the solenoid valve. The noise is not coming from the relay coil but from the load (solenoid valve).
What are the possible ways to resolve this issue?
I've enclosed the circuit diagram
Attachments
-
137.5 KB Views: 24