Jump to content
ivop

PS2 style analog stick

Recommended Posts

Recently I acquired a couple of these PS2 style analog sticks:

 

post-20947-0-78468200-1411559330_thumb.jpg

 

I thought it'd be fun to wire them up as a digital stick for the Atari. Here's what I came up with:

 

post-20947-0-49047700-1411559479_thumb.png

 

post-20947-0-16379700-1411559432_thumb.png

 

Thought this might be of interest to some of you :) They can be bought dirt cheap from http://www.banggood.com/PS2-Game-Joystick-Module-For-Arduino-p-76465.html

 

Currently I'm busy getting the stick to actually work as an analog stick (pin 5 and 9 for left/right and up/down). Paddle controllers have a way higher resistance, so wiring it up directly as a pot gives way too little range (2 - 4 - 6) and basically keeps it digital. I tried an optocoupler which increases the sensitivity somewhat but is extremely non-linear. Perhaps a LED/photoresistor combo will work better (and it's cheaper :)). Anyway, this could result in a 5-button analog stick, switchable to a 1-button digital stick ;)

 

  • Like 2

Share this post


Link to post
Share on other sites

Perhaps you could add a capacitor to slow down charging. More charge for pokey to dump, but hopefully will be ok!

 

Or perhaps do something like the touch tablet, It appears like it has a delay circuit and drives the pot input high after a delay.

Edited by foft

Share this post


Link to post
Share on other sites

Thanks! I totally forgot that pokey discharges after every "scan". I thought adding a capacitor would mean pokey would measure the speed at which the stick was moved and then have the measured value go down again, but it's not.

 

Anyway, adding about 1 uF non-polarized between the wiper and the end of the pot that has 5V connected to it and connect the wiper to one of pokey's analog pins increases the range to 1-27-60 (left/mid/right). 27 is still fairly "in the middle". Increasing the capacitance more does not help much further. It mostly increases the upper limit and the non-linearity going right.

Share this post


Link to post
Share on other sites

I bought the same stick and broke it out! it is not a digital stick! Atari consumes the resistance values and corrects them to Atari digital figures. I have already broke this stick out.  All joystick values are analogue??

Share this post


Link to post
Share on other sites
Posted (edited)

Not sure what your question is, but it's indeed not a digital stick. It's analog. With the 10K resistors, it emulates a digital stick for up/down/left/right.

 

I also (not published) connected it to the POT inputs, i.e. the analog inputs that meassure current by charging a capacitor each scan cycle. With a proper external capacitor, you have a range of about 1-60 on both pots (up/down and left/right).

Edited by ivop

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...