Look at the silkscreen on the PCB. There may be markings like XH190 V1.0, XH190 Pro, or XH190-4AXIS. This determines which driver architecture you need (often using the CH340 USB-to-serial converter or a native HID interface).
The XH190 driver is often natively supported via the cdc_acm or ch341 kernel module. However, for custom XH190 boards, you may need to compile a driver: xh190 driver
git clone https://github.com/xh190-linux/xh190-driver.git
cd xh190-driver
make
sudo make install
sudo modprobe xh190_usb
Check dmesg: dmesg | grep -i xh190. You should see the device bound to /dev/ttyXH190. Look at the silkscreen on the PCB
To get the most out of your XH190 driver, fine-tune the following parameters: Signal Type: Supports Pulse/Direction or CW/CCW (Dual Pulse)