I am pretty new at this stuff and I need some help with an optocoupler. I have an HCPL2631M optocoupler. The allowable current on the output size is not sufficient for my circuit. I want to use an npn transistor whose base is connected to the open collector. I am not sure how to hook this up. Do I need 2 pull up resistors, one for the open collector of the optocoupler and another one for the transistor? I plan to hook use a 680 ohm resistor or something near that between the optocoupler collector and the base of the transistor to limit the current through the base. I am confused about how to hook up the pull up resistors. Can I use 1 pullup resistor that is connected to both the optocoupler and transistor or do I need two different pullup resistors?
Here is some more info. The circuit on the final output requires about 60mA (call it the load) and 60mA is more than I can conduct through the opticoupler. It is a 5 volt system on both sides of the optocoupler. The more I think about it the confuseder I get. I do not want or need any resistance on the final output. There is a resistance built into the device (load) that I do not have access to and its current is about 60mA if I just ground the wire. I am just trying to switch the final output on and off using an optocoupler. Maybe I am thinking about this wrong (likely as I am a begginer).
If I look at MrChips schematic it looks like what I am calling the load would be the resistor plus LED but I don't get how that works. In that case I think I would use a standard pullup on both the optocoupler and transistor (2 resistors 4.7k or whatever ) with the load connected to the transistor collector and pullup ( a T junction)? Or maybe the load acts like my pullup like what MrChips shows. I am sorry if this isn't making sense to you, I am struggling with this. It is fine if it inverts. I just need something that does a hard on off switch. The transister that I intend to use is a 2N2222A.
Here is some more info. The circuit on the final output requires about 60mA (call it the load) and 60mA is more than I can conduct through the opticoupler. It is a 5 volt system on both sides of the optocoupler. The more I think about it the confuseder I get. I do not want or need any resistance on the final output. There is a resistance built into the device (load) that I do not have access to and its current is about 60mA if I just ground the wire. I am just trying to switch the final output on and off using an optocoupler. Maybe I am thinking about this wrong (likely as I am a begginer).
If I look at MrChips schematic it looks like what I am calling the load would be the resistor plus LED but I don't get how that works. In that case I think I would use a standard pullup on both the optocoupler and transistor (2 resistors 4.7k or whatever ) with the load connected to the transistor collector and pullup ( a T junction)? Or maybe the load acts like my pullup like what MrChips shows. I am sorry if this isn't making sense to you, I am struggling with this. It is fine if it inverts. I just need something that does a hard on off switch. The transister that I intend to use is a 2N2222A.
Last edited:


