MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Op amp integrator and differentiator circuits
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Op amp integrator and differentiator circuits

Square waves turn into triangles through integration, triangles back into squares through differentiation, and PID controllers lean on both. This page derives the formulas, picks component values and explains why a real integrator always needs a bleed resistor.

1. How it works

The integrator replaces the feedback resistor with a capacitor C: the input feeds R into the virtual ground node and C spans the inverting input to the output. The virtual open holds the charging current at Ui over R, so the output ramps at one over RC times the integral of the input. With R at 10k and C at 0.1µF the time constant is 1ms and a 1V square step ramps the output 0.1V per ms, turning the square wave into a triangle. Symbols per GB/T 4728.

2. Numbers and practice

The differentiator swaps R and C: the capacitor sits in series with the input and R does the feedback, so the output follows minus RC times the rate of change. A triangle becomes a square. But differentiation amplifies high frequencies by nature: a glitch on the input becomes a large spike and noise multiplies, with oscillation lurking. Practical differentiators add a small series resistor Rs of about 1k to the capacitor, clamping the high-frequency gain to Rf over Rs.

3. Pitfalls and fixes

A pure integrator has a fatal flaw: offset current slowly charges C and the output drifts to a rail. Real integrators parallel C with a large bleed resistor Rp of about 1M, pinning the DC gain to Rp over R at the cost of pure integration at low frequency. Traps: polyester capacitors leak and drift, so use film types; a leaky reset switch leaves staircases; a DC offset on the input drives the integrator straight to the rail. Reset by shorting C at power-up before operation.

4. Integrator and differentiator design table

ItemRecommendedNote
Integrator R10k to 100ksets slope with C
Integrator C10nF to 1µF filmlow leakage, low drift
Bleed Rp across C1Mstops drift to rail
Rs in series with C1kclamps HF gain
Time constant RCabout period/10too large dulls response
Power-up actionreset firstshort C before running

5. Notes

Integrators and differentiators fit waveform shaping, ramp drives, PID controllers and V/I conversion. Always use film capacitors, always fit the bleed resistor, always limit the differentiator at high frequency, and check output drift on a scope, better than one percent of range per minute.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Analogue computation circuits per GB/T 4728; safety IEC 60204-1. Always check the device datasheet and the product design file for ratings and derating.

7. Cautions

⚠️ Three common pitfalls:
① Integrator without a bleed resistor: offset current charges C until the output sticks on a rail
② Differentiator without HF gain clamp: glitches bloom into spikes and noise drowns the signal
③ Leaky capacitor dielectric in the integrator: drift ruins accuracy no matter the trim

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL