S17ALPS RKJXV 2-axis + push

Joystick

A thumbstick: left-right, up-down and a click.

Loading 3D Drag to orbit · scroll to zoom · double-click to reset

Try it

Move the stick, push to click

X=2048 Y=2048 SW=1X=4095 Y=2100 SW=1X=1900 Y=0 SW=1X=2048 Y=2048 SW=0 click

Two-axis thumbstick: X and Y rest at ~VCC/2, SW goes LOW when you push the stick down.

/*
  BuiltByTyler Sensor Kit - S17 JOYSTICK (ALPS RKJXV 2-axis + push)
  Board: ESP32-WROOM-32 DevKit V1 (30-pin), Arduino-ESP32 core 3.x, "ESP32 Dev Module"

  Prints the stick position (X, Y: 0..4095, about 2048 at rest) and the
  push switch (SW LOW = pressed; the pull-up is on the board).

  Wiring (module pin -> ESP32 pin):
    GND  -> GND
    VCC  -> 3V3
    X    -> GPIO 34
    Y    -> GPIO 35
    SW   -> GPIO 4

  Library: none needed
  Serial Monitor: 115200 baud
*/

#define X_PIN    34
#define Y_PIN    35
#define SW_PIN   4

void setup() {
  Serial.begin(115200);
  pinMode(SW_PIN, INPUT);   // board pull-up: HIGH = released, LOW = pushed
}

void loop() {
  int x = analogRead(X_PIN);     // 0..4095
  int y = analogRead(Y_PIN);
  int sw = digitalRead(SW_PIN);
  Serial.printf("X=%4d Y=%4d SW=%d%s\n", x, y, sw, sw == LOW ? "  click" : "");
  delay(100);
}

Not for sale yet. Planned price $79, shipping included. Join the waitlist and we'll email you once when the kit is ready. Nothing else.