Add thumb control to a robot, menu or game project. This KY-023 joystick provides two analogue position signals and a push-button switch through a fitted five-pin header. It operates from 3.3V to 5V DC.
Specifications
Datasheets
What's in the box
Fitted thumb cap and five-pin header.
Great for
Wiring & getting started
- Match the voltage
Connect GND and the supply pin marked +5V. Use 5V with a 5V controller, or 3.3V with a 3.3V ADC so the axis signals stay within the controller input range.
- Read the controls
Connect VRx and VRy to analogue inputs. Connect SW to a digital input with a pull-up enabled. On an Arduino UNO R3, use A0, A1 and D2 with INPUT_PULLUP.
- Check and calibrate
Move each axis and check that its reading changes. Press the cap to pull SW low. Measure the centre reading at rest and add a small software dead zone to prevent unwanted movement.
