# Shifting Voltage

Joined Oct 10, 2015
27
I want to take a 2.5 V P-P signal and shift it so that all of it is above the 0 line. Basically have it read 0 to 5 volts . Would that be a precision Rectifier? How would you suggest I approach this? Thanks.

#### shteii01

Joined Feb 19, 2010
4,644
Frequency becomes important.
What is the frequency of the input signal?

#### WBahn

Joined Mar 31, 2012
26,398
Let's say that you used a precision rectifier on that signal. What would your output look like? Is that what you want?

Joined Oct 10, 2015
27
I took a 5 V p-p signal, ran it through an inverting amplifier to cut the signal down to 2.5 V P-P, then I used a 5 k and a 10k resistor to level shift the signal to get it to 3.3 V P-P. Now I want to look at the whole sinusoid but I need it all above the 0 axis. I plan to send a 3.3 Volt signal to an ADC. SEE BELOW.

Last edited:

#### WBahn

Joined Mar 31, 2012
26,398
I took a 5 V p-p signal, ran it through an inverting amplifier to cut the signal down to 2.5 V P-P, then I used a 5 k and a 10k resistor to level shift the signal to get it to 3.3 V P-P. Now I want to look at the whole sinusoid but I need it all above the 0 axis. I plan to send a 3.3 Volt signal to an ADC. SEE BELOW.
That helps explain your objected, but doesn't answer the question I asked. You mentioned using a precision rectifier. Would using a precision rectifier accomplish what you want? If not, why not?

Mathematically, what do you want your output signal to be in terms of your input signal?

Joined Oct 10, 2015
27
Frequency becomes important.
What is the frequency of the input signal?
60 HZ

#### shteii01

Joined Feb 19, 2010
4,644
Ok, that is not bad. Just about any common transistor can handle that.

Joined Oct 10, 2015
27
That helps explain your objected, but doesn't answer the question I asked. You mentioned using a precision rectifier. Would using a precision rectifier accomplish what you want? If not, why not?

Mathematically, what do you want your output signal to be in terms of your input signal?
I'm not sure. I don't think that will do the job. I think the diode is what takes care of that but Im a little torn on whether I should use a half or full wave rectifier here.
Ok, that is not bad. Just about any common transistor can handle that.
this is for an industrial application so I would think it might come in contact with harmonics.

Last edited:

#### WBahn

Joined Mar 31, 2012
26,398
I'm not sure. I don't think that will do the job. I think the diode is what takes care of that but Im a little torn on whether I should use a half or full wave rectifier here.
But will any king of rectifier do what you want?

Sketch your waveform that goes both above and below the axis. Now sketch what that waveform would look like it if it rectified. Is that what you want?

Joined Oct 10, 2015
27
But will any king of rectifier do what you want?

Sketch your waveform that goes both above and below the axis. Now sketch what that waveform would look like it if it rectified. Is that what you want?
A half wave rectified waveform is going to only show the positive portion of the wave right? If I used a full wave rectifier, that would basically take the negative half and invert it to make it positive ( so the signal would be closer to DC type waveform). That would seem to be not a good thing since we are inverting half the signal. Seems like I would need the half wave. We are only getting the positive half. I was thinking initially we would need to shift the whole wave form up but I realize now I cant do that because AC has a + and - component. So, I would only want the half wave I'm using now, I think.

Unless, I can make a general assumption that the negative and positive values are going to be the same. So, once flipped up to the top I can use them to make the signal more like a DC value. Then, with a capacitor, I can make the signal similar to a DC signal. For current sensing is the a flawed way to approach it?

#### WBahn

Joined Mar 31, 2012
26,398
a half wave rectified waveform is going to only show the positive portion of the wave right? If I used a full wave rectifier, that would basically take the negative half and invert it to make it positive. That would seem to be not a good thing since we are inverting half the signal. Seems like I would need the half wave. We are only getting the positive half. I was thinking initially we would need to shift the whole wave from up but I realize now I cant do that. So, I would only want the half wave I'm using now, I think.
Why can't you shift the whole wave up?

Again, what is the mathematical relationship you want between the input signal and the output signal?

Unless, I can make a general assumption that the negative and positive values are going to be the same. So, once flipped up to the top I can use them to make the signal more like a DC value. Then, with a capacitor, I can make the signal similar to a DC signal. For current sensing is the a flawed way to approach it?
What information are you trying to get out of this signal?

Joined Oct 10, 2015
27
Why can't you shift the whole wave up?

Again, what is the mathematical relationship you want between the input signal and the output signal?

What information are you trying to get out of this signal?
I'm not sure how to shift the voltage waveform up without rectification.

I have an input of 0-70A, that through a CCVS will convert to 0-20mA. The 0-20mA outputs a 0-5V value (which is again stepped down to 0-3.3 V so as not to burn up the ADC. The ratio through the CCVS is 1/1000. Then the level shifting resistor arraignment converts from 5V to 3.3 Volts.

I'm trying to get a signal that is 0-3.3 Volts with very low current draw.

Last edited:

#### WBahn

Joined Mar 31, 2012
26,398
I'm not sure how to shift the voltage waveform up without rectification.

I have an input of 0-70A, that through a CCVS will convert to 0-20mA. The 0-20mA outputs a 0-5V value (which is again stepped down to --3.3 V so as not to burn up the ADC. The ratio through the CCVS is 1/1000. Then the level shifting resistor arraignment converts from 5V to 3.3 Volts.

I'm trying to get a signal that is 0-3.3 Volts with very low current draw.
Again. What is the mathematical relationship between the signal you have and the signal you want?

Your original post had a drawing that showed a sinusoidal signal (at least roughly) that was 5Vpp centered on zero. So let's call that v_in(t).

v_in(t) = (2.5 V)·sin(wt)

You now want to put that into a black box circuit and get out the signal (let's call it v_out(t)) at the bottom of that drawing.

What is the mathematical relationship between v_in(t) and v_out(t).

Hint: There's a reason why you used the word "shift" in your title and original post.

Joined Oct 10, 2015
27
Again. What is the mathematical relationship between the signal you have and the signal you want?

Your original post had a drawing that showed a sinusoidal signal (at least roughly) that was 5Vpp centered on zero. So let's call that v_in(t).

v_in(t) = (2.5 V)·sin(wt)

You now want to put that into a black box circuit and get out the signal (let's call it v_out(t)) at the bottom of that drawing.

What is the mathematical relationship between v_in(t) and v_out(t).

Hint: There's a reason why you used the word "shift" in your title and original post.
1:1. I was thinking of using a level shifter but I think it only reduces or expands a voltage magnitude. Initially I thought I could use it to move a sin wave positive or negative.

#### WBahn

Joined Mar 31, 2012
26,398
Let's try a different tack.

I gave you an equation for v_in(t).

If you were just shown the bottom part of your drawing, could you write an equation for v_out(t). Forget about circuits and v_in(t), just come up with an equation that describes v_out(t).

#### shteii01

Joined Feb 19, 2010
4,644
This is the Homework Forum. Simply giving answers denies the OP the benefit of learning how to solve the problem with some guidance...
Are you sure OP is doing homework?