The only problem I can see in your configuration is the reverse voltage across the LED.
ULN's output are open collectors so when the output O1
is not driven it'll be floating. Since there's going to be only a little leakage current, the voltage drop across the LED's cathode to anode will be approximately the difference of the supply voltages i.e. 19V.
No details about the LED are given but I'm assuming it's a single-chip, single-colour LED. Most of them today have a reverse breakdown voltage rating of 5V. If that's the case for your LED then it could be something to consider (1).
There are few things you can try:
- If there are some unused outputs of the ULN then you can use one of them for the LED. Just short the respective inputs so you can use them as a single unput, and leave COM unconnected.
- You can use the same output for both the relay and the LED but with an extra Zener dropper if you worry about the LED resistor dissipation:
simulate this circuit – Schematic created using CircuitLab
- The coil's high DC resistance makes me think about the possibility of using the LED and the relay coil in series. With a voltage drop of 3V (presumably) across the LED, the relay should still be energised (pickup voltage is 75% in the datasheet), and the current will be about 7 mA. If this is enough for the LED to give good illumination then why not consider?
(1) Years ago I did some experiments on Zener diodes and LEDs. In my experiments, the 3528-case red LEDs from different brands generally broke down at >20V. The white and blue (they are the same thing) ones generally survived 30V. But this shouldn't lead a conclusion like "Oh, 19V should be fine, then.". I'd never ever consider keeping the operational conditions close to the abs max ratings.