You are reading a single comment by @Gustav and its replies. Click here to read the full conversation.
  • First, can you check the voltage with a multimeter? Just measure the voltage between gnd and the pin you are reading as you move the joystick? Just to be sure it's not a faulty potentiometer / wiring.

  • The second pin says "5v", but if you use it with a 3.3v micro, like the MDBT42, you should connect the "5V" pin to 3.3V!
    I have something like yours, in center position it is about half of the input voltage (but not exactly, and not the same on X any Y axis...). As you move the joystick, the voltage should go between 0 and 3.3V. Mine goes to 0 and full voltage waaay before reaching the actual endpoints...


Avatar for Gustav @Gustav started