How does an analog stick work?

Do you have a technical question that doesn't really fit a specific console? Want some general info on electronics, hacking, making cookies, etc? Here's the place to ask! Go nuts.

Moderator: Moderators

Post Reply
khaag
Senior Member
Posts: 2261
Joined: Sat Mar 18, 2006 7:54 pm

How does an analog stick work?

Post by khaag »

I need to know how exactly an analog stick works. Also, I need to know if it would be possible to hook it up to a d-pad.
I'd like to use a PSP analog stick on say a NES controller. Do you think it would be possible?

Image
Last edited by khaag on Fri Feb 22, 2008 9:23 pm, edited 1 time in total.
Dr. KillGood
Senior Member
Posts: 2209
Joined: Sat Jan 21, 2006 1:03 am
Location: Earth

Post by Dr. KillGood »

Probably, go for it!
Image
khaag
Senior Member
Posts: 2261
Joined: Sat Mar 18, 2006 7:54 pm

Post by khaag »

Dr. KillGood wrote:Probably, go for it!
I want to, but I need to know how it works first.
bicostp
Moderator
Posts: 10491
Joined: Mon Mar 07, 2005 5:47 pm
Steam ID: bicostp
Location: Spamalot
Contact:

Re: How does an analog stick work?

Post by bicostp »

khaag wrote:I need to know how exactly an analog stick works.
they use potentiometers (variable resistors) to vary the current going to the encoder chip. The controller detects how far the stick has been moved by how much current it's receiving.
Also, I need to know if it would be possible to hook it up to a d-pad.
Yes, but it probably won't work unless you push the stick all the way in one direction. (D-pad = Digital pad, no analog at all.) If you wanted an analog-style action, you would probably have to rig something up with a timer IC to pulse the button on and off to approximate analog on apurely on/off system. (We have a couple Mad Katz steering wheels for the PSX which do that.)
I'd like to use a PSP d-pad on say a NES controller. Do you think it would be possible?
D-pad? No problem. It's all digital.
khaag
Senior Member
Posts: 2261
Joined: Sat Mar 18, 2006 7:54 pm

Post by khaag »

Oops, that was a typo... I meant to say hook a PSP analog stick up to a NES d-pad.
vskid
Senior Member
Posts: 6314
Joined: Fri Mar 25, 2005 8:25 am
Steam ID: vskid3

Post by vskid »

Over at acidmods, they use analog to digital converters so that a second analog will be seen as pressing the x, o, etc buttons. You'll need something like that. Otherwise, it'll probably only register the high values, so only two of the directions.
Image
Skyone
Moderator
Posts: 6390
Joined: Tue Nov 29, 2005 8:35 pm
Location: it is a mystery
Contact:

Re: How does an analog stick work?

Post by Skyone »

bicostp wrote:(D-pad = Digital pad, no analog at all.)
D-pad = Direction pad

Simply search for an analog to digital converter, digikey?
bacteria
Portablizer Extraordinaire
Posts: 3984
Joined: Fri Apr 20, 2007 12:14 am
Location: Hampshire, UK
Contact:

Post by bacteria »

When someone suggested I used PSP joysticks for my project I researched into their connections; decided however from the comments posted that the PSP joystick was a bad option; people don't like using them.

I did however stumble on a website which had exactly the answer to your question, with a step-by-step guide of how to achieve it:

http://www.engadget.com/2006/10/10/how- ... r-sony-psp

:D
Image
Post Reply