This tutorial gives an introduction to the HY-M154 / 817 optocoupler module. Moreover, a simple application is programmed that shows how to wire and how to program an Arduino when working with the m.
An optocoupler can be also effectively used for interfacing analog signals across two circuit stages by determining a threshold current through the IRED and subsequently modulating it with the applied anal.
Internally an optocoupler contains an infrared or IR emitter LED (normally built using gallium arsenide). This IR LED is optically coupled to an adjacent silicon photo-detector device which is generally a photo.