I'm using 4 optocoupler for switch some relay with an attiny85. Each optocoupler is connected with a 150 ohm resistor to the attiny gpio. I've noticed that I had left the ground unconnected on the optocouplers anode but surprisingly they works the same , turning on the relay. How is it possible? Maybe due to some capacitance beetwen the anode and the emitter?