The joystick
The joystick consists of 2 potentiometers which are read through two ADCs. On the Arduino we use the built-in 10 bit ADCs giving us values of 0..1024 (0x0 .. 0x3ff). One potentiometer gives us left-right values, the other one forward-backward values.
When the joystick is in its rest position it will give us approximately the value 512 of both axis.
--
Uli Raich - 2018-10-01
Comments