Define new pin in marlin

Something like this to obtain 12V logic.

No, that would require too much current. You need something more like an optocoupler. Here is what I used:

NOYITO 4-Channel Optocoupler Photoelectric Isolator Module Level Voltage Converter Module PLC Signal Converter Module PNP NPN to NPN (5V to 12V) Amazon.com

If I recall, it inverts the logic, so high from your 5v results in low on the 12v output from the opto, so you might have to change your firmware to suit. But it does a great job at convert the logic level with minimal current draw.

Please make sure to read, test, and plan carefully but I know this will get the job done, it did for me anyway.

1 Like

It’s also 5V to 12V