Settings like this can be found at various points on this site. The trigger door can be a 4093 with the inputs attached, acting as an inverter. The supply voltage depends on the excited logic, normally 5 V for microcontrollers. The optocoupler can be of any type and R1 depends on the signal source.
