Use a Joystick on the Raspberry Pi (with MCP3008) | tecno4 | Scoop.it

For some applications, such as games, a joystick can be useful or be even necessary. Since these usually work purely analogously, the signal has to be converted, which we do with the MCP3008 chip. Connecting and reading a joystick is shown in this tutorial. 

These analogue joysticks have two axes, which allow a certain voltage to pass through two potentiometers (adjustable resistance). So that the position can also be read out digitally on the Raspberry, the MCP3008 is needed.