I'm trying to control a 3-axis stepper motor motion system using a 3-axis Hall-effect sensor joystick (the APEM HF Series joystick, to be specific).
My problem is that whenever I move the joystick in the x-direction, I pick up a signal like I have moved the joystick in the y-direction even though I have not. And when I move the joystick in the y-direction, I pick up a signal like I have moved the joystick in the x-direction even though I have not. Motion in the z-direction, which is achieved by twisting the top half of the joystick handle, fortunately does not interfere with either the x- or y-axes, and vice versa.
You can see this in the image I have attached, where the blue line shows x-joystick displacement and green shows y-joystick displacement. I created this graph by pushing the joystick +x, -x, +y, -y, +x, -x, +y, -y. You can see those minor peaks under each of the major peaks, which is the problem I'm dealing with:
For some context, I have the joystick hooked up to an Arduino Uno (5 V, ground, A0, A1, A2). The joystick has two outputs for buttons and a secondary output for each axis, but I am not using those outputs.
Is anyone familiar with this problem?