بحث

4pcs وحدة عصا التحكم في محور ثنائي المحور XY لـ PS2 MOWSTICK MODULE MODULE GAMENT SESSOR SENSOR CONTROLDEN

KWD 3

ماركة
Shutao
وزن
10 g
1 +

مميزات خاصة

  • Dual-axis XY joystick module input voltage range: DC 3.3V to 5V
  • The for PS2 joystick control lever sensor special two-way analog output and a digital output interface, the output value corresponding to (X, Y) biaxial offset, the type of analog; keys that the user press the Z axis, Its type is digital switch
  • Dual-axis XY joystick module controller can be programmed, the sensor expansion board plug, complete with creative remote interactive works
  • The game joystick breakout module uses 5V power supply, the original state of X, Y read voltage of 2.5V or so, when pressed with the arrow direction, the read voltage value increases with the maximum to 5V; arrows in the opposite direction to press, read the voltage decreases , The minimum is 0V
  • Cross joystick is a bi-directional 10K resistor, with the rocker in different directions, the tap resistance with the change

وصف

Two-axis key joystick sensor module by the use of for PS2 rocker potentiometer, with (X, Y) 2-axis analog output, (Z) 1 button digital output.
With the sensor expansion board can produce remote control and other interactive works.
In addition, this product in order to allow customers to more easily with the a-rd-ui-no expansion board and other standard interfaces, in the design of the X, Y, Z axis of the circuit are separate leads, the user can use 3-pin a-rd-ui-no special line really plug into the expansion board .

Tutorial:
In fact, this module is a potentiometer, x, y-dimensional data output port is read out the analog voltage.
This figure does not draw the above z-dimensional data output, z-dimensional output only 0 and 1, can be achieved by a button.
All in all, it is a combination of potentiometer and button. In the a-rd-ui-no use it, x, y dimension we received two analog ports to read their values, while the z-dimensional we are connected to the digital port, connected to the power and ground.

Test Program:
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}
Y = analogRead (JoyStick_Y); z = digitalRead (JoyStick_Z); void loop () {int x, y, z;
Serial.print (x, DEC); Serial.print ( ",");
Serial.print (y, DEC); Serial.print ( ",");
Serial.println (z, DEC);

Package include:
4 x joystick breakout module

منتجات شبيهه


{"error":"\u062e\u0637\u0623","cart_limit":"\u0644\u062f\u064a\u0643 \u0627\u0644\u0643\u062b\u064a\u0631 \u0645\u0646 \u0627\u0644\u0645\u0646\u062a\u062c\u0627\u062a \u0641\u064a \u0633\u0644\u0629 \u0627\u0644\u062a\u0633\u0648\u0642 \u0627\u0644\u062e\u0627\u0635\u0629 \u0628\u0643.","prod_limit":"\u0644\u0627 \u064a\u0645\u0643\u0646\u0643 \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0645\u0632\u064a\u062f \u0645\u0646 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u062a\u062c"}