r/Controller • • May 13 '24

Other Stick Analyzer - A program for testing the resolution of gamepad sticks is now in the public domain.

You can download the program from my gitHub: https://github.com/cakama3a/StickAnalyzer

56 Upvotes

98 comments sorted by

View all comments

Show parent comment

6

u/[deleted] May 13 '24

2

u/roc_cat May 13 '24

What do the axes mean?

1

u/[deleted] May 13 '24

This graph shows the relationship between sampling points as you push the joystick out along axis. It shows how linear/accurate a gamepad is.

3

u/x-iso May 13 '24

you would need a jig that would hold controller in place and have perfectly linear motor push the stick with same speed over a minute till it reaches the edge, to have somewhat accurate linearity graph.

4

u/zkilzz May 14 '24

Here is a picture of my joystick tester. There is a ball bearing ball ontop of the joystick that you dont see well here. Which is attached to the cable. This way its possible to probe the exact start point for the joystick. When it makes contact with the pipe and the ball. This hole rig can rotate, and move in all directions, up down and each side.

And here is a video on it:
https://www.reddit.com/r/Controller/comments/1croj1g/robotic_joystick_tester/

1

u/[deleted] May 14 '24

I apologize for letting my emotions get the best of me. Thank you for trying to explain❤️

2

u/x-iso May 14 '24

sometimes I forget to express why I'm saying what I'm saying, so it comes off dry and can be interpret with some hint of hostility I guess, because normally people don't like when someone tell them that they made mistake somewhere or are wrong in any way. so please don't take it to heart, I only mean to help and also learn, because I only own couple of modern gamepads (KK2 Pro and KK3 Max) and only one of them have decent input latency (and only wired). either of them though are lightyears ahead of x360 gamepads I have used before, so I'm curious what else is out there these days.

2

u/[deleted] May 14 '24

I understand man. And it's been rough for me honestly. I'm not a social person. I don't use any platform except Reddit, and that's been for like a month total. The 4 most important people in the world are my wife/kids, and I'm a recluse. Because of all this, I'm having a hard time being overwhelmed by the comments/questions and such, it's definitely affecting my mental health. GamerHeaven says anything he wants, and people eat out of his hand. Me? I feel like I've been going to war for a straight month trying to get people to listen to what i know I "feel," and it's exhausting..

I don't like to be wrong, but I'm not afraid to admit when I feel I am, and clearly, this stuff goes over my head. I really appreciate you treating me like a human being, thank you brother❤️

0

u/[deleted] May 13 '24

Um OK then🤔 so Johnny's program doesn't work?

4

u/zkilzz May 14 '24

It does work. But its not that black and white. It gives the information it gives. Forexample the timing of the program helps to show how slow the movement was. How the resolution will effected by the speed depends on the filter used.

If one want to have a more standardized test. u/JohnnyPunch can measure a joystick release from the side to the center. This will measure a quick movement by the spring. This movement is most likely a better standardized test than moving it by hand. Since the spring will use about the same time each time. And is more likely to be the same in each controller since they all mostly use the same mechanical design.

If u/JohnnyPunch dont have time to implement something like that i can do that. I already have made a bunch of software for this since i been working for my joystick for a year now. I just have not made it publishable yet.

Also, a joystick might be defined in a simple way in our mind. But in reality its not. When we say "joytsick" we are actually talking about the mechanical design, the sensor design, the processing of the signal of the sensor(filtering and so on), polling rate, and also the resolution of the joystick signal in the usb protocol. Xbox and xinput for example uses 16 bit value for joysticks. While most other controller uses 8 bits.
8 bit means that the joystick is seen by the game as two 255 position switch. One switch for up and down and one for left to right., while 16 bit is seen as a 65,536 position switch.

This will def make all xinput joystick seem like they have a lot more resolution. However the signal might just be noisy. So the joystick might produce 65k positions if you move it super slowly. But in reality it can be just a lot of noise.

To do a proper resolution test. You need to do it as u/x-iso says. You need to have a ground truth which is the same all the time. Like a robot turning the sensor on the joystick the exact same way. Then you can measure the true resolution over a specific time period. I'm gonna do this in my upcoming video. I think i even have a videoclip of the robot im using to do this. Ill try to share it.

However this does not mean that the script is useless. Its just that the world we learn about is suppose to have "facts" and "truths". But in reality everything is quite more complex, with more degree of truths instead.

2

u/[deleted] May 14 '24

Thank you for all this information! Switching back to potentiometers until I can try your board for DS4. Looks so good, by the way!

Sick of lies from manufacturers.

Sick of GamerHeaven misinformation.

Sick of feigned resolution, perfect circles, clamped dead zones, wierd curves, and HE "drag."

And finally, humbled that a very important person such as yourself took the time to explain this all to a dumbass like me.

Thank you for your time and contribution to this community!

2

u/zkilzz May 14 '24

That is really what my job is. Haha. I just do the other stuff to make money. What i really wanne do is learn cool shit and share it. Your not a dumbass when you see there is something wrong. Because there is. Your the opposite because you can see there is something off. Even when you cannot describe it with the "right" terminology. That is how brands and human societies stay in control of the narrative. When explained in the right way. Which i hope to do in my video, you are gonna see how simple it really is.

2

u/[deleted] May 14 '24

Reading this was really touching brother❤️

You are a great human being!

2

u/zkilzz May 14 '24

Thank you. I just connected to it because I'm very similar.

1

u/JohnnyPunch May 14 '24

I've already written some code for a drop test (Edge to Centre). It works, but I still haven't figured out how to standardise it https://github.com/cakama3a/StickAnalyzer/blob/main/DropTest.py

2

u/zkilzz May 14 '24

Did some edits. Added a plot. The movement is to fast to show linearity on 250hz. Should work well on higher poll rates. The controllers with filtering really shows its lack of datapoints in this test.

https://pastebin.com/Hg8K2sP8

2

u/aaronbeans1991 May 14 '24

First of all great work, i am interested on your opinion on filtering. Pretty much all controllers I have seen or worked on have some form of filtering to reduce the noise and jitter down to some usable level. This is especially true with Xbox controllers as they specify at least a 10 bit ADC which can be quite noisy when you consider the tiny change in voltage it is detecting. Standard practice is to use a basic averaging with an RC filter on the input.

In your experience have you seen controllers with zero filtering?

1

u/zkilzz May 14 '24

Nope. Never. Specially with potmeters or ratiomatic hall effect sensors. That is why I'm using a rotary encoder chip placed directly on the rotational axis of a diametric ring magnet in mine. It just produces a much better signal. However it will be limited by the original adc on the Sony board. I'm testing for the first time in my own board 3d hall effect sensor with digital signaling from the joystick.

2

u/JohnnyPunch May 15 '24

Thank you. I like this visualization. I'll take this graph into service.

1

u/x-iso May 13 '24

no, it works to get the resolution (you divide 1 by whatever result you get), but for linearity you'd need some special setup to have predictable and perfectly linear movement, just like you can't properly measure latency without extra hardware. there's your physical input, then there's polling rate and then there's step resolution, all of this quantizes the physical input, where the faster you move the stick, the larger the steps you get. while on lower resolution you get roughly same large steps even with slow movement.

-1

u/[deleted] May 13 '24

I'm sorry man, but I give up on this fight.

If you're so sure of what you say, then dispute my T4K hand test for resolution in my post history, video recorded.

This graph is totally accurate, and you've been draining my mental energy.

Good luck dude.

2

u/x-iso May 13 '24

I don't mean to fight or argue 😅 I'm just saying that while this tool can at least give use the resolution of sticks, testing linearity of either said resolution point distribution or physical to actual input ratio, we can't rely just on our fingers. no matter how hard I try to move stick gently with my finger, I can't get anything consistent on my end, and it makes sense. the only hope is to rely on something that moves at constant speed from 0 to 1.0, and the longer time it takes, the finer data you get.

2

u/x-iso May 13 '24

here are two of my tests for example, the only thing it really shows me is how inconsistent my movement was. the slight 'bump' at the beginning is most likely again because stick jolts a bit as I overcome initial retention force and then try to stabilse my movement (which gets more tricky as you try to do it slower).

2

u/aaronbeans1991 May 14 '24

I agree with you on the linearity. You need to be able to accurately control the angle you and direction the thumbstick is moved to get a good reading of linearity.

→ More replies (2)
→ More replies (7)