Skip to main content
Visitor II
March 20, 2022
Question

Hey guys, I want to controll motors via joystick. Unfortunately, when I connect joystick to my STM8S103F3 analogue pins it reads 800 in the middle position instead of 512.

  • March 20, 2022
  • 0 replies
  • 663 views

As the result, the right side has very short run (it reaches 1023 in one sixth of travel). The same for Y axis, the same with another joystick. Both joysticks work properly with arduino - middle 520 (or so). Is there any (obvious) reason; how can I remedy this?

Thanks!

SOLVED:

I connected +5V pin of the joystick to +3.3V pin of the MCU - works properly now!

    This topic has been closed for replies.