Electronics Basics
Open Collector
3min
numerous outputs are so called ‘open collector’ outputs understanding how to use those is important to avoid damage to the controller an open collector output means it switches the connected wire to gnd this enables the user to switch devices that do not need the same voltage rating as the controller in the image below such an output is shown this output can directly be used, for example, to switch a relay if a logic signal is needed a pull up resistor is required please note, an open collector output can not be measured with eg a multimeter, to test an output connect a 10k resistor between the output and +5v or 24v, now you should be able to measure this output switching connecting an open collector output directly to a positive voltage eg 24v will cause a short circuit damaging the board the drawing below shows how an open collector output connector can be used to create different output signal levels by using a pull up resistor the value of this resistor can vary depending on the load of the output typical values are 4 7k or 10k with open collector output, it is very simple to use a relay in order to switch bigger loads connecting a relay is shown in the drawing below in the above example, a 5v and 24v relay are used, and both will switch however please consider that a 5v relay will need more current to switch this can limit the total number of used relays because of the maximum total current that can be switched in case a relay is used, a fly back diode must be connected as shown in the figure above this is necessary to limit spikes that occur when switching a relay a typical diode that is used is e g 1n4007 note that the diode is polarized and should be connected the right way or damage could occur to the output of the controller below is an image showing the connection of a diode