Hi!
I want to switch on/off by isolating input from output using a photocoupler (for example SFH6106) and I saw a circuit of this type in its datasheet:

Look the image below.
1) Is the first circuit correct? ..and is it therefore correct to indicate two different masses?
(..maybe adding a 10nF decoupling capacitor at the input is a good idea)
2) I drew the second circuit because I vaguely remember seeing online optocouplers in the past that closed in input with a diode (or resistor), as I drew in the second schematic.
I don't see the point of it, but maybe I'm missing something.
Is there any reason?

Thanks
I want to switch on/off by isolating input from output using a photocoupler (for example SFH6106) and I saw a circuit of this type in its datasheet:

Look the image below.
1) Is the first circuit correct? ..and is it therefore correct to indicate two different masses?
(..maybe adding a 10nF decoupling capacitor at the input is a good idea)
2) I drew the second circuit because I vaguely remember seeing online optocouplers in the past that closed in input with a diode (or resistor), as I drew in the second schematic.
I don't see the point of it, but maybe I'm missing something.
Is there any reason?

Thanks

