Eliminating sine offset with op amp

Discussion in 'Analog & Mixed-Signal Design' started by Mikołaj Koszel, Nov 30, 2018.

  1. Mikołaj Koszel

    Thread Starter New Member

    Nov 24, 2018
    1
    0
    I generate a sine from PIC16F DAC. As the result I get a sine wave from 0 to 5V. I would like to eliminate offset and get sine wave from -2.5V to 2.5V. What's important I also change amplitude of sine from ( 0 to 2.5V). For example when amplitude is 1.5 V, I want to gen -1.5V to 1.5V sine from 0 to 3V. I tried to use capacitor(3uF) in series with input and resistor in parallel (100k). It works in LTSPICE. Will it also works when I will connect it to microcontroller? What are other solutions of my problem.
    Thanks
     
  2. ericgibbs

    Moderator

    Jan 29, 2010
    6,206
    1,177
    hi MK,
    Welcome to AAC.
    If you want to change a 0V to 5V Sine wave signal to +/-2.5V, you have to Add Offset.
    Post your LTSpice 'asc' file and we can show you how to modify the circuit.
    E
     
  3. dl324

    AAC Fanatic!

    Mar 30, 2015
    7,439
    1,763
    Welcome to AAC!

    Using a capacitor to AC couple the signal is the usual way. This is how Tektronix did it in the 7A26 vertical amplifier:
    upload_2018-11-30_7-49-47.png
     
  4. danadak

    Well-Known Member

    Mar 10, 2018
    1,898
    395
  5. crutschow

    Expert

    Mar 14, 2008
    20,241
    5,731
    It should.
     
Loading...