The optocoupler completely isolates whatever you're using to drive it, if you're using a Raspberry Pi for example, there is no way of getting spikes, feedback or any issues into the Pi. If you are using a simple circuit to turn it on and off, you don't need an optocoupler.
Nothing, the outputs can handle 50v at 500ma (half an amp). If you need more, you can use 2 pins to 1amp, and 3 for 1.5amps etc. It can only handle 2.5amps in total.
Why ground should be different? It works well with same ground. In my case I have 12v power supply which converts into 5v and then into 3.3v for esp32, so I have only one ground on my board.
Yes, you can use same ground same power supply. It means you are supplying relay and microcontroller power using same power supply, it will work nicely. But then there will not be any meaning of using optocoupler. If a circuit is isolated by a optocoupler, then power supply should be different, then only we can say that output side is 100% isolated from the input side.
@@EEWave Would be great if you could do a similar video on RC Snubber circuit for relays when inductive loads are connected. I had this issue and it took me weeks to figure out why my Arduino was resetting. Could not find any implementation video on RU-vid.
@@ankara9594 Not sure what your issue is. For me, the relays were trying to control motors (aquarium filters and oxygen pump). When the relays turn on or off it would cause the arduino to restart. This was caused by the induction from the motors. I was able to fix it using snubbers across the motors. Read this for more forum.arduino.cc/index.php?topic=200393.0
Each output can handle 500ma (half an amp), So if you need 2 amps in total, you connect 4 pins together. The entire chip cant handle any more than 2.5amps, you will need a relay or different circuit after that.