Features
- Item Weight: 4.8 ounces
- Package Dimensions: 6.6 x 5.8 x 2 inches
- Item model number: 13
- Wireless Remote: No
Description
100% Brand New with high-quality, ABS plastic material, reusable.DO port for digital output, AO port for analog output. Size:37x25x32mm Weight: 15 g Connector: +5Vcc - GND - VRx - VRy - SW Material: ABS plastic Game joystick module suits for Arduino PS2 , connects to two analog inputs, the robot...
User reviews
I'm not sure why some folks are having issues getting a smooth sample of values across the stroke of the joystick's axis. It is important to note these are not intended to be maxed out to extent position anyway. You can only move about half way or a little more to the edge before it is overwhelmed. So perhaps people are just not moving slowly. Got me. But here is some code I used to test mine with. No issues. I hope this helps someone.../* micro joystick test sketch / atomkey 2019 doesn't test for the push button feature - that's simple ~does test for the analog read on the x and y axis I coded this for folks that have said there are only three gradations of measure they can get. This runs fine on my Arduino and generates a smooth gradation from 1024 max to 512 center and then to 0 minimum. Keep in mind the joystick isn't intended to be moved to its extreme extents. The boundry is not at the outer edge. 4 wires from the joystick to the arduino 2 for the axis 1 for the ground and 1 for the +5v */int sensorPinX = A0; // input pin joystick x axisint sensorPinY = A1; // input pin joystick y axisint sensorValueX = 0; // variable x axisint sensorValueY = 0; // variable y axisvoid setup() { Serial.begin(9600);}void loop() { // read the x,y values from the sensor: sensorValueX = analogRead(sensorPinX); sensorValueY = analogRead(sensorPinY); Serial.print(sensorValueX); // show results Serial.print(" "); // on serial monitor as Serial.println(sensorValueY); // two columns of data delay(150); // for even smoother (stable) results you can perform a // mean sample run. That's where you sample the signal // n times over t seconds and take the average of the reads.}
The quality of these sticks are horrid. They pots in them are not only garbage, they are not even balanced. The axis may bottom out to 0v at 30% to one side, and top out at 2% to the other. Do not buy these if you have any need at all for even a poor gradation. The button works as expected, and the tension of the stick is fine, but unless your application could be satisfied by a dpad, keep shopping or you will be disappointed. If you are building any kind of custom controller, turn around and run now. Also they say they are 5v, but the signal is even more all over the place at 5v and center is a fantasy, they really shouldn't be using more than 3.3. (Center at 5v is around 3.75v)
For $1.20 each, these aren't bad. They support analog X and Y, and have a built-in switch, perfect for making your own homebrew controllers with an analog input. A couple of the other reviews are saying they're not analog, and I can see why one would think that. They hit max value about halfway through the physical actuation range, and the recentering bump in the middle means if you sweep from maximum to minimum there's a small "bump" on the meter, but they do actually have an analog range in the middle of that. I just kind of wish it was larger.I might experiment with modifying the x/y potentiometers to expand the range/sensitivity.