0
\$\begingroup\$

I want to drive a 12V, 1.5A valve from a microprocessor and also provide some isolation. The MCU outputs 3.3V logic, and I have this output going into a common source amp & also have a resistor in series calculated for the optocoupler LED value.

The 6n137 is inverting, but the MCU will be aware of this in code & handle it.

On the output, I will have a couple configs for testing so I have a solder jumper. Ignore that and just assume the PMOS source is connected to 12V. Please assume it will be a part that can support the power requirements.

I tested this on the bench and I'm noticing that the 1k pull-up is pretty "strong", meaning the optocoupler struggles to pull the gate to GND quickly but can pull the gate to Vcc very fast. On the output, the slow fall time of the gate means that the PMOS has a delay in turning on and it results in the duty cycle of the output being different from the duty cycle of the input. Since the gate gets pulled up quickly, the falling edge on the output is well aligned in time and fast.

Would love some help understanding a better way to "tune" this circuit, and also if I'm missed anything obvious or am doing something silly. enter image description here

\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

Another Q&A had a circuit using a 6N137, and it was pointed out that the part is not rated for 3.3V - only 4.5-5.5V. There is an "-L" version, but there are better optos. Even a simple opto-transistor like PC817 with 4 uSec response time is probably adequate for your purposes.

I see that the schematic shows 5V supplies, but your post says 3.3V.

\$\endgroup\$
1
  • \$\begingroup\$ Yes, the signal going into Q34 is 3.3V. The Q34 common src amp is to shift 3.3V to 5V logic level for the optocoupler. \$\endgroup\$
    – jonnyd42
    Commented Jul 25, 2022 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.