Hello all,
I am working on a project and I need to decide a way to setup switching on one part of the circuit that would work as output for an external machinery.
The equipment being designed works more like a PLC, but for a very specific purpose and I wanted to understand if I have a better choice than using regular electromechanical/solid-state relays.
Below is my test schematic.

I am using an STM32 based MCU (different from schematic. Used SM32F030 for keeping away the complexity.
The place where I need your attention is the "?", and the usage of darlington transistor array IC i.e. ULN2003
The DB9 connector is the output for this board and will be fed to the machine for controlling. In the machine I have seen the controller board, which basically uses Omron G5V-1 (24v) Relay, so each output of my circuitry would need to handle atmost 150mW of power at 24vdc (that would essentially be the power rating of relay coil).
So, each pin on the DB-9 (2-8) basically need to allow passage between Pin 1, thats +24vdc, to be able to send signals to the machine being operated. So when this is connected, the relay in the Machine's controller circuit is ON, as the current flows between, one of the pins from 2-8 and GND1 (Pin 9).
So, I technically speaking I need to handle an inductive load on pin 2-8. From my research and past experience, I have made use of ULN2003/ULN2803 for multiple projects, which is a good choice, when it comes to handling inductive loads like a relay or a stepper motor (under 500mA and < 50v). But, looking at what the subject/machine accepts is to have a passage between +24VDC and one of the Pins 2-8. So my questions are:
I am working on a project and I need to decide a way to setup switching on one part of the circuit that would work as output for an external machinery.
The equipment being designed works more like a PLC, but for a very specific purpose and I wanted to understand if I have a better choice than using regular electromechanical/solid-state relays.
Below is my test schematic.

I am using an STM32 based MCU (different from schematic. Used SM32F030 for keeping away the complexity.
The place where I need your attention is the "?", and the usage of darlington transistor array IC i.e. ULN2003
The DB9 connector is the output for this board and will be fed to the machine for controlling. In the machine I have seen the controller board, which basically uses Omron G5V-1 (24v) Relay, so each output of my circuitry would need to handle atmost 150mW of power at 24vdc (that would essentially be the power rating of relay coil).
So, each pin on the DB-9 (2-8) basically need to allow passage between Pin 1, thats +24vdc, to be able to send signals to the machine being operated. So when this is connected, the relay in the Machine's controller circuit is ON, as the current flows between, one of the pins from 2-8 and GND1 (Pin 9).
So, I technically speaking I need to handle an inductive load on pin 2-8. From my research and past experience, I have made use of ULN2003/ULN2803 for multiple projects, which is a good choice, when it comes to handling inductive loads like a relay or a stepper motor (under 500mA and < 50v). But, looking at what the subject/machine accepts is to have a passage between +24VDC and one of the Pins 2-8. So my questions are:
- ULN2003 is an NPN type Darlington array (common Cathode), so I guess, it wouldn't be an option for me due to its polarity (please correct me if its not the right terms). Is there a PNP type Darlington array with same spec but PNP transistor (common Anode)?
- If I use something like ULN2003 or ULN2803, I will have to ground its 24vdc supply, to the ground of my STM32, which handles 3.3vdc. Though, it may not be a big problem, but I still wanted to have a complete isolation on this switching circuit (with 24 vdc supply) and my STM32.
- Need to keep the whole footprint as small as possible.