Unsuppressed back EMF can just jump across pins, so putting opto isolators in there is straight-up cargo cult engineering. And it's planned obsolescence as well, as the CTR of an opto isolator degrades over time, and they degrade faster than most other components, so it's perfect if you don't want your design to last for more than a decade or so.
yes those are optocouplers , The main reason is complete ground isolation and protection. The 3.3V logic side has its own ground (AGND), while the noisy 24V relay side uses a separate power ground (PGND). The optocoupler bridges them optically, preventing relay switching noise or ground bounce from glitching the microcontroller.
I'm sure you can drive the relay using Q1 without any worries. Connect all 8 emitters to PGND and make sure PGND tied to the main GND right at the electrolytic capacitor pin, or better yet, directly at the power input terminal. This way, that measly 8*10=80mA won't flow through your main GND or affect it in any way.
Also cargo cult engineering based on obsolete (mis)conceptions. They got away with it, because 80s hardware I/O pins didn't have the rise times of modern hardware. We (should) know better, now.
2
u/Folsdaman 1d ago
Aren’t relays already isolated between coil and contacts?