For this project I am using a NUCLEO-F429ZI which interfacing with PCF8575 over I2C. I am operating the PCF8575 only as output. I have tested the PCF with NUCLEO and it works without any issues. But, the main part of this project is to further use a switching circuitry to get 24 V output on the corresponding pin of the PCF8575. For this purpose I have designed a switching circuit which switches a 24 V rail for that particular pin.
The issue is that when all three NUCLEO, PCF and this board are connected together and I try to switch any HIGH any pins I observe a drop of two volts and as a result there is not 24 V output.
Am I missing something in the circuit? What is the cause for this issue? Thanks in advance. Let me know if there is any more information that you need.
P.S. I haven't tried out those 24 V relay modules yet. I am hesitant because they are bulky and I think they won't be ideal for the final PCB.
html.alldatasheet.com/html-pdf/43370/SHARP/PC817A/125/1/… (Isolator) alldatasheet.com/datasheet-pdf/pdf/68336/IRF/IRF9640.html (MOSFET) nxp.com/docs/en/data-sheet/PCF8574_PCF8574A.pdf (PCF8575)