Nec 2501 photocoupler

Double check the pinout, what you've described ought to work from what I can tell.