Ks0008 keyestudio Joystick Module

From Keyestudio Wiki
Jump to: navigation, search


Introduction

Lots of robot projects need joystick. And it is an affordable joystick module for you. By simply connecting to two analog inputs, the robot is at your commands with X, Y control. It also has a switch that is connected to a digital pin. This joystick module can be easily connected to Arduino by IO Shield. This module is for Arduino(V5) with cables supplied. 
thumb

Specification

  • Supply Voltage: 3.3V to 5V
  • Interface: Analog x2, Digital x1
  • Size: 40*28mm
  • Weight: 12g

Connection Diagram


thumb

Sample Code

int JoyStick_X = 0; //x
int JoyStick_Y = 1; //y
int JoyStick_Z = 3; //key
  void setup() 
{
  pinMode(JoyStick_Z, INPUT); 
  Serial.begin(9600); // 9600 bps
}
void loop() 
{
  int x,y,z;
  x=analogRead(JoyStick_X);
  y=analogRead(JoyStick_Y);
  z=digitalRead(JoyStick_Z);
  Serial.print(x ,DEC);
  Serial.print(",");
  Serial.print(y ,DEC);
  Serial.print(",");
  Serial.println(z ,DEC);
  delay(100);
}


Resources

Video

http://www.keyestudio.com/wp/2016/05/ks0008-keyestudio-joystick-module-for-arduino/

PDF

https://drive.google.com/open?id=1oR5jLKofJauAvd2HP8c6vxx4AYScGB4i

Get One Now

Official Website

http://www.keyestudio.com/keyestudio-joystick-module-for-arduino.html

Amazon Store

https://www.amazon.com/Next-Keyestudio-Joystick-Module-Arduino/dp/B01CXOI6O2/ref=sr_1_3?ie=UTF8&qid=1479113057&sr=8-3&keywords=keyestudio+Joystick+Module+for+Arduino