I'm designing a custom PCB that implements a relay section. I would "reproduce" the schematic of the 2 Channel Relay optoisolated so common in hobbystic. The selling shield is
And the schematic is:
My trouble are the following:
1) The transistor is the J3Y. Can I replace it with a 2N2222(A) TPH? From datasheets they seems very equivalent
2) The diodes seems Zener, for red colour. Any chance to get the exact type? It is impossible to read.... Or I will use a normal diode, a 4001
3) The optoisolator is PC817. I have available for the moment only the CNY758. What I need to check on the datasheet to verify is they could be swapped?
Thank you very much