I implemented the USB HID/FFB spec on a STM32 for brushed motor. Everything in that was a pain and f
I implemented the USB HID/FFB spec on a STM32 for brushed motor. Everything in that was a pain and full of bugs, there are really few examples and the specs date from 1999. The brushed motors are also quite coggy for larger motor, they tend to be really hard to backdrive when forcing in the opposite direction, I sheared off a few couplers while testing. Using 3 phases motor with anti-cogging like the VPForce is the correct way to do it.
The very-dry specs:
https://www.usb.org/sites/default/files/pid1_01_0.pdf
The USB descriptor for a normal joystick is like 100 bytes. For FFB, its like 1500 bytes, and if you got 1 byte wrong, Windows will just throw an error without telling you where it could not interpret the descriptor
The very-dry specs:
https://www.usb.org/sites/default/files/pid1_01_0.pdf
The USB descriptor for a normal joystick is like 100 bytes. For FFB, its like 1500 bytes, and if you got 1 byte wrong, Windows will just throw an error without telling you where it could not interpret the descriptor





