Continue to Site

Welcome to

Welcome to our site! is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Vary voltage in synchrony with other voltage?

Not open for further replies.


Advanced Member level 5
Jun 13, 2021
Reaction score
Trophy points
Activity points
We have a voltage which will vary from 2v to 5v
When it does this, we want another voltage to go from 1.76V to 0.7V.
(just signal voltages)
Is the attached the lowest component way for this?
LTspice and jpeg attached


  • Vary voltage.jpg
    Vary voltage.jpg
    100.1 KB · Views: 85
  • vary
    1.2 KB · Views: 69

Simple Math leads to simple design.
In = 2 to 5V
Out=1.76V to 0.7V
Gain = (1.76-0.70) / (2 - 5)= 1.06/-3 = -0.35333
Offset= Mean (out-in) = {(1.76+0.7)-(2+5)}/2 = -2.27V
Using a Differential Amplifier with negative gain = -0.3533 and offset of -2.27 using +Vref= 1.82V = (1+Av-)*5V

Choose R values and tolerances to meet your expectations. (design specs)

Last edited:
Is the attached the lowest component way for this?
A single transistor can do the job although to adjust values is a trial-and-error task.
NPN inverts the slope of the incoming signal.
Is your power supply 5V? It can be dropped via zener/led/diode string.

NPN level shift signal 2-5V (invert direction n reduce).png

If interested, here is a procedure for determining the component values for the circuit in post #5.
This is basically a variation of the procedure posted in post #3.

  • The inverting gain must equal -0.35333 as D. A. calculated in post #3 (the closest value of -0.3549 generated here by the values of R1 and R2).
  • This output for a 2V input would then be 2 * -0.3549 = -.7099V (without any added offset)
  • Since +2V input should give +1.76V at the output, a positive output offset of (+1.76V + 0.7099V) = +2.47V is thus needed.
  • The non-inverting gain at the (+) input is (1+ 0.3549) =1.3549 so a voltage of (+2.47V / 1.3533) = +1.823V is required at the (+) input, which is generated by the voltage divider R3 and R4 from the +5V supply.

Not open for further replies.

Part and Inventory Search

Welcome to