Op-amp subtractor question

Hi!

I am new to op-amps and have a couple of questions.

I am building a function generator that operates in the range of 1-100000Hz.

The different waveforms have different voltage levels that I want to control. In a different thread I got some tip to change the voltage offset with a capacitor and resistors.
I also got a tip to use a op-amp. I have thought about the op-amp and it seems to be a good idea because of the buffer functionality.

Now to my questions :slight_smile:

  1. Can I use a differential amplifier subtractor circuit to change the voltage of a signal?
    Eg. My signal is 2-7V. I connect the signal to Va(-) and 2V to Vb(+). Will the output signal become 0-5V? (with the right resistors)

  2. Which op-amp should I buy for my project? (Signal generator or Synth)
    It exists A LOT of different op-amps. I am not sure what to buy.
    For example is LT104 (LT1014 Datasheet and Product Info | Analog Devices) a good one?
    Any tip of another good op-amp that is cheap?

  1. Can I use a differential amplifier subtractor circuit to change the voltage of a signal?
    Eg. My signal is 2-7V. I connect the signal to Va(-) and 2V to Vb(+). Will the output signal become 0-5V? (with the right resistors)

Yes. A difference amplifier with a gain of one will do that. If you want to go all the way down to 0V, it's best to use a bi-polar power supply (most op-amp circuits call for + & - power supplies anyway).

  1. Which op-amp should I buy for my project? (Signal generator or Synth)

I'm not sure, but it's probably not too critical. Most op-amps can go to 100kHz.

Thanks for the answer.
I must order some op-amps. The LT1014 appears to be a single supply op-amp.

Maybe I should buy both some single supply and some dual supply op-amps.
Any recommendations?

Maybe I should buy both some single supply and some dual supply op-amps.

No they are both the same thing. You can use any op amp as a single rail or a dual rail it matters not as long as the total supply voltage is within limits.

Ok, thanks.

I ordered some LT1013, LT1014 and TL074CN.
Can't wait for my order to arrive, should be fun testing some op-amp circuits :slight_smile: