Electrical – How to add DC offset to a sine wave (so from -2.5V – 2.5V to 0V – 5V)

offsetsine

I have a sine wave with a minimum peak of -2.5V and a maximum peak of 2.5V. I want to add a DC offset of 2.5V (using a separate power supply so no positive clamper) in order to get a sine wave between 0V-5V.

Can I somehow use the LM324N by any chance since I have that one available? If not, any other IC is also fine…

Best Answer

If the lowest frequency of the sinewave is audio for example, all you need is a decoupling capacitor and a resistor that connects to the 2.5 volt DC offset. Here's how to remove a dc level: -

enter image description here

The output DC level can be restored by attaching the resistor (R) to 2.5 volts instead of 0 volts. If you need to connect to a load that might alter the planned DC offset then maybe you will need to add an op-amp buffer.

A 10 uF capacitor and 10 kohm resistor will have a 3 dB point at 1.59 Hz and this would be suitable for audio signals: -

enter image description here

Can I somehow use the LM324N by any chance since I have that one available?

I don't see any reason to use an op-amp unless you want the input frequency to go down to 0 Hz or you have a significant load to be attached to the output.