-40%
KY-023 Dual-axis XY Joystick PS2 Joystick Control Lever Sensor Module
$ 3.68
- Description
- Size Guide
Description
Package:1 PS2 Joystick Control Lever Sensor
Features:
Description: Two-axis key joystick sensor module by the use of PS2 rocker potentiometer, with (X, Y) 2-axis analog output, (Z) 1 button digital output.
With the Arduino 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 arduino 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 ARDUINO special line really plug into the expansion board.
Product performance:
1. Input voltage range: DC 3.3V to 5V
2. Output signal: the module 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.
3. Arduino controller can be programmed, the sensor expansion board plug, complete with creative remote interactive works.
4. Cross joystick is a bi-directional 10K resistor, with the rocker in different directions, the tap resistance with the change. This 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.
Tutorial:
In the introduction of how to use, we first look at how it works, which we use it very helpful, there is a function of the following diagram:
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 Arduino 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);
Contact Us
(1) We strive to provide the best service as possible, commit to resolve all problems and give fast shipping.
(2) Please contact us before giving any negative feedback. If you have any questions, please do not hesitate to contact us.
Payment
(1) All payments must be prepaid and cleared.
(2) We only accept Paypal payment. After checkout, please make through Paypal service.
Shipping
(1) Buyer is responsible for any incorrect address and undeliverable address. We reserve the right to charge the shipping fee again for returned items due to
wrong address. We take the paypal address as your shipping address.
Please make sure your shipping address is correct during check out.
(2)
Your order will be shipped within 24 hours after payment is cleared
(Sat. & Sun. excluded and holidays)
(3) We ship orders using USPS (United States Postal Service). The shipment usually takes 2-4 business days, excluding holidays, Saturday and Sunday
(4) Local pick up is not available.
(5) No International Shipping.
Warranty
(1) This product has a 30-day warranty.
(2) Warranty does not extended to any products that are buyer's negligence, abuse, misuse, improper installation or physically damaged on the buyer or user's part.
(3) Please contact us before making a replacement or refund.
(4) In case of returning, buyer must pay their own postage and shipping fees for replacement or refund. We will provide replacement or refund after product is received.