Go to Post please remember that the children we are trying to positively influence do read these forums. - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 26-02-2005, 17:15
mv.aboyd mv.aboyd is offline
Registered User
#1458
 
Join Date: Jan 2005
Location: Danville
Posts: 10
mv.aboyd is an unknown quantity at this point
Re: using a ps2 controller

no you cant buy an adapter you have to do everthing yourself. so same money and dont buy it. If you really want to conver it you have to take apart the controller and desolder everthing. The analog joysticks operate at 10 ohm so the range is almost imposible to drive with, so you have to put a 37k restior or somthng like that and hook up the the varible petentiometer to the right db15 pins and program the new joystick with a range of ten somthing like this

pmw05 = pmw07 = values[p1_x % 256];
pmw06 = pmw08 = values[p1_y % 256];

int values[256] = {
/* 0 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 16 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 32 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 48 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 64 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 80 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 96 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 112 */ 0, 0, 0, 0, 20, 38, 55, 69, 83, 94,104,112,118,123,126,127,
/* 128 */ 128,132,140,152,170,192,221,255,255,255,255,255,25 5,255,255,255,
/* 144 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255,
/* 160 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255,
/* 176 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255,
/* 192 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255,
/* 208 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255,
/* 224 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255,
/* 240 */ 255,255,255,255,255,255,255,255,255,255,255,255,25 5,255,255,255
};
motA = values[p1_x % 256];
motB = values[pl_y % 256];


This is very very hard
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Speed controllers won't communicate w/robot controller steven114 Control System 12 03-02-2005 21:26
Program error after controller reset randomperson Programming 6 04-01-2005 23:31
2003 robot controller & interface LGuY Control System 3 04-04-2004 16:01
Help On Coding 2K1 Controller GregTheGreat Programming 9 05-12-2003 18:35
serious problem found - robot controller resets when jarred! KenWittlief Electrical 23 19-03-2003 13:30


All times are GMT -5. The time now is 07:16.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi