Quantity : 5
High-concerned chemical : none
Package : SOP
is_d : Yes
Supply Voltage : 3.3V TO 5V
Application : Suitable for control of joysticks for cars/aircraft
Type : Relay
Brand Name : DIY NOW
Origin : Mainland China
Condition : New
Product features:
Joystick, long life, stable performance
Small product, easy to carry
Easy to operate
Widely used
Use high-quality materials, quality guaranteed
Product description:
Before introducing how to use it, let's take a look at its working principle, which is very helpful for our use of it. Here is a functional diagram: In fact, this module is a potentiometer, and the data output of the x and y dimensions is the voltage value read out by the analog port. The z-dimensional data output is not drawn on this figure. The z-dimensional only outputs 0 and 1, which can be achieved by a key. In short, it is a combination of a potentiometer and a key. It is used in .. We connect the x and y dimensions to two analog ports to read their values, and the z dimension is connected to the digital port, connected to the power supply and ground. The dual-axis button joystick sensor module is made of PS2 joystick potentiometer, with (X, Y) 2-axis analog output and (Z) 1-way button digital output. With the . sensor expansion board, you can make interactive works such as remote controls. In addition, in order to make it easier for customers to cooperate with standard interfaces such as expansion boards, this product is designed to lead out the circuits of the X, Y, and Z axes in a single DU. Users can use a 3-pin dedicated line to plug into the expansion board for use.
Product parameters
Product name: Joystick module (dual-axis button joystick)
Product size: 34.0mm * 26.0mm* 32.0mm (length x width x height)
Color: Black
Product weight: 11.0g (including packaging)
Packaging: Single module anti-static bag packaging
Material: FR4+electronic components
1. Input voltage range: DC 3.3V to 5V
2. Output signal: The module has two analog outputs and one digital output interface. The output values correspond to the (X, Y) dual-axis offsets, and the type is analog; the button indicates whether the user presses on the Z axis, and the type is digital switch.
3. You can program the controller and plug in the sensor expansion board to complete creative remote control interactive works.
4. The cross joystick is a bidirectional 10K resistor. The resistance value of the tap changes with the direction of the joystick. This module uses 5V power supply. In the initial state, the X and Y read voltages are about 2.5V. When pressing in the direction of the arrow, the read voltage value increases and reaches a maximum of 5V; when pressing in the opposite direction of the arrow, the read voltage value decreases and the minimum is 0V.
Test procedure:
int JoyStick_X = 0; //x
int JoyStick_Y = 1; //y
int JoyStick_Z = 3; //key
void setup() { pinMode(JoyStick_X, INPUT);
pinMode(JoyStick_Y, INPUT);
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);
Shipping list 1*Joystick module
label:yes