FreeJoy-Team / FreeJoy

STM32F103 USB HID game device controller with flexible configuration
GNU General Public License v3.0
747 stars 140 forks source link

Joystick calibration #67

Open blukk opened 3 years ago

blukk commented 3 years ago

One other question, I added a few potentiometers directly to the blue pill, and a bit of jitter and noise are shown as expected. However when going to the windows calibration wizard the axis will calibrate correctly but the blue calibration bar per Axis is flickering, raw values jump in large values. It is impossible to see the axis moving on the blue bars contrary to for example what I have seen with an Arduino board. is there a way to filter the, I guess noise, as much in the software so the calibration toolbars under the windows calibration tool will shop up stable? I tried Deadband and filter as scaling but that doesn't work. Thank you for your support ;)

Originally posted by @blukk in https://github.com/FreeJoy-Team/FreeJoy/issues/62#issuecomment-717670997

vostrenkov commented 3 years ago

Use calibration in configurator utility instead of windows calibration tool. Noise and flickering may be caused by your hardware design. Try to keep your wires as short as possible, use shielding on long wires and place analog signal wires far from digital signal wires and other noise sources. Built-in filtering and deadzone should help (also try dynamic deadzone, it detects axis movement and fix output value when axis is held)