WINLINE-SKACHAT.SHOP ≡ Switches Ance Per Fiati Free Shipping Over $49 World Wines
  • Sensors & Modules

  • Dual Axis XY Joystick Module

Dual Axis XY Joystick Module

$31.5 $58.59
Smooth gradation of values – see code… I’m not sure why some folks are having issues getting a smooth sample of values across the stroke of the joystick’s axis. It is important to note these are not intended to be maxed out to an extent position anyway. You can only move about half way or a little more to the edge before it is overwhelmed. So perhaps people are just not moving slowly. Got me. But here is some code I used to test mine with. No issues. I hope this helps someone…/* micro joystick test sketch / atomkey 2019 doesn’t test for the push button feature – that’s simple ~does test for the analog read on the x and y axis I coded this for folks that have said there are only three gradations of measure they can get. This runs fine on my Arduino and generates a smooth gradation from 1024 max to 512 center and then to 0 minimum. Keep in mind the joystick isn’t intended to be moved to its extreme extents. The boundry is not at the outer edge. 4 wires from the joystick to the arduino 2 for the axis 1 for the ground and 1 for the 5v */int sensorPinX = A0; // input pin joystick x axisint sensorPinY = A1; // input pin joystick y axisint sensorValueX = 0; // variable x axisint sensorValueY = 0; // variable y axisvoid setup() { Serial.begin(9600);}void loop() { // read the x,y values from the sensor: sensorValueX = analogRead(sensorPinX); sensorValueY = analogRead(sensorPinY); Serial.print(sensorValueX); // show results Serial.print(” “); // on serial monitor as Serial.println(sensorValueY); // two columns of data delay(150); // for even smoother (stable) results you can perform a // mean sample run. That’s where you sample the signal // n times over t seconds and take the average of the reads.}
Sensors & Modules

Sensors & Modules

  • IR Infrared Obstacle Avoidance Sensor Module for Robotics & Automation
    $13.66 $20.08
  • Current Sensor Module for Arduino & Raspberry Pi | ACS712
    $34.56 $49.77
  • ADXL345 Triple Axis Digital Accelerometer Module
    $14.68 $18.06
  • 4×4 Matrix Keypad Module for Arduino & Raspberry Pi | 16-Button Input Keyboard
    $22.9 $35.27
  • 3mm LDR Sensor – Light Dependent Resistor
    $13.78 $19.57
  • GPS NEO 6M with Patch Antenna
    $11.08 $16.95
  • IR Remote Control Module for Arduino, Raspberry Pi & Microcontrollers | Infrared Receiver
    $11.38 $18.66
  • DHT11 Temperature and Humidity Sensor Module
    $13.76 $25.73
  • HC-SR04 Ultrasonic sensor for Arduino/Raspberry Pi
    $26.21 $49.01
  • HC-05 Bluetooth Module for Wireless Communication Projects
    $24.87 $35.81
  • xcluma 5A Range Single Phase AC On Board Micro Precision Current Transformer Module Current Sensor Module
    $35.56 $62.23
  • 12V Electric Solenoid Lock for Arduino, Raspberry Pi & Smart Access Control Projects
    $27.71 $44.89
  • 5V Powerbank Charging Module | Li-ion Battery Boost Converter for DIY Projects
    $31.67 $53.84
  • BMP180 Digital Barometric Pressure Sensor Module
    $24.39 $30.98
  • DS3231 RTC Timer Module for Arduino & Raspberry Pi | High-Precision Real Time Clock
    $22.83 $41.78
  • Flame Sensor Module for Fire Detection & Safety Systems
    $24.27 $46.11

© 2026 - WINLINE-SKACHAT.SHOP