I'm designing an esp32 interface on its own PCB that will be used to control an SPDT relay by means a software based on Home Assistant.
For this purpose I'll use an output of ESP32 (say GPIO 34) to control the relay and I would have chosen a relay like this:
However, until now, I've never used this kind of solution.
I've ever used relay mounted on its own PCB and connected to Arduino in this way:
The question is:
May I directly connect the ESP32 output to the relay's DC signal input (other then DC + and - power) or I needed a sort of protection circuit?
And in this case, which?