Introduction:
Lots of robot projects need joystick. This module provides an affordable solution. 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.
Specification:
- Supply Voltage: 3.3V to 5V
- Interface: Analog x2, Digital x1
- Size: 40*28mm
- Weight: 12g
Connection Diagram:
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); }
Project List
- Arduino Mega 2560 Project 1: Piranha LED Module
- Arduino Mega 2560 Project 2:Digital white LED module
- Arduino Mega 2560 Project 3: Passive Buzzer module
- Arduino Mega 2560 Project 4: Hall Magnetic Sensor
- Arduino Mega 2560 Project 5: LM35 Linear Temperature Sensor
- Arduino Mega 2560 Project 6: DS18B20 Temperature Sensor
- Arduino Mega 2560 Project 7: Digital Tilt Sensor
- Arduino Mega 2560 Project 8: Photocell sensor
- Arduino Mega 2560 Project 9: Digital Push Button
- Arduino Mega 2560 Project 10: Capacitive Touch Sensor
- Arduino Mega 2560 Project 11: DHT11 Temperature and Humidity Sensor
- Arduino Mega 2560 Project 12: Analog Sound Sensor
- Arduino Mega 2560 Project 13: Flame Sensor
- Arduino Mega 2560 Project 14: DS3231 Clock Module
- Arduino Mega 2560 Project 15: Analog Gas Sensor
- Arduino Mega 2560 Project 16: Analog Alcohol Sensor
- Arduino Mega 2560 Project 17: Water Sensor
- Arduino Mega 2560 Project 18: Soil Humidity Sensor
- Arduino Mega 2560 Project 19: Infrared Obstacle Avoidance Sensor
- Arduino Mega 2560 Project 20: PIR Motion Sensor
- Arduino Mega 2560 Project 21: Joystick Module
- Arduino Mega 2560 Project 22: Photo interrupter module
- Arduino Mega 2560 Project 23: 5V Relay Module
- Arduino Mega Project 24: ADXL345 Three Axis Acceleration Module
- Arduino Mega 2560 Project 25: Rotary Encoder module
- Arduino Mega 2560 Project 26: Analog Rotation Sensor
- Arduino Mega 2560 Project 27: HC-SR04 Ultrasonic Sensor
- Arduino Mega 2560 Project 28: Pulse Rate Monitor
- Arduino Mega 2560 Project 29: Reed Switch Module
- Arduino Mega 2560 Project 30: TEMT6000 ambient light sensor