I'm using a JQC-FC3VDC relay. I control it from a microscontroller using a 3.3V signal through an opto-link. And the business end of the relay controls a 24VAC output which then activates the irrigation valve. All pretty obvious.
The relay output as three pins, COM, NC, and NO. I've been connecting 24VAC to the COM and using the NO pin as the output to the valve. The NC pins is disconnected (floating) in my setup. So, when I turn-off the relay, the solenoid suddenly has floating lead and a large di/dt, which causes a sizeable voltage spike. A couple of things I realized:
The COM and NO pins are connected via the mechanical relay, so it does not matter which has the 24VAC supply and which is the output to the irrigation valve. Its essentially a switch, there is no directionality there.
Therefore, if I connect the 24VAC supply to NO and run the the COM pin to the irrigation valve it should operate the same. However, I can then connect ground to the NO pin, so that when the irrigation valve shuts off instead of having a floating input to the solenoid, its held to ground. This should squash the voltage spike cleanly.
I guess what I'm asking is, does this make sense? I've been using the COM pin of the relay as the supply input and the NC pin as the output to the solenoid, but it does not have to be that way.