Alert.png

Notice: This page contains information for the legacy Phidget21 Library.

Phidget21 is out of support. Bugfixes may be considered on a case by case basis.

Phidget21 does not support VINT Phidgets, or new USB Phidgets released after 2020. We maintain a selection of legacy devices for sale that are supported in Phidget21.

We recommend that new projects be developed against the Phidget22 Library.


Click on the 2phidget22.jpg button in the menu bar to go to the Phidget22 version of this page.

Alert.png

Open Collector Digital Output Primer

From Phidgets Legacy Support


Introduction

An Open Collector Digital Output behaves similarly to a Solid State Relay- by toggling the state of the output, you can switch a circuit on and off. This type of output does not supply power to the load like an ordinary Digital Output, it simply switches a powered circuit to ground.

How it Works

A simplified schematic showing of a Phidgets open collector digital output.
Full-Sized Image

The Digital Outputs require an external voltage source to supply power, and act as a switch to ground. The outputs can sink up to 2A at 30V, and are designed to operate with DC voltage only. This type of switching output is often referred to as a low-side switch. It is common to use the Digital Outputs with electrical devices such as motors, lamps, relays, and solenoids.

When using ground terminals, it is recommended that the ground terminal located nearest the output terminal be used. If highly inductive loads are used with the Digital Outputs, the use of a clamping diode is recommended to reduce noise.


Basic Use

Switching a circuit with an open collector digital output.
Full-Sized Image

Connect your circuit in series with the digital output, as pictured. The load could be a larger relay, a solenoid, LEDs, light bulbs, motors, etc. The power supply should not exceed 30V DC, since this is the limit for open collector digital outputs.


Switching a Relay Board

Controlling a relay board with an open collector digital output.
Full-Sized Image

Even though an open collector digital output can be used like a relay by itself, some applications might require a relay board to be switched by the open collector digital outputs. To do this, connect an open collector digital output to the control terminal of the relay board, with a 10kΩ resistor pulling the line up to +5V. This way, the relay will be constantly powered until the open collector digital output is switched on, which will then cause the control line to become grounded. Since this is the opposite of the usual operation of a relay board, you'll have to hook your load up to the normally closed terminal if you want the load to be powered when the digital output is turned on, or connect it to the normally open terminal if you want the load to turn off when the digital output is turned on.


Ground Protection

Ground terminals on the InterfaceKit share a common ground with USB ground. Because they are not internally isolated, these terminals will expose the USB ground potential of the PC to which they are connected. Be sure you are completely familiar with any circuit you intend to connect to the InterfaceKit before it is connected. If a reverse voltage or dangerously high potential is applied to the input or output terminals, damage to the Phidget or the PC may result. Limit input and output voltages to 30VDC, and always observe correct polarity.