5-pin two-axis button PS game rocker control sensor rocker potentiometer module electronic building block KY-023

$0.19


  • 2 or more $0.19
- +
This product has a minimum quantity of 2

 

Ardui-no two-axis key rocker PS2 game joystick  control Lever JoyStick electronic building blocks

product parameters:

  product Name: rocker module (two-axis key rocker)

  product size:34.0 mm * 26.0mm* 32.0mm(

   color: Black     

product weight: 11.0g (including packaging)

   packaging: single module electrostatic bag packaging

material: FR4 electronic element

product Introduction:

the two-axis button rocker sensor module is made of PS2 rocker potentiometer, with (X,Y)2-axis analog output and (Z)1-way button digital output. With the Ardui-no sensor expansion board can produce remote control and other interactive works. In addition, in order to make it easier for customers to cooperate with standard interfaces such as ardui-no expansion boards, the circuits of X,Y and Z axes are all led out separately in design. Users can use 3-pin ARDUI-NO dedicated lines to really plug into the expansion board for use.

Product performance:

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 (X,Y) two-axis offset respectively, and its type is analog. The key indicates whether the user presses on the Z axis, and its type is digital switching value.

3. Through the Ardui-no controller programming, sensor expansion board plug, complete with creative remote control interactive works.

4. The cross rocker is a two-way 10K resistor. As the direction of the rocker is different, the resistance of the tap changes. This module uses 5V power supply. In the original state, the X and Y readout voltages are about 2.5V. When pressed in the direction of the arrow, the readout voltage value increases to a maximum of 5V. When pressed in the opposite direction of the arrow, the readout voltage value decreases to a least of 0V.

Using the tutorial:

before introducing how to use it, let's take a look at its working principle, which is very helpful for us to use it. Here is a functional diagram: in fact, this module is a potentiometer, and the data output of x and y dimensions is the voltage value read by the analog port. The data output of z dimension is not shown in this figure. z dimension only outputs 0 and 1, which can be realized by pressing a button. All in all, it is a combination of potentiometers and keys. It is used under Ardui-no. In the x and y dimensions, we receive two analog ports to read their values, while in the z dimension we receive a digital port to connect power and ground.

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);





Product Info
Applicable productsrocker potentiometer module
ApplicationPS game joystick control sensor
Brandother
Dimensions34*26.7mm
Power consumption0.1
Protection level0

Write a review

Note: HTML is not translated!
Bad Good

Tags: pin, twoaxis, button, PS, game, rocker, control, sensor, potentiometer, module, electronic, building, block, KY