Analog joystick for the micro controllers. Contains two 10K potentiometers connected to the handle lever for X-Y movement and when the handle is pressed in the centered position, a momentary switch “Z” is closed. The Potentiometers are wired as voltage dividers between Gnd. & Vcc.
The handle lever is spring loaded to return to center position at rest. Connections to a microcontroller are X and Y to the AD converter and the momentary Z switch to a digital pin. The Z switch has a 10K pull up resistor and is active low output. Can be used with either 3.3V or 5V supplies. Single 5 pin male header connectors