Gertboard Open Collector Drivers: ULN2803APG

Gertboard Open Collector Drivers

If you were wondering how to use the open collector drivers on the Gertboard version 1, then you have come to the right place. As shown in the diagram, the red area marked out is the open collector driver section.

The ULN2803APG is a Darlington driver IC that provides eight sink drivers. If you are new to the concept of sinking current then the Current Sinking and Sourcing in TTL Circuits article might help. Each driver sinks up to a maximum of 500 mA, which is enough to drive a high power LED, or a low power relay.

These drivers perform the Boolean NOT logic operation; hence, an input signal of 3.3 V (logic 1) at the input pin 5 produces a corresponding output signal of 0 V (logic 0) at the output pin 14. The zero volts potential therefore provides a ground for the current to sink.

Inductive loads such as relays and motors usually generate a back emf, and consequently these drivers have an internal protection diode. The supply voltage is fed through pin 10 and the IC accepts between 5 V to 30 V, however 9 V is typically used.


Open Collector Input / Output

Open Collector Input / Output

The input signal if fed through the vertical header socket J4. You can input 3.3 V signals from the Raspberry Pi directly here using jumper wires. The horizontal line of headers marked J12 are the output pins.

Jumper Configuration Circuit

Jumper Configuration Circuit

This circuit diagram shows how the header pins connect to the ULN2803APG chip. In this example, an input signal at pin RLY5 on J4 takes a signal path through the Darlington driver IC between pin 5 and pin 14, to appear at pin RLY5 on the J12 socket.

Finding Components

If you cannot afford to buy the Gertboard, then you could build this circuit on a small prototyping board. You can get the board and IC for less than two pounds on eBay. The ULN2803APG is a commonly available IC used in education and found on many online stores. Usually the search listing on Google provides the best deals at the top.


This Article Continues...

Gertboard Raspberry Pi Expansion
Gertboard Buffered I/O: SN74AC244
Gertboard Open Collector Drivers: ULN2803APG
Gertboard Motor Controller: L6203
Gertboard ATMega Chip: ATMega168A/PA, and ATMega328/P
Gertboard ADC - Analog to Digital Converter: MCP3002
Gertboard DAC - Digital to Analog Converter: MCP4802
Gertboard GPIO Pins