38. Design open-collector output

Circuit

Loading simulator…

Design Approach

An NPN open-collector output can translate a 3.3 V control into an active-low 5 V signal. However, the provided R_INPUT = 10 kΩ loads the output, so the pull-up must be chosen to reach at least 4.5 V when the transistor is off.

How the Circuit Works

  1. Add the pull-up. The solution adds R_PULLUP = 1 kΩ from the 5 V supply to LOGIC_OUT. The existing R_INPUT = 10 kΩ connects the output to ground.
  2. Calculate the HIGH level. With Q1 off, the resistors form a divider: LOGIC_OUT≈5×101+10=4.55V\mathrm{LOGIC\_OUT} \approx \frac{5 \times 10}{1 + 10} = 4.55\,\mathrm{V}, exceeding the 4.5 V requirement.
  3. Drive the transistor. The solution also adds R_B = 4.7 kΩ between CTRL_IN/I_CTRL and the NPN base. At 3.3 V, approximate input current is 3.3−0.74.7kΩ≈0.55mA\frac{3.3 - 0.7}{4.7\,\mathrm{k}\Omega} \approx 0.55\,\mathrm{mA}, below 1 mA.
  4. Pull the output LOW. When CTRL_IN is HIGH, Q1 conducts and pulls LOGIC_OUT toward ground, typically below 0.4 V in saturation. The output logic is inverted relative to the input control.

Verify the Circuit

With CTRL_IN = 0 V, expect LOGIC_OUT≥4.5V\mathrm{LOGIC\_OUT} \ge 4.5\,\mathrm{V}. With 3.3 V, expect LOGIC_OUT≤0.4V\mathrm{LOGIC\_OUT} \le 0.4\,\mathrm{V} while I_CTRL < 1 mA. Increase R_PULLUP and observe the loaded HIGH level fall.

Key Learnings

  • Open-collector outputs require a pull-up resistor to produce a HIGH level.
  • The receiver’s input impedance affects the pull-up voltage, especially when the load is not high impedance.