JoyStick Sensor module
Introduction:
Lots of robot projects need joystick. This module provides a affordable solution to that. Simply connect 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 connect to Arduino by IO Expansion Shield For Arduino with supplied cables.
Specification
* Supply Voltage: 3.3V to 5V
* Interface: Analog x2,Digital x1
* PH2.0 Interface
* Size:35x39mm
* Weight:15g
PinOut
Tutorial
Connection Diagram
Sample Code
// #
// # Editor : letheascetic from PCBWay and FizzyStudio
// # Date : 02.08.2017
// # Product name: Joystick Module
// # Product ID : SENZ003
// # Version : 1.0
// # Description:
// # Modify the Sample code for the Joystick Module
// # Connection:
// # X-Axis -> Analog pin 0
// # Y-Axis -> Analog pin 1
// # Z-Axis -> Digital pin 3
// #
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);
}
JoyStick Sensor module
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(1)
-
An33862rew Li Oct 18,2017
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Ji55249mie Ro
-
W36092BSE51_OTH001_ LED灯模块 ### DESCRIPTION### TECHNICAL DETAILS / COMPONENTS### LEARN / TOPIC / BUILD INSTRUCTIONS
-
PCBWAY Ruler design This is PCBWay Ruler design.If you need a series of small holes in copper or gold, you must note !!!
-
Digital Vibration Sensor module IntroductionWhat's the simplest way to check vibration with Arduino? Just vibrate this sensor, A...
-
Rotation Sensor Module IntroductionSENZ001 Rotation Sensor is arduino compatible multi-ring rotation analog sensor. It is b...
-
JoyStick Sensor module Introduction:Lots of robot projects need joystick. This module provides a affordable solution to tha...
-
Logitech G25/G27 pedals/shifter adapter The idea behind this project is to create open and inexpensive USB HID adapter for Logitech G25 / G2...
-
-
-
-
Enter the title_ of your projectEnter the title_ of your projectEnter the title_ of your projectEnter the title_ of your projectEnter the title_
12 0 0 -
-
-