Thank you, Luni, for the detailed answer I already have a phototransistor (PC817-Sharp) to change the "voltage" rise, but additionally, I ordered an inverter (74HC04). Of course, it would be much better to do it in the microcontroller code.
I will check if it works because the DM805 requires a minimum 5μs delay between the pulse and direction signals. However, I think it should not be a problem if the first few steps are lost (I use microsteps, with 3200 pulses per revolution) - but I need to check.
I will check if it works because the DM805 requires a minimum 5μs delay between the pulse and direction signals. However, I think it should not be a problem if the first few steps are lost (I use microsteps, with 3200 pulses per revolution) - but I need to check.