Main Site Documentation

Joystick Module oddity


#1

Trying to use the Joystick module, and it appears that when I move the stick in one direction, both X and Y values change dramatically, even if I only move on one axis…has anyone seen something similar? This is the first time I’m trying to use the Joystick, so I’m wondering if I’m doing something wrong.

I’m polling the position using a timer, ticking roughly every quarter of a second.


#2

Have you tried other sockets/cables?


#3

@ Gus

No, I haven’t honestly. Was trying to make sure the issue wasn’t a bug in my own code first. But I’ll give that a try, thanks.


#4

@ Gus

Thanks for the suggestion…would not have thought to check that, and it turns out to have been the cable. I mounted the joystick to my project board with too little clearance for the cable. Guess these bad boys don’t like being pinched. ???

Anyway, it’s sorted now, thanks again. :slight_smile: