# Op Amps

Discussion in 'Electronics Homework Help' started by puck123, Sep 3, 2019.

1. ### puck123

3
0
Sep 3, 2019
Been struggling with this for a while now.

Trying to figure out Rf and Ra on a op amp circuit but unsure what equation to use, I have values for v1 v2 v3 and vout any help would be appreciated

2. ### Harald KappModeratorModerator

10,336
2,246
Nov 17, 2011
Welcome to EP.
A schematic diagram with the components, nets and values properly labeled could be of some help in understanding and answering your question. Don't you think so, too?

3
0
Sep 3, 2019
4. ### hevans1944Hop - AC8NS

4,535
2,112
Jun 21, 2012
Since this is homework, we aren't going to solve your problems for you, but here are a few tips to get you started...
First, assume the op-amp has infinite gain. This means that for a finite output Vo = 5V that Vp-Vn = 0; that there is no current flowing between the inverting (-) and non-inverting (+) op-amp inputs; and the same current flows through Rf as flows through Ra.

5. ### Harald KappModeratorModerator

10,336
2,246
Nov 17, 2011
One more tip: calculate VP from V1, V2 and V3 assuming ideal voltage sources (Ri=0 and an ideal OpAmp (input resistance = infinite equiv. to no input current as stated by Hop).

6. ### puck123

3
0
Sep 3, 2019
Thankyou, I was under the impression I could work out the gain = Vout/ Vin

7. ### hevans1944Hop - AC8NS

4,535
2,112
Jun 21, 2012
If this were the usual op-amp circuit, with non-inverting gain for a single input applied to the (+) input, then you could say that the "gain" for that input is 1 + Rf / Ra. You should derive this equation yourself to prove you know what you are doing.

However, it becomes a little more complicated when the output voltage and the input voltages are all specified but the resistor values are not. Do what @Harald Kapp said: calculate the voltage at Vp. This will be the same as the voltage at Vn. From this information you should be able to calculate resistor values for R, Rf and Ra to "make it so" to produce 5V output with the three specified input voltages. Note that the resistor values are arbitrary in their absolute values.  