Hello, I'm creating a logic level translator to communicate between our PC an an external pneumatic system. The pneumatic system operates of 24V logic, and I'm using a 5V uController.
The circuit on the left is the current model I have working, and I recently discovered from the person who has the system that there is an LED that the digital line controls (thanks remote work for not letting me see this myself haha). I'm not able to take apart the system due to it's design, and I can only assume the LED is wired in series with the digital input(Digital input is represented by the output node).
My friend is telling me that this doesn't matter and the systems fine, but I'm under the impression that would create a voltage divider in the left circuit, and therefore we would not obtain proper logic levels.
I considered switching to low side switching to avoid this issue as shown in the right circuit, but it according to the simulation that causes issues as well and I'm not achieving 24V output. Could anyone point me in the right direction as to why this doesn't work or what I'm doing incorrectly here?
Thank you very much in advance, I really appreciate any help
Please see the two attached screenshots, the first is of the left circuits values, and the second is of the right circuits values. Please note that the FETs and Diodes are not the actual models used in the final circuit.
Link:
https://imgur.com/a/BOMVnvP