Lesson · Problem 14
Design a Sensor Amplifier
Set a non-inverting gain and an RC low-pass from the parts you place, and keep feedback short.
Try it
The sensor enters the positive pin. Rf and Rg set the gain. The 100 nF after 1.6 kΩ is the low-pass. The 100 nF on V+ is the supply capacitor. Ideal model, not SPICE.
The sensor is on the positive pin. Rf is 20 kΩ and Rg is 10 kΩ, so 1 + 20/10 = 3. The low-frequency window is 2.94 to 3.06. The input low-pass is 1.6 kΩ and 100 nF, about 995 Hz. The window is 800 Hz to 1200 Hz. 20 kΩ and 10 nF is 795.8 Hz and fails. The supply 100 nF is a different part, within 4.0 mm of V+. Feedback copper has to stay within 20.0 mm. This is an educational model, not SPICE.
Why this comes up
A sensor voltage is too small, and it still has edges the next stage should not see. The parts around the op-amp set both the gain and how fast the output is allowed to move. The supply capacitor is a third job.
The idea
The sensor goes to the positive pin. The divider from the output to ground sets the negative pin. For the ideal model used here, gain is 1 + Rf / Rg. Rf of 20 kΩ and Rg of 10 kΩ is a gain of 3. Swap the input onto the negative pin and this is no longer the non-inverting stage the model grades.
A series resistor and a capacitor to ground, ahead of the positive pin, are a low-pass. The model’s cutoff is 1 / (2πRC). 1.6 kΩ and 100 nF is about 995 Hz. The pass window is 800 Hz to 1200 Hz. 20 kΩ and 10 nF is 795.8 Hz and fails the low edge. A capacitor from the output back to the negative pin shelves the gain and fails the roll-off check.
The 100 nF from V+ to ground is the supply capacitor. It is not the filter. Its 3.3 V pad has to be within 4.0 mm routed of the op-amp V+ pin. Feedback copper, along the four paths the challenge names, has to stay within 20.0 mm. The output clips at 0.10 V and 3.20 V in this model. None of that is SPICE.
Gain = 1 + Rf / Rg
20 kΩ over 10 kΩ is 3. The low-frequency window is 2.94 to 3.06. A 0.2 V sensor maps to 0.588–0.612 V, and 1.0 V maps to 2.94–3.06 V. Those are the model’s points.
Why this matters on a real board
On a real board the feedback trace is an input. A long loop past a clock picks up that edge and the op-amp treats it as signal. The supply pin sees the trace inductance if the decoupler is far away, which is the same placement idea as a local capacitor on a regulator. Here the distance limits are 20.0 mm of feedback copper and 4.0 mm to the decoupler. Do not read the figure as a noise measurement.
A common mistake
Moving the filter capacitor onto the supply pins because both parts are 100 nF.
The low-pass loses its capacitor, and the supply is no longer the capacitor within 4.0 mm of V+. Same value, different nets.
Key takeaways
- Non-inverting gain is 1 + Rf / Rg. The reference pair is 20 kΩ and 10 kΩ.
- The input RC sets the cutoff. 1.6 kΩ and 100 nF is about 995 Hz in this model.
- The filter capacitor and the supply capacitor are different parts.
Question 1 of 2
The sensor is on the positive pin, Rf is 20 kΩ, and Rg is 10 kΩ. What gain does this model grade?
You are ready to place Rf, Rg, the 1.6 kΩ input resistor, and the 100 nF input capacitor, then put a separate 100 nF on V+ within 4 mm.