Driving step motors using microstep drivers with teensy 4
You really don't want to use that type of logic level converter. Fine for I2C, but not much else. Note - these do not invert and only actively pull low.
The DM542 datasheet gives you a hint on how to drive it. I'd suggest some BSS138 mosfets would be suitable. Basically 0V to the drain, port pin -&gt; 10 Ohm resistor-&gt; mosfet gate. Source to - of input to DM542.
This WILL invert the signal, but due to the circuit a LOGIC 1 on the teensy will turn on the opto. Home free.