sku: COM-09032
Description: This is a joystick very similar to the 'analog' joysticks on PS2 (PlayStation 2) controllers. Directional movements are simply two potentiometers - one for each axis. Pots are ~10k each. This joystick also has a select button that is actuated when the joystick is pressed down.
Note: Breakout board available below.
COM-09807
Momentary Button - Small Red Panel MountCOM-10063
5-way Tactile SwitchCOM-09136
Arcade JoystickCOM-08184
Surface Mount Navigation SwitchCOM-00097
Mini Push Button SwitchBOB-09110
Breakout Board for Thumb JoystickRTL-10433
Thumb Joystick RetailCOM-09426
Thumb Slide JoystickCOM-09808
Locking Button - Medium Red Panel MountBOB-10835
EasyPoint - N35P112 Joystick BreakoutDEV-09760
Joystick Shield KitBOK-09415
Programming InteractivityCOM-09182
Arcade Joystick - Short Handle
Comments 52 comments
Sweet!
Could we have a datasheet for this? Thanks!
Do you really need a datasheet? it’s two potentiometers and a button…
Thanks for your explanation Captain Obvious but I am more interested in the mechanical dimensions bit of the datasheet, so I can create a footprint out of it while I wait for them to be delivered, not all of us use Eagle you know…
Well, as long as I’m the captain, I figured I’d throw it into Eagle for you and get some dimensions while we wait. Assuming the center of the part is the origin, pins are at the following dimensions:
Mounting (.045" holes for mounting)
x y
-0.3 -0.26
0.3 -0.26
0.3 0.26
-0.3 0.26
Pot1 (.025" holes)
-0.4 0.1
-0.4 0.0
-0.4 -0.1
Pot2 (.025" holes)
-0.1 -0.4
0.0 -0.4
0.1 -0.4
Switch1 (.025" holes)
-0.12 0.3
0.13 0.3
0.13 0.5
-0.12 0.5
Hope that helps –
Also it’s be nice to know what range of resistances the pots go through, ‘cause I’ll be betting they don’t go to the ends of travel.
This looks like the datasheet, http://www.p3america.com/pp/802.htm.
Wow! Yep – that looks just like the one we sell. They are ever so slightly different, but same dimensionally.
I bought one of these to replace a busted one in a wireless XBOX 360 controller and it works perfectly! These are exactly the same as the ones in the 360 controller and even the original xbox and Dual-shock PS1/2/3 controllers. This is the only site that I could find that sells these. I was able to repair a $50 controller for $4! Thanks for carrying these guys!
If you’re interested in how to fix one I made an Instrucable on Instructables.com. You can see it here:
http://www.instructables.com/id/How_to_replace_a_broken_analog_joystick_on_an_XBOX/
I should mention this does not work with the PS3 six-axis, while basically identical the footprint on the six-axis is slightly smaller such that it won’t line up correctly. I have not tried a ps3 dual-shock yet.
This thumbstick is EXACTLY the same as the one out of a PS2 controller. I didnt buy this 1 but I bought the breakout board sold here on sparkfun for it and used a thumbstick I removed from an old PS2 controller. They really are exactly the same. I also made a quick video if anyone wants to see it in action: http://www.youtube.com/watch?v=gvvu—1sdhg
I bought 2 of these to fix my old xbox 360 controller. They look good and feel fine, but they have problems: The one I have installed as my left stick randomly just does berserk and keeps on sending the same signal until I wiggle it around (example: in racing games, it doesn
t matter if Im keeping a left or right turn, the car suddenly starts turning right ). The right one just needs a little, tiny, insignificant nudge in order to start sending signals all over the y axis (in NFS HP,for example, it switches between normal, centered, camera and rearview camera at 10-20 times per second.Soldering was correct and over-watched by an experienced person so that
s not the problem.<br /> I truly regret buying them... but being a cheap ass I thought Ill spend less repairing it than buying a new controller. I was proven wrong because of crappy, low quality parts.Maybe I`ll think twice before buying parts from here.
I’m having the exact same problem. I actually bought two of these for a school project and after spending forever trying to troubleshoot the problem with my ADC, I finally found out its the joysticks.
These things are BAD! I bought two and both are bad.
1. The range on these things is maxed out after only pushing the stick half way either direction. It is also not a smooth ramp, but it goes up slowly and then jumps up like 30%.
I don’t know if the people who got these earlier got a way different batch, but the two I got are absolutely terrible. I wish I knew who made them.
Sparkfun, I suggest you do some testing on this product.
I also bought one of these that is defective. One axis is fine, the other randomly drops to ground.
I was able to fix the damaged axis by popping off the pot and slightly bending part of the small metal ring-like piece. This may work with other defective joysticks but is definitely fiddly.
I too have an issue with this item. I ordered two of them and spent a lot of time trying to figure out why my input kept jumping around on the x axis for both of them but was rock solid for the y axis. Turns out it was this component, I removed them and tested them outside of the circuit and they still gave weird readings on the x axis (at center they had resistance in the mega-ohms. All the way left they gave more or less 0 ohm but sometimes would spike for no reason. All the way right and they would give more or less 10k ohm but would spike for no reason.
Sparkfun customer service quickly & politely took care of my problem. Its bound to happen from time to time when you buy cheap cheap electronics that you get a dud. I instead bought a replacement off-brand PS2 controller for just a little more than what two of these cost and they seem to work just fine.
We’ve literally sold thousands of these and only had a few problems.
If you get a bad one, just contact customerservice@sparkfun.com and we’ll take care of it. I’ve personally used a half-dozen or so of them without any problems.
Here is some simple code for the arduino
}
void loop()
Very nice component, I hope you will restock them.
Is it spring loaded “return-to-center”?
A fair amount of effort in the RC community has been taking pots from the PS2 controllers and REMOVING that capability (traditionally on a dual-stick RC, your “turn” joystick is spring loaded, but the “throttle” joystick isn’t. Or something like that…)
It’s spring loaded, but the spring can be removed without too much difficulty by popping the back off and pulling the spring. Without the spring it’s pretty lose. Not so bad that it’ll move without being touched, but if I was wearing it and I jumped, it would definitely move. There might be a simple way to add friction to the system, but for my application I didn’t need it.
Yes – spring loaded. Unit returns to center.
When will these be back in stock?
In case anyone’s interested, I built a library for the arduino for this part. It’s hosted on google code @ http://code.google.com/p/arduino-joystick/
I guess I should have read the comments beforehand, because I spent all last night writing my own library…
let me know if you have any good features or anything you’d like to add to the library. I don’t mind merging or adding :)
Well, you can take a look at it at http://isomk.sdf.org/arduino.html – it’s actually a pretty simple interface, nothing fancy by any means.
Are these actually 10kohm pots? I have a pair, and they center at 3.5 kohms and range from 200 ohms to almost 5k ohms.
An interesting form of user input. I have measured what it can do and documented it, available at: http://wp.me/pQmjR-h8
nice job!
This is a pretty cool part, although it is difficult to mount, even with the breakout board. As far as I can tell it cannot be mounted under a surface, you need another surface under it to mount to. But, nonetheless, a fantastically simple dual pot + button setup.
Wow it doesn’t pay to go to sleep. Wake up and they are back out of stock again :)
Sleeping is over-rated.
But don’t worry, we have a lot more coming.
This is true. Being at the other end of the world means we sleep at different times.
I was actually seconds away from placing an order when the site went into maintenance mode and I decided I couldn’t stay up all night refreshing the page.
Anybody have a good idea on a hole size for mounting through a case?
My first attempt at that led to some trimming of the plastic doohickey to keep it from snagging.
Look at the Eagle files for the joystick shield. It has all the dimensions we used.
It does appear that the description may be wrong. i measure the pots at about 5K, not 10K and it centers at between 3.5K and 4K depending on the axis. It appears good for simple direction indication, but you will have to work out the scale if you want some linear indication of position. I am measuring .25K min, 3.5K center, 4.8K max. Is there any kind of adjustment possible on these units? Thanks.
Actually, It might be sort of 10K – the data sheet for the part says “10K +/– 30%”
does anyone have any ideas on how to mount this to a plywood controller?
I used this in a project and it worked great, until it had to perform. These joysticks died 15minutes before a competition and left me dead in the water.
It might have been my own fault as I didn’t include a current limiting resistor. However a datasheet of some sort would have been nice to let me know how much current these can take.
So the rest of us know, how much voltage/current did you run through it?
My power source was from a LM317, so I was capped at 1.5A at 5V.
I had two configurations, the first was a 560 before and after the joystick. which if memory serves is 4.5ma. The second configuration was only a 3.3K before the joystick, which is only 1.5mA.
But from my research most joysticks are either 50mA or 5mA rating (.1W or .01W). So take that as you will.
wow, bought two of these and when the x wordked well, but the y potentiometer, when I put it to the max, I can see inside the potentiometer, a little “explosion”, some spark inside it, and after that, a smoke, and finally, the pot got burned…
Don’t know what happened, but I don’t know if this gonna happen to the other…
:(
(there’s no pins soldered together and nothing wrong in the cirtuit)
Bought 2 of these and 1 got the y burned. Tested the other here and the middle sometimes gets 330 and haves a dead point that marks 0. When I pull up the x or y, I get ~1010, but when I pull it down I get 0, and 0 at the middle too. It’m impossible to control something in this conditions…
:(
Just say YES to the breakout board.
If you are using this for any hobby stuff I would get the breakout board. This will not fit in a breadboard or perfboard. its a great piece, but just spring for the breakout unless you want to solder wire scraps to the leads.
I don’t have access to a PS anything controller (I’m a 360 man myself) and I can’t remember if the ‘boot’ around the bottom is flexible or not. In other words, will it give if the cutout is only as big as the shaft travel?
The PS2 controllers had insets to accomodate the height. I won’t have that option and I’m not sure I like the idea of giant hole in the top of the case to accomodate all the movement. If that ‘boot’ is flexible, it will make my life much easier.
Answered my own question. I had a look at a PS2 controller today. The whole top ‘hat’ is plastic. The top is textured which i didn’t realize until tonight. That is a nice feature.
Also, there was a link somewhere above me to a datasheet that shows the minimum hole size. I find that I am going to be challenged to fit this stick in my case but I think it will squeeze. I may have to go a little higher than the daasheet shows.
Ordering one today!
Are these supposed to be linear? or at least something close to linear?
I have one and on a 10bit scale, I get 506 in the center and it is repeatable over many spring returns. However, the scale is almost usable. I was trying to get a slow/medium/fast out of it so i was simply dividing each half by 3 with a small dead zone in the middle. I thought it was broken for the longest until I started looking at numbers again. I go from 506 to 1021 within about the first 3 degrees of movement. From there it is basically maxed to the end. Same in the other direction and the same for the other axis. I have semi faked two speeds out of it but it is very sketchy where that second one picks up since I am having to look for values between 492 and 4 for example. Anything less than for is my fast that sketchy.
Any advice?
Hi,
I wrote a convenient C# driver targeting the netduino for this and other similar analog joysticks.
You can find the details here: http://fabienroyer.wordpress.com/2011/01/09/connecting-an-analog-joystick-to-a-netduino/
Cheers,
-Fabien.
info: pressing down the joystick returns LOW for the button, not HIGH :) i needed some time to find that out…
Thanks, I was having trouble with that, but then I realized the SEL was connected to GND and not VCC on the breakout board.