# Converting Joystick voltage to movement.

Page 1 of 1

## 1 Replies - 365 Views - Last Post: 13 January 2013 - 10:18 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=307020&amp;s=e70a20ad13e18e9d9d21e68543d76872&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 guitardenver

• New D.I.C Head

Reputation: 0
• Posts: 3
• Joined: 13-January 13

# Converting Joystick voltage to movement.

Posted 13 January 2013 - 03:02 AM

Hello,

I'm working on a project that controls an Xbox controller from a micro-controller. I am wondering if any of you guys (game programmers) would know if there is some standard function (mathematical function) that they use to convert the potentiometer voltage of the joystick to some velocity in the game. I'm talking about a game like Halo. Converting the voltage to how fast he runs or specifically the angular velocity the gun pointer moves, the courser moves in a circle. I'm pretty sure its some kind of exponential function or logarithmic or some higher order polynomial. I can find out by plotting a tun of points and getting a function of the plot. But I thought maybe there is already a known function for it. I hope my question is clear.

Thanks,
Matt

Is This A Good Question/Topic? 0

## Replies To: Converting Joystick voltage to movement.

### #2 modi123_1

• Suitor #2

Reputation: 14045
• Posts: 56,201
• Joined: 12-June 08

## Re: Converting Joystick voltage to movement.

Posted 13 January 2013 - 10:18 AM

Closing duplicate topic.
Was This Post Helpful? 0

Page 1 of 1

 .related ul { list-style-type: circle; font-size: 12px; font-weight: bold; } .related li { margin-bottom: 5px; background-position: left 7px !important; margin-left: -35px; } .related h2 { font-size: 18px; font-weight: bold; } .related a { color: blue; }