How to change Voltage Reference in STM32 NUCLEO-F103RB board Analog Input from 3.3V to 5V?
The STM32 ADC does not support reading voltages that are larger than the supply voltage. Either change the joystick reference voltage to match the STM32 voltage or divide the joystick voltage down with resistor divider.