Should i run an optocoupler to control pwm fan?

Hey guys, using an esp32 to control an AC Infinity Cloudline fan. This is the EC motor version.

Following this thread

I was able to wire it up, and have it working properly in ha as a speed fan with 10 steps just wired up to a gpio pin directly for pwm signal.

It all works fine currently, but I’m new to this and keep reading that it’s a good idea to isolate devices running main power. So should i work an optocoupler into the pwm signal circuit? Or would the pwm signal coming from the infinity be isolated already with it being an EC controlled motor?

If I did need the opto, I guess I would wire the input side pins to gpio pin/resister and ground, output pins pwm signal to fan and 3.3v pin?

thx guys! Absolutely loving esphome for getting into this stuff! Well done devs!

1 Like

FWIW I did end up hooking an optocoupler up for the pwm circuit as indicated above and as one would figure it does still work.

I have always isolated any 240v control circuitry from the ELV stuff using an optocoupler. They are cheap and easy to use.

For instance I have a proofing cupboard that has a heater control circuit, the ESP based control stuff that has the buttons and displays is separated from the heater control by an optocoupler.

holy moly! I searched far and near for how to control the S6 and you are here. I love you. Thank you!