As an Amazon Associate we earn from qualifying purchases.
The ULN2003 is a chip that lets a small logic signal switch a much larger load. It contains seven Darlington transistor pairs in one 16-pin package, so a microcontroller pin that can only supply a few milliamps can control relays, small motors, solenoids, lamps and LEDs. This article covers what the chip does, its key specs, the pinout, and how to wire it.
ULN2003 key specifications
- 500-mA-rated collector current (single output)
- High-voltage outputs: 50 V
- Output clamp diodes
- CMOS & TTL compatible
- 7 drivers
Each of the seven channels is an open-collector Darlington pair. The 500 mA rating applies to one output, and the 50 V rating is the maximum voltage the outputs can withstand when off. Always check the datasheet from your chip’s manufacturer for exact limits, because values such as saturation voltage and total package power differ slightly between makers.
What is a Darlington array?
A Darlington pair is two bipolar transistors connected so that the first one drives the base of the second. The result behaves like a single transistor with very high current gain. A tiny input current is enough to switch a large output current.
The ULN2003 puts seven of these pairs on one die, each with its own input and output. The chip also includes input resistors and output clamp diodes, so you need few or no extra parts for many jobs.
How the ULN2003 works
The outputs are open collector, which means each one can only sink current to ground. It cannot supply current. When the input is high, the output transistor turns on and pulls the output pin toward ground. When the input is low, the output is off.
You therefore connect one side of the load to the positive supply, and the other side to the ULN2003 output. Switching the input on completes the circuit through the chip to ground. The load supply can be a different voltage from your logic supply, as long as it stays within the output rating and the grounds are connected together.
Input compatibility
The standard ULN2003 is designed for 5 V TTL and CMOS logic. Each input has a series resistor that limits the current drawn from the driving pin. Related parts in the same family are tuned for other logic levels, such as the ULN2002 and ULN2004, so make sure you pick the one that matches your signal voltage.
With 3.3 V logic, some loads work fine, but the chip may not turn on fully at higher currents. If you are using a 3.3 V board, check the input voltage requirements in the datasheet for your load current, or test the circuit before relying on it.
Clamp diodes
Coils such as relays, solenoids and motor windings produce a voltage spike when they are switched off. The ULN2003 has a clamp diode on each output, connected to a shared common pin (COM). Connect COM to the positive supply of the inductive load, and the spike is routed safely back to the supply instead of damaging the chip. If you only drive resistive loads like LEDs, you can leave it unconnected.
ULN2003 pinout
The 16-pin package is easy to wire because inputs and outputs sit on opposite sides and mirror each other.
- Pins 1 to 7: inputs 1B to 7B
- Pin 8: ground (GND)
- Pin 9: COM, the common cathode of the clamp diodes
- Pins 10 to 16: outputs 7C to 1C
So input 1 (pin 1) controls output 1 (pin 16), input 2 controls pin 15, and so on down to input 7 on pin 7 controlling pin 10. The chip is sold in through-hole DIP and in small surface-mount packages such as SOIC and TSSOP.
Common uses
- Stepper motors: Small unipolar steppers, such as the common 5 V 28BYJ-48, are often driven from a ULN2003 board. Four channels drive the four coils.
- Relays: A relay coil needs more current than most microcontroller pins can give. The built-in diodes handle the switch-off spike.
- Solenoids and small DC motors: Fine for on/off control within the current limit.
- LEDs and lamps: Useful for LED strips or displays that need more current than a logic pin can supply.
- Level shifting: A low-voltage logic signal can switch a load on a higher voltage rail, up to the 50 V limit.
Basic wiring example
- Connect pin 8 to ground, and join that ground to your microcontroller ground and the load supply ground.
- Connect a microcontroller output to an input pin, for example pin 1.
- Connect the load between the positive supply and the matching output, for example pin 16.
- If the load is a coil, connect pin 9 (COM) to the positive supply of that load.
- Set the input high to turn the load on, and low to turn it off.
Limits to keep in mind
- Voltage drop: A Darlington output does not pull fully to ground. It leaves a drop of around a volt or so at higher currents, which wastes power as heat and leaves less voltage for the load. This matters on low-voltage supplies.
- Heat: Running several channels near their maximum at once can exceed what the package can dissipate. Real loads should stay well below the rating when many outputs are on.
- Sink only: It cannot source current, and it is not suited to driving a load connected to ground.
- Not for fast switching: It is fine for relays and motors, but not for high-frequency PWM at large loads.
- More current: Some designers connect several outputs in parallel to share the load. Check the datasheet first, and leave a safety margin.
If you need lower voltage drop or higher current, a MOSFET driver or a dedicated motor driver may suit the job better. If you need more channels, the ULN2803 offers eight in a similar design.
FAQ
How many outputs does the ULN2003 have?
It has seven independent outputs, each driven by its own input. They are all in one 16-pin package.
How much current can a ULN2003 output handle?
Each output is rated for 500 mA of collector current. The total across all channels is limited by the package’s power dissipation, so do not assume all seven can run at 500 mA together.
Do I need a flyback diode with the ULN2003?
Not an external one for most uses. The chip has clamp diodes on every output. Connect the COM pin to the positive supply of the inductive load so they work.
Can I use the ULN2003 with a 3.3 V microcontroller?
Sometimes, at light loads. The standard part is intended for 5 V logic, so test your circuit or check the datasheet’s input voltage figures for the current you need. A logic-level MOSFET may be a safer choice for heavier loads.
