XY Joystick Module
ControlAnalog thumbstick that moves on two axes (X and Y) and also works as a button when pressed down; for controlling robot cars, pan-tilt cameras, games and menus. Inside are two 10 kΩ potentiometers: VRx and VRy go to analog pins; with the stick centred they read ~512, moving towards 0 or 1023 as it is pushed to the ends. Turn on INPUT_PULLUP for the SW pin. On 3.3V boards such as the ESP32, power the module from 3.3V.
Specifications
- Axes
- 2 (X and Y), analog
- Potentiometers
- 2 x 10 kΩ
- Button
- Press-down switch (SW)
- Operating voltage
- 3.3 - 5V
- Pins
- GND, +5V, VRx, VRy, SW
- Reading
- ~512 centred, 0 - 1023 at the ends (Uno)
- Button wiring
- INPUT_PULLUP (LOW = pressed)
Shop prices
- Robotzade24.00 ₺
- Elektrovadi24.05 ₺
- Robocombo27.00 ₺
- Robo9029.76 ₺
- F1 Depo30.00 ₺
- Hatfon31.85 ₺
- HobiDevre34.56 ₺
- Direnc.net38.35 ₺
- SAMM Market38.70 ₺
- Robotsepeti45.72 ₺
- Robolink Market49.50 ₺
- Modül Elektronik37.28 ₺
- RobitshopPrice at the shop
Projects with this part
Joystick Snake GameIntermediate45 minThe classic snake game on an 8x8 LED screen: you steer the snake with the joystick, and when it eats the blinking food it grows one cell longer, gets a little faster and the buzzer gives a short beep. The screen is small, so the snake leaves one edge and comes back in at the other; when it runs into its own body the game is over, three falling notes play, your score shows on the screen in digits, and pressing the joystick's button starts a new game. It teaches reading an analog joystick and turning it into a direction, keeping a game in arrays (the snake's cells), setting the game's speed with millis(), and driving a MAX7219 LED matrix with a few wires. Install "LedControl" from the Library Manager.Open project
Joystick Pan-Tilt Camera HeadBeginner40 minA camera head built from two servos: the bottom servo turns the camera left and right, the top one up and down, and you steer it with a joystick. The further you push the stick the faster the head turns, and it stays where it is when you let go; pressing the joystick sends both servos slowly back to the middle. The servos run from a separate 3 x AA battery holder, with the grounds joined. It teaches turning an analog stick into a speed with a dead zone, moving servos smoothly and within limits with millis(), and powering more than one servo from a supply of their own. The Servo library comes with the Arduino IDE; there is nothing to install.Open project
In the app, tick off every wire, match the parts to your inventory and pick up where you left off.
Build it step by step in the app