Hello Misterbill2, Thank you for the good responce.
I am trying to understand it in detail:
" The abs max current, above that is assured destruction, is 60 mA. ":
Yes the diode of the optocoupler will byrn at 60mA according to the datasheet bellow.
"for TEN milliamps , 1200 ohms is reasonable. For a bit over 20 milliamps a 560 ohm (Green, Blue, Brown is a correct choice."
How did you decide that 1200 pullup resistor of the comparator will give 10mA?
How did you see that 560 pullup resistor is a good choise for Blue LED?

I am trying to understand it in detail:
" The abs max current, above that is assured destruction, is 60 mA. ":
Yes the diode of the optocoupler will byrn at 60mA according to the datasheet bellow.
"for TEN milliamps , 1200 ohms is reasonable. For a bit over 20 milliamps a 560 ohm (Green, Blue, Brown is a correct choice."
How did you decide that 1200 pullup resistor of the comparator will give 10mA?
How did you see that 560 pullup resistor is a good choise for Blue LED?



