0
\$\begingroup\$

The 3.3V DC is output from a MCU, how I can convert to a +/-5V signal?

enter image description here

\$\endgroup\$
12
  • 1
    \$\begingroup\$ Use amplifier/level shifter. Or if it is a purely digital signal - even some kind of digital switch will work (depending on timing requirements) \$\endgroup\$
    – Eugene Sh.
    Dec 14, 2020 at 14:40
  • \$\begingroup\$ What power voltages are available in your system? \$\endgroup\$
    – Mattman944
    Dec 14, 2020 at 14:47
  • \$\begingroup\$ A single +3.3V DC power is available . \$\endgroup\$ Dec 14, 2020 at 14:50
  • \$\begingroup\$ Surely you can't get +/-5v from a single 3.3v supply without adding some kind of voltage regulator. \$\endgroup\$
    – Eugene Sh.
    Dec 14, 2020 at 14:51
  • 1
    \$\begingroup\$ The question is what for? Is this for UART comms or for something else? The answer will depend on what the supplies are used for and how much current is needed. \$\endgroup\$
    – Justme
    Dec 14, 2020 at 15:08

4 Answers 4

7
\$\begingroup\$

A UART driver such as a MAX3232 can do the conversion and also create the +/-5V supply voltages from your available 3.3v supply, all in one device.

Just use the DIN1 and DOUT1 pins.

enter image description here

MAx3232 Datasheet

\$\endgroup\$
1
\$\begingroup\$

You use a opamp as an adder/subtractor with the necessary gain. Look up the circuit for subtractor using Opamp, and design the circuit with a gain of 3. The opamp will need a +-5V dual supply. (output=signal*3 -5)

\$\endgroup\$
1
  • 3
    \$\begingroup\$ Using a designated comparator is safer than a generic op-amp, apparently due to saturation and speed concerns. \$\endgroup\$
    – Reinderien
    Dec 14, 2020 at 14:52
0
\$\begingroup\$

As @AdityaChavan suggests, using a comparator can do this for you. Note that you would need a dual boost converter from 3v3 to +/- 5 to supply the comparator. Whether this is advisable (or preferable over the MAX3232) depends on a great number of things including required output bandwidth and current capacity, neither of which you've specified in your question.

Depending on (even more) considerations including distance from the MCU to the driver in the board layout, expected ambient noise, etc. it may be preferable to configure a combined level-shifter-Schmitt-trigger, as shown below. You'll see that RIN1 and RIN2 on the MAX3232 similarly have hysteresis.

For this example, the comparator will only go high on input exceeding 2.5V, and only go low on input less than 1V. Vdd and Vss are the boosted voltages that would need to be provided by another circuit.

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
0
\$\begingroup\$

I've designed this circuit for you. You'd have to use dual supply, +5 and -5 and a rail to rail op amp. You could also use non rail to rail but you'd have to use something like +12 -12 and then get -5V somehow. (Voltage regulator or voltage divider which would maybe need to be buffered). enter image description here

\$\endgroup\$

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