If you connect an external Mosfet, then the LED current is no longer dependent on the current capacity of the opto transistor.Because I will use the 1k resistor but I still want my led to be bright, I have created the following schematic. Is my pull up resistor correct? Or should it be a pull down resistor. Can you please give me recommendations on which mosfet to use and what I should look out for when choosing a mosfet for this scenario, could I use a bjt instead? Thanks. The optoisolater is still 4n36
You can use a PMOS like you've shown. But you'll need to reverse the connections to the diode so that diode current flows only when the input signal is at ground. Using a 1k resistor is dicey because it reduces the current to about 4mA but it should work. What helps this configuration is the voltage driven mosfet. It only requires an extremely small amount of current to turn on. Use a small 20V mosfet but change the supply to 5V and external LED resistor to 300 ohms (for 10mA).