Using STM32 to measure USB mouse movement and polling rate accurately
Hi everyone,
I’m exploring whether an STM32 board can be used as a reliable USB HID host/device tool to measure mouse movement data more accurately, especially for things like polling rate, raw movement counts, and possibly estimating DPI/CPI consistency.
My main questions are:
Is STM32 a practical choice for capturing USB mouse HID reports with enough timing accuracy for this kind of analysis?
Would this be better implemented in USB host mode, or as a USB device/proxy setup?
Are there any STM32 examples, middleware recommendations, or timing limitations I should be aware of for high-frequency mouse input analysis?
If someone has worked with HID polling intervals on STM32, what is the best way to log and validate the incoming report rate?
For context, I built a small browser-based reference tool here : https://mouse-dpi-analyzer.com/ I’m not trying to promote it, only sharing it so you can see the kind of measurement workflow I’m trying to improve with hardware support.
I’d really appreciate advice on the right STM32 family, USB stack, or architecture for this use case.
Thanks in advance.
