# Control solid state relay with 3.3v

**URL:** <https://forum.arduino.cc/t/control-solid-state-relay-with-3-3v/1214120>\
**Category:** General Electronics\
**Created:** [January 21, 2024, 8:09pm UTC](https://forum.arduino.cc/t/control-solid-state-relay-with-3-3v/1214120 "2024-01-21T20:09:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![davemg](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@davemg](https://forum.arduino.cc/u/davemg)\
**Post date:** [January 21, 2024, 8:09pm UTC](https://forum.arduino.cc/t/control-solid-state-relay-with-3-3v/1214120/1 "2024-01-21T20:09:50Z")

</div>

I need some help reviewing the schematic I have for controlling a solid state relay [AQY212GS](https://www3.panasonic.biz/ac/cdn/e/control/relay/photomos/catalog/semi_eng_gu1a_aqy21_gs.pdf) with a 24 volt ac solenoid hooked to it. I am controlling this relay with an esp32.

The LED in the relay has a forward voltage of 1.32V and a recommended forward current of 5ma to 30ma. R19 is 220 ohms for 9ma forward current.

Not sure if the 10k resistor is needed to ensure the solid state relay is off and if the indicator LED is implemented properly.

Thanks in advance

 ![1](https://europe1.discourse-cdn.com/arduino/original/4X/c/b/f/cbfb584eefb449311d14ea4d3a854a4449672de5.png)

---

<div class="post-metadata">

**Author:** ![ShermanP](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@ShermanP](https://forum.arduino.cc/u/ShermanP)\
**Post date:** [January 21, 2024, 9:39pm UTC](https://forum.arduino.cc/t/control-solid-state-relay-with-3-3v/1214120/2 "2024-01-21T21:39:17Z")

</div>

I don't do AC stuff normally, so I hope others can give you more valid advice. But I would say R20 isn't needed. And I don't think D11 works with AC. It would be fully conducting during the negative phase of the AC power. But I don't know what replaces it.

---

<div class="post-metadata">

**Author:** ![davemg](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@davemg](https://forum.arduino.cc/u/davemg)\
**Post date:** [January 21, 2024, 10:59pm UTC](https://forum.arduino.cc/t/control-solid-state-relay-with-3-3v/1214120/3 "2024-01-21T22:59:27Z")

</div>

Instead of D11 I think it could be replaced with a MOV

---

<div class="post-metadata">

**Author:** ![JCA34F](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jca34f/32/340148_2.png) [@JCA34F](https://forum.arduino.cc/u/JCA34F)\
**Post date:** [January 21, 2024, 11:19pm UTC](https://forum.arduino.cc/t/control-solid-state-relay-with-3-3v/1214120/4 "2024-01-21T23:19:50Z")

</div>

What is D10's current? What is the ESP32's max output pin current? Looks like you're pushing 15mA.

---

<div class="post-metadata">

**Author:** ![JCA34F](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jca34f/32/340148_2.png) [@JCA34F](https://forum.arduino.cc/u/JCA34F)\
**Post date:** [January 22, 2024, 12:01am UTC](https://forum.arduino.cc/t/control-solid-state-relay-with-3-3v/1214120/5 "2024-01-22T00:01:41Z")

</div>

@ [davemg](https://forum.arduino.cc/u/davemg) is right, a diode won't work for AC, it will be a short circuit on the AC negative swing. I would use a bidirectional TVS diode with a standoff voltage of 32.  
EDIT: OOPS! Make that 40V, 24VAC RMS = 34V peak.

---

<div class="post-metadata">

**Author:** ![wvmarle](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wvmarle/32/1013044_2.png) [@wvmarle](https://forum.arduino.cc/u/wvmarle)\
**Post date:** [January 22, 2024, 11:00am UTC](https://forum.arduino.cc/t/control-solid-state-relay-with-3-3v/1214120/6 "2024-01-22T11:00:02Z")

</div>

If instead of using the SSR you use a TRIAC it will switch off when the current is zero, thus no voltage spike in the coil (it's demagnetised at that point).

---

<div class="post-metadata">

**Author:** ![MarkT](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@MarkT](https://forum.arduino.cc/u/MarkT)\
**Post date:** [January 22, 2024, 11:05am UTC](https://forum.arduino.cc/t/control-solid-state-relay-with-3-3v/1214120/7 "2024-01-22T11:05:00Z")

</div>

Normally an RC snubber is used for switched AC loads to mitigate inductive kick-back.

---

<div class="post-metadata">

**Author:** ![JCA34F](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jca34f/32/340148_2.png) [@JCA34F](https://forum.arduino.cc/u/JCA34F)\
**Post date:** [January 22, 2024, 2:48pm UTC](https://forum.arduino.cc/t/control-solid-state-relay-with-3-3v/1214120/8 "2024-01-22T14:48:49Z")

</div>

Agreed, but selecting the correct RC combination may be beyond the beginner's ability.

---

<div class="post-metadata">

**Author:** ![wvmarle](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wvmarle/32/1013044_2.png) [@wvmarle](https://forum.arduino.cc/u/wvmarle)\
**Post date:** [January 22, 2024, 4:10pm UTC](https://forum.arduino.cc/t/control-solid-state-relay-with-3-3v/1214120/9 "2024-01-22T16:10:53Z")

</div>

Start with 47 or 100Ω and 100 nF.  
General purpose solution, also often seen in combination with TRAICs (not for the inductive kick but to help them switch of when controlling inductive loads - though modern snubberless TRIACs don't even need that).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 20, 2024, 4:11pm UTC](https://forum.arduino.cc/t/control-solid-state-relay-with-3-3v/1214120/10 "2024-07-20T16:11:39Z")

</div>

Closed on July 20, 2024, 4:11pm UTC

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