View Single Post
  Spotlight this post!  
Unread 17-12-2006, 22:40
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 453
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
Re: USB Joystick adapter is here!

Quote:
Originally Posted by Kingofl337 View Post
Honestly making an Xbox360 controller work on the current system isn't very hard. They have 10k pots in them you just need to scale the output. GameCube and PS2 controllers also have 10k pots.
It's not quite that simple. The O/I is measuring the current through the analog inputs, not voltage. Simply soldering the 10k pots to a connector will give you limited range. Approximately %10 of the expected range(100k). Not to mention the O/I will never see analog value 127. The correct way to adjust for this is to create a voltage divider using the 5v aux as the input to the divider. You would divide the voltage down to apx. %10 of 5v (500mv).

Lets compare:

5v/100k = 50uA

.5v/10K = 50uA

As you can see from the math above, this is the only way to "trick" the O/I into seeing a 100k range of resistance. If you do not do this, the O/I will see a value of 229 at 10k. As the resistance decreases the value will increase. so your range will be 229-254.
Reply With Quote