cancel
Showing results for 
Search instead for 
Did you mean: 

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.

RRozu.1
Associate

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!

0 REPLIES 0