| Electronics > Beginners |
| Opamp,Howto set the DC offset as the signal dynamically changes in gain? |
| (1/2) > >> |
| stian:
Hello people. I am not sure how to explain my problem but i'll try as best as i can. topic vice dont know how to do better either. Anywho i need some help solving my problem. I have a input signal in range, 0 - 5V max. This signal can be offset on the 0-12V rail however i want to have a keep my "Virtual Offset point (V1 /2)" as gain changes. Im not at davecad level yet.. so i made up some notes on a A4 papersheet instead :D * On the Left is what the signal might be at any time. * In the middle you can see what happens when the gain reduces to half, 5 to 2,5 * On the right you can see how i want the signal to be. Im not even sure if the formula is correct. but it works out when RF=R1. :D In short, how do i adjust V2 to its correct values as V1 changes.. What is the best solution to this problem? Regards. Stian |
| Zero999:
In future please do some image processing when you scan/photograph drawings, i.e. contrast, brightness, to make it easier to read. I'm not sure what you're trying to achieve. An ordinary op-amp circuit, with the usual 0V node, connected to the offset, will result in the signal amplitude increasing, around the same centre point. For example a 2V peak to peak signal, on 6V, i.e. 7V high and 5V low, will result in a 4V peak-to-peak signal, i.e. 4V low and 8V high, when passed through a non-inverting amplifier with a gain of 2 and the usual 0V node connected to 6V. If the signal is symmetrical, has no DC component i.e average. 50% duty cycle and no gain is required, only a change in offset can be achieved using a potential divider and an AC coupling capacitor. |
| forrestc:
I'm also not clear on what you are looking for. Here's a suggestion: Using Hero999cad, draw the following: A set of possible input signal waveforms, and for each of those inputs, show what you'd like the output to be. That way we can see the desired output for each class of input signal. I'm also confused by what you mean by as 'gain changes'. Is this just an incorrect term for the input signal level changes, or are you saying you're changing the gain of the amplifier? If you're changing the gain of the amplifier, then I'd recommend adding another set of waveform pairs labeled with the desired amplifier gain. |
| stian:
Hello again. Yeah i realize that i didnt explain myself verry well. English isnt my native language so yeah. But i will try again. :D I want to work with DC "signal" which can be offset to a wanted level without AC coupling. in my drawing i use Vgnd as 1/2 Vcc. but this refrence point can be changed aswell. So if "Vgnd" is changed to lets say 5V instead of 6V. The output from GND(0v) and Vout should Change, but not the output between Vgnd and Vout. But lets stick with Vgnd to 1/2 Vcc for now. Hopefully this new drawing is more clear for what i want to do. And i would like to know what is the best way to go about doing something like this without ac coupling.! Since we have a inverting amp.. how about a inverted picture. Hero999 seems to like contrast :p My problem here is *4. how do i make V2 auto adjust itself when V1 changes. I was thinking about some summer circuit or something. since i know what V2 must be given Vgnd/2 + V1/4. But im not sure. Edit. after some messing around on http://www.falstad.com/circuit/circuitjs.html i came up with something like this. Still not sure this is the best way to go about doing it. Regards. Stian |
| Zero999:
I'm still not 100% sure of what you want. It seems like you're after a differential amplifier. The output will be equal to the difference between the inputs, multiplied by the ratio of R2 to R1 and added to the reference voltage. https://www.eetimes.com/document.asp?doc_id=1272328 |
| Navigation |
| Message Index |
| Next page |