Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
3 Add schematic for second case.
source | link

This will drive a 0-12V digital signal from a 0-3.3V processor pin, by pulling a resistor low. It may not achieve 1ms rise times, depending on the capacitance you need to drive, and if you need to supply current, it'll have problems there, too. But it's simple.

Circuit on the left:

  • 0V in -- 12V out (assuming no load pulling low).
  • 3.3V in -- 0.0V2V out (assuming load less than 2mA or so)

Circuit on the right:

  • 0V in -- 0V out (assuming no load pulling high)
  • 3.3V in -- 12V - 0.2V out (assuming sink current less than 5mA or so)

schematicschematic

simulate this circuitsimulate this circuit – Schematic created using CircuitLab

This will drive a 0-12V digital signal from a 0-3.3V processor pin. It may not achieve 1ms rise times, depending on the capacitance you need to drive, and if you need to supply current, it'll have problems there, too. But it's simple.

  • 0V in -- 12V out (assuming no load).
  • 3.3V in -- 0.0V out.

schematic

simulate this circuit – Schematic created using CircuitLab

This will drive a 0-12V digital signal from a 0-3.3V processor pin, by pulling a resistor low. It may not achieve 1ms rise times, depending on the capacitance you need to drive, and if you need to supply current, it'll have problems there, too. But it's simple.

Circuit on the left:

  • 0V in -- 12V out (assuming no load pulling low).
  • 3.3V in -- 0.2V out (assuming load less than 2mA or so)

Circuit on the right:

  • 0V in -- 0V out (assuming no load pulling high)
  • 3.3V in -- 12V - 0.2V out (assuming sink current less than 5mA or so)

schematic

simulate this circuit – Schematic created using CircuitLab

2 added 133 characters in body
source | link

This will drive a 0-12V digital signal from a 0-3.3V processor pin. It may not achieve 1ms rise times, depending on the capacitance you need to drive, and if you need to supply current, it'll have problems there, too. But it's simple.

  • 0V in -- 12V out (assuming no load).
  • 3.3V in -- 0.0V out.

schematic

simulate this circuit – Schematic created using CircuitLab

This may not achieve 1ms rise times, depending on the capacitance you need to drive, and if you need to supply current, it'll have problems there, too. But it's simple.

schematic

simulate this circuit – Schematic created using CircuitLab

This will drive a 0-12V digital signal from a 0-3.3V processor pin. It may not achieve 1ms rise times, depending on the capacitance you need to drive, and if you need to supply current, it'll have problems there, too. But it's simple.

  • 0V in -- 12V out (assuming no load).
  • 3.3V in -- 0.0V out.

schematic

simulate this circuit – Schematic created using CircuitLab

1
source | link

This may not achieve 1ms rise times, depending on the capacitance you need to drive, and if you need to supply current, it'll have problems there, too. But it's simple.

schematic

simulate this circuit – Schematic created using CircuitLab