Electrical – Controlling a 24VAC solenoid with arduino

arduinoinductorsolenoidsolenoid-valvetvs

I'm trying to come up with a design for controlling a 24VAC water valve with an arduino.

My current design :

enter image description here

I want to use a BT1308W TRIAC controlled by an arduino pin to activate the vale, I'm also using a smbj48ca TVS diode to suppress spike generated by the solenoid when it's de-energized. I was using a similar design using a relay and the arduino was reboting randomly when the solenoid was closed, after adding the TVS diode it's not happening but is the correct use for this diode?

Best Answer

after adding the TVS diode it's not happening but is the correct use for this diode?

You need a back-to-back (or bidirectional) TVS diode i.e. one rated for AC. At the moment if you apply AC to the terminals (VAC1 and 2) and energize the triac it will short out the AC supply on positive half cycles.