I am working on an electroncis project where need to control DC motors and I need to control speed & direction, I am using IGBT for that. But I have read online that I need to use optocoupler after microcontroller's pins.
I have found PC817 optocoupler online and it looks nice. So, should I use this one or can anyone suggest me a good one? and so I have to use it ?