How to Build and Understand an Analog Integrator Circuit Step-by-Step

integrator circuit diagram

For precise voltage accumulation over time, use an operational amplifier with a feedback capacitor between the output and inverting input, paired with a resistor on the input path. A 1 µF polyester capacitor alongside a 10 kΩ input resistor provides a time constant (τ) of 10 milliseconds–optimal for most slow-varying analog signals like sensor readings or low-frequency waveform reconstruction. Avoid ceramic capacitors under 10 µF due to dielectric absorption; film or electrolytic types yield cleaner integration with minimal drift.

Ground the non-inverting pin directly to the reference voltage when single-supply operation is required. A 3.3 V rail-to-rail op-amp (e.g., MCP6002 or OPA333) prevents output saturation when processing ±1.5 V signals on a 5 V supply. Add a 1 MΩ resistor in parallel with the capacitor to discharge parasitic leakage currents, stabilizing the output baseline at 0.5 mV/second drift rates for unattended operation. Omit this resistor only if reset pulses via an analog switch (CD4066) will clear accumulated charge between measurements.

Connect the input resistor node to a voltage divider when processing biased signals like temperature thermistors. Scale the divider to span 0.5 V–4.5 V for compatibility with 5 V logic while leaving 0.5 V headroom at each rail. For noise rejection, twist the sensor lead pairs and shield them with a grounded foil layer; route power traces perpendicular to analog paths to minimize induction coupling. A ferrite bead on the op-amp’s positive supply pin suppresses HF transients from switch-mode regulators.

Test the network with a 1 kHz sine wave at 2 Vpp; observe a phase shift approaching –90° and amplitude roll-off at –20 dB/decade. Adjust the capacitor value upward to 4.7 µF if the output clamps prematurely or downward to 0.47 µF for faster edge detection. Verify the DC offset rests within ±10 mV of the midpoint by injecting a 1 Hz square wave and measuring the steady-state output voltage over 30 seconds; deviations exceeding ±20 mV indicate either resistor mismatch or capacitor leakage exceeding 1 µA.

Operational Layout for Signal Accumulation

integrator circuit diagram

Select a precision op-amp with low input bias current–<1 nA–to minimize drift in long-duration runs. The TL071 or OPA2188 are proven choices.

Capacitor placement dictates time response: place Cf directly between the feedback node and the inverting input; stray capacitance from wiring or nearby traces can introduce 5–15% error at frequencies above 10 kHz.

Keep the inverting-input resistor Rin between 10 kΩ and 1 MΩ; values below 10 kΩ risk exceeding the op-amp’s output current, while values above 1 MΩ increase thermal noise. For pulse integration, 100 kΩ strikes the best noise vs bandwidth balance.

Component Recommended Range Critical Characteristic Typical Drift
Rin 10 kΩ–1 MΩ Low noise, stability 0.1 %/°C
Cf 1 nF–10 µF Low leakage, NP0/C0G <0.5 pA at 5 V
Op-amp TL071, OPA2188 Offset <25 µV, bias <1 nA 0.2 µV/°C

Add a reset switch across Cf–2N7000 MOSFET or mechanical relay–to discharge residual charge between acquisitions; without it, integration errors compound at 1–3 mV/s.

Ground layout must tie the non-inverting input and capacitor common to the same star point; parasitic ground loops inject 50/60 Hz mains interference visible as 2–5 mV ripple.

For high-frequency signals (≥100 kHz), swap Cf with a 10–100 pF NP0 capacitor; standard X7R types exhibit voltage-dependent capacitance, skewing rise times by 3–8%.

Verify linearity by driving a 1 kHz sine input; peak deviation should stay below ±2% from ideal ramp; deviations exceeding ±5% indicate excessive bias current or leakage in Cf.

Component Placement Checklist

⋅ Position Rin within 5 mm of the inverting pin to reduce stray pickup.

⋅ Route Cf leads perpendicular to signal traces, avoiding parallel runs ≥3 cm.

⋅ Isolate the input from switching supplies with a π-filter: 10 Ω resistor followed by 100 nF and 10 µF capacitors to ground.

⋅ Terminate unused board area with copper pours connected to analog ground; leave 30 mil clearance from high-impedance nodes.

Selecting the Optimal Operational Amplifier for Signal Accumulation

Prioritize amplifiers with input bias currents below 10 pA–preferably in the femtoampere range–to minimize drift in stored charge. Bipolar junction transistor (BJT) input stages, though common, introduce higher leakage than junction field-effect transistor (JFET) or metal-oxide-semiconductor (MOSFET) designs. For precision tasks, opt for devices like the OPA189 (FET input) or LTC1050 (chopper-stabilized) to suppress errors from thermal fluctuations.

  • Slew rate: Ensure the device exceeds 5 V/μs to handle rapid voltage transitions without distortion. Slower amplifiers (e.g., LM741) risk slew-induced phase shifts, corrupting cumulative outputs.
  • Offset voltage: Target sub-50 μV values to avoid baseline drift. Auto-zero amplifiers (e.g., AD8628) eliminate inherent offsets via internal calibration.
  • Noise performance: Select for voltage noise below 10 nV/√Hz at 1 kHz. Low-noise JFET inputs (e.g., OPA2188) outperform BJT counterparts in high-impedance configurations.

Examine the amplifier’s open-loop gain and phase margin. A minimum gain-bandwidth product of 1 MHz ensures stability with capacitive loads ≥1 nF. Devices like the LT1028 (60 MHz GBW) tolerate larger capacitors without oscillation. Confirm phase margin via datasheet plots–target >60° at unity gain to prevent ringing.

Thermal stability dictates long-term accuracy. Copper-clad PCBs reduce temperature gradients; pair with amplifiers featuring low thermal coefficients (e.g., OPA333 at 0.02 μV/°C). Exclude devices with high power dissipation (>5 mW) unless active cooling is viable. For battery-operated setups, prioritize micropower options (e.g., LMP7721 at 350 μA supply current).

  1. Verify input capacitance: Values >10 pF interact with feedback networks, altering time constants. Choose rail-to-rail input/output devices (e.g., MAX44250) for single-supply systems–non-rail-to-rail variants risk clipping near supply rails.
  2. Test with a 100 kΩ feedback resistor and 1 μF capacitor: Measure drift over 10 minutes. Acceptable amplifiers exhibit
  3. Consult SPICE models: Simulate step responses using vendor-provided macromodels. Discrepancies >5% between simulation and hardware merit investigation–likely thermal or layout issues.

Step-by-Step Guide to Sketching a Precise Signal Processing Schematic

Start by placing an operational amplifier at the center of your layout with its inverting and non-inverting inputs clearly labeled. Position the feedback capacitor directly between the output and the inverting input, ensuring a compact path to minimize parasitic effects. For a standard design handling signals up to 1 kHz, use a 100 nF polyester capacitor with ±5% tolerance; this value balances response time and drift errors. Connect a precision resistor–10 kΩ, 0.1%–from the input signal source to the inverting node, maintaining symmetry to reduce noise coupling.

Ground the non-inverting input through a 1 kΩ resistor to stabilize the reference voltage; this eliminates offset errors in single-supply configurations. For dual-rail setups (±15 V), tie it directly to the midpoint via a 10 kΩ trimmer for fine offset adjustment. Label all components with reference designators (e.g., R1 for the input resistor, C1 for the feedback element) and include pin numbers for the op-amp (e.g., TL072: 2=inverting, 3=non-inverting, 6=output). Use a 0.5 mm mechanical pencil for traces to ensure clarity in documentation.

Verify accuracy by cross-checking against a known transfer function: Vout = -1/(R×C) ∫Vin dt. For a 1 kHz sinusoidal input of 1 Vpp, the output should produce a -90° phase shift with an amplitude of 1.59 Vpp (R=10 kΩ, C=100 nF). Annotate test points–TP1 at the input, TP2 at the output–and specify expected waveforms in your notes to aid troubleshooting. Save the final draft as a .SVG file for vector scalability, avoiding raster formats that degrade resolution.

Calculating Capacitor and Resistor Values for Target Time Response

Select the time constant (τ) based on your system’s requirements–typical ranges span microseconds for rapid signal shaping to seconds for slow averaging. Use the formula τ = R × C, where R is resistance in ohms and C is capacitance in farads. For a τ of 10 ms, pair a 10 kΩ resistor with a 1 µF capacitor (τ = 10 × 10³ × 1 × 10⁻⁶ = 0.01 s). Adjust scales proportionally: halve τ by reducing either R or C by half, or double τ by doubling either value.

Prioritize component tolerance to maintain precision. A 5% resistor with a 10% capacitor yields a combined tolerance near ±15%. For τ = 1 s, opt for a 1 MΩ 1% resistor and a 1 µF 5% capacitor (τ = 1 × 10⁶ × 1 × 10⁻⁶ = 1 s, ±6% error). Below 10 ms, parasitic effects dominate–use low-leakage film capacitors (≤1 nF) and metal-film resistors to minimize drift. For τ > 1 s, electrolytic capacitors (≥10 µF) offer higher density but introduce polarity constraints.

  • Low-frequency filters (τ ≥ 100 ms): Combine 470 kΩ resistors with 220 nF capacitors (τ = 103.4 ms).
  • Pulse-shaping (τ ≈ 1 µs): Pair 1 kΩ resistors with 1 nF capacitors (τ = 1 µs).
  • High-impedance designs (τ ≈ 10 s): Use 10 MΩ resistors with 1 µF capacitors (τ = 10 s, leakage currents require guarding).

Account for ambient conditions. Capacitance varies with temperature–X7R ceramic capacitors drift ±15% from -55°C to +125°C, while C0G types hold ±30 ppm/°C. Resistors exhibit thermal noise: wirewound types offer <10 ppm/°C stability, critical for τ > 1 s. For extreme environments, derate components to 50% of rated voltage to prevent dielectric breakdown in capacitors or power dissipation in resistors.

Verify calculations with empirical testing. Build a prototype using the formulaic values, then measure τ via step-response: apply a 0–1 V square wave, observe the 63.2% rise (or fall) time, and adjust R or C iteratively. For τ = 50 ms, expect a 5 V/ms slope with a 10 V source, ±5% deviation. Tools like SPICE models refine predictions but cannot substitute real-world validation due to layout parasitics and solder resistance.