Many sensors such as platinum RTDs, strain gauges and gas cells need a stable excitation current to give a repeatable reading. This page shows how an op amp plus one transistor builds a precise current source.
The trick is to force a fixed voltage across a sense resistor R_sense, so the load current I equals V_ref divided by R_sense and stays put while the load varies from zero to tens of ohms. Wire the op amp non-inverting input to a reference like a 2.5V TL431, the inverting input through R_sense to the transistor emitter, and let the feedback pin the inverting node at 2.5V. With a tight, low-drift R_sense the current is set by resistors alone.
For a 1 milliamp source pick R_sense of 2.5k ohm at 0.1 percent and V_ref of 2.5V. Choose a low-offset op amp such as the OP07 and a small-signal transistor like the 2N3904. The supply must clear the maximum load drop plus the sense drop plus a volt of headroom: with a 100 ohm sensor the rail needs at least 4.5V, so 12V is comfortable. For a 4 to 20mA transmitter a second op amp maps the sense voltage onto the current loop; check the sense resistor power at 20mA.
On the bench use three-wire sensing so the lead resistance is not in the current path: the op amp only sees the drop across R_sense. Two-wire is simple but lead resistance adds error; over 10 meters use thicker wire or go three-wire. Keep the sensor ground separate from the analogue ground to avoid ground-loop contamination, and measure the current into a short before connecting the sensor so you do not overdrive and burn the transistor.
| Item | Example | Note |
|---|---|---|
| Target current | 1mA | set by V_ref / R_sense |
| Sense resistor | 2.5k ohm 0.1% | low drift metal film |
| Reference | 2.5V TL431 | or op amp reference |
| Supply headroom | ≥ load+2.5V+1V | 12V used here |
| Transistor | 2N3904 small-signal | enough drive current |
| Wiring | three-wire preferred | removes lead error |
| Error source | R_sense accuracy/drift | dominates offset |
| Protection | series limiter | against inrush |
The op amp current source suits platinum RTDs, strain-gauge bridges and gas or electrochemical sensors that need stable excitation. Use a low-drift sense resistor and clean reference, separate drive and sense wires, leave supply headroom, and measure into a short before loading.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Sensor excitation and analogue design per GB/T 4728; safety IEC 60204-1. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.