I'm trying to use a Teensy 4.1 to control this stepper motor (A6 Series 400W RS485 AC Servo Motor Kit). My application is simply to move this Ball Screw a few inches in one direction and then return back to the original position about once per second. Then repeat for a few weeks. The Datasheet has multiple methods of interfacing with the motor drive. I'm planning to generate simple pulse and direction signals with arduino code on the teensy. Then I need to convert them to 24V single ended or 5V differential signals based on which input method I choose. I'm assuming the single ended open collector wouldn't work with a teensy output directly because it would see 24V through a 3k+220 ohm resistance when the pin is floating or high resulting in overvoltage of the teensy pins. The 5V differential input might work from 2 pairs of 3.3V outputs, but it may not be reliable if designed to operate at 5V. I'm just looking for some guidance on what are best practices to protect the teensy from damage and operate reliably. If I need an interface chip/circuit, what are some standard choices?