Skip to product information
1 of 1

Microscale

Joystick Module (2-axis analog + push button, 3.3/5V)

Joystick Module (2-axis analog + push button, 3.3/5V)

Regular price ₦1,500.00 NGN
Regular price Sale price ₦1,500.00 NGN
Sale Sold out
Shipping calculated at checkout.

A 2-axis analog joystick module with an integrated push button, similar to those found on game controllers. It provides X and Y analog outputs and a digital button output, suitable for robotics, gaming, and user interface control with microcontrollers.

Specifications

Axes 2 (X and Y)
Potentiometers Two 5 kΩ spring-loaded
Push button Momentary switch, active low (pressed when joystick cap depressed)
Operating voltage 3.3 V to 5 V
Interface Analog (X, Y) + digital (button), 5-pin header
Output range 0 to 1023 (10-bit ADC), center ~512
Pinout GND, VCC, VRx, VRy, SW

Pinout

Pin Function
GND Ground
VCC Power input (3.3 - 5 V)
VRx Analog X-axis output (center ~VCC/2)
VRy Analog Y-axis output
SW Push button, active low (use pull-up)

Using it

  • Connect GND and VCC to your microcontroller's ground and power (3.3 V or 5 V).
  • Wire VRx and VRy to two analog input pins to read X and Y positions.
  • Connect SW to a digital input and enable the internal pull-up resistor (or use an external pull-up), as the output floats when not pressed.
  • Use the Arduino analogRead() function; expect values around 512 at rest, and 0-1023 across the full range. For the button, use digitalRead() and detect a LOW state when pressed.
  • The X-axis is motion parallel to the header pins on the module while the Y-axis is motion perpendicular to the header pins.
  • The switch output is grounded (LOW) when the switch is pushed. When the switch is at rest, the output is floating, so a pull-up resistor is needed to pull the output high.
  • The pushbutton output can be connected to any digital input pin of an MCU.
  • The module includes a push button switch output if the cap is pressed down until an audible click is heard.

Good to know

  • Center readings may vary slightly from 512; calibrate per unit in software.
  • The button output is open by default and pulled low when pressed; don't forget the pull-up.
  • This module works with both 3.3 V and 5 V logic, making it suitable for Arduino, ESP32, and other MCUs.
  • An acrylic base is also available at the bottom of the page.
View full details