home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / ibm / pc / hardware / 34684 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  5.3 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!torn!thunder!flash!dnwangus
  2. From: dnwangus@flash.LakeheadU.Ca (Dave Angus)
  3. Newsgroups: comp.sys.ibm.pc.hardware
  4. Subject: Re: atari joystick -> ibm gameport?
  5. Message-ID: <693@thunder.LakeheadU.Ca>
  6. Date: 4 Jan 1993 10:56:37 GMT
  7. References: <1993Jan3.181902.2440@gmuvax2.gmu.edu>
  8. Sender: news@thunder.LakeheadU.Ca
  9. Organization: Lakehead University, Thunder Bay, Ont., Canada
  10. Lines: 125
  11.  
  12. > esaffle@gmuvax2.gmu.edu (Ed Saffle) writes:
  13. >
  14. >  After having completely cleaned up my storage closet I found an old
  15. >joystick that I used with the atari 2600 and the Commodore 64/128
  16. >when I was younger.  The stick is in REALLY good shape, and I don't have
  17. >one for my 386.  Now the quesiton is, can I build an adapter that will
  18. >make this possible?  Being realistic about all this, it should be possible,
  19. >but I have no idea how to do it, and I *have* heard rumors that such a thing
  20. >exists.  Anyone know how?
  21. >
  22. >Ed
  23.  
  24.  
  25. It can be done.  However, it is easiest to modify the joystick itself,
  26. rather than building an external adaptor.  Basically, all you have to
  27. do is fix the joystick so that in the three possible positions the
  28. stick generates three different resistances.  Fortunately one of
  29. these resistances is zero ohms, but to generate a higher resistance
  30. than the center position requires switching in additional resistance.
  31. This can be done by using a small 5 volt relay.
  32.  
  33. The October 1988 issue of the Computer Shopper had an article on how
  34. to do this on page 79.  I modified one of the "deluxe" microswitch
  35. joysticks from Radio Shark using this article as a guideline; it
  36. works very nicely.  For many games the switch type joystick is 
  37. much easier to control.  Back when I used an Apple II clone I
  38. modified another pistolgrip type stick for it.  The Apple joystick
  39. port is wired slightly differently than the PC port, so that no
  40. relay was necessary.
  41.  
  42. I'm not much good at drawing schematics in ASCII, but here's the
  43. schematic (more or less) from the Computer Shopper article.
  44. The article was written by George Toft.  Any errors or mistakes
  45. are mine.
  46.  
  47. 9 pin DB connector wiring:
  48.  
  49. pin 1     +5 volts
  50. pin 2     Button 0
  51. pin 3     Input 1
  52. pin 4     Ground
  53. pin 6     Input 0
  54. pin 7     Button 1
  55.  
  56. I think Input 0 is left/right, but be prepared to swap wires if it isn't.
  57.  
  58. Parts List:
  59.  
  60. 1 x 15 pin DB connector.
  61.  
  62. 1 x Hood for the connector.
  63.  
  64. 4 x 1/4 watt resistors, 47k or 100k or something in between.
  65.     As long as they are all the same value.  47k may be better 
  66.     for fast computers without special game cards.
  67.  
  68. 2 x Radio Shack 275-240 miniature relays, 5 volt coil, SPDT or 
  69.     equivalent.
  70.  
  71.  
  72. Glue the relays to the phenolic circuit board somewhere where
  73. they won't interfere with anything.
  74.  
  75. You'll need to cut some traces on the circuit board to isolate
  76. the switches.  This is not a step-by-step how-to guide.  The
  77. Comp Shopper article is; it has pretty clear pictures of what
  78. to cut on an Atari stick.  If you're using a different stick,
  79. like the deluxe microswitch ones, then the article won't help
  80. you much.
  81.  
  82. Anyway, the fire button switches are wired between the ground
  83. (pin 4) and pins 2 and 7 respectively.   I think the IBM PC
  84. Technical reference manual has a clear diagram of the PC joystick
  85. if you want to confirm how it all works.
  86.  
  87. In the following diagram, contacts are represented as --||--
  88. for normally open, and as ---|/|--- for normally closed.
  89. This applies to both the switch contacts and the relay contacts.
  90.  
  91. Resistors are represented by  ---\/\/---
  92.  
  93. Components are labelled for the horizontal axis.  Values for
  94. the vertical axis are in square brackets [].
  95.  
  96.  
  97. pin 1  (+5 volts) ---------------------------------------
  98.              |        |                         |
  99.              |        |                         |
  100.              |        \                        ---  Right switch
  101.              |        /                        ---  [Down]
  102.     Left switch     ---       \                         |
  103.     [Up]            ---       /                         |
  104.                      |        |                         |
  105.              |        |--------               (   ) Relay Coil
  106.              |        |       |                 |   for left/right
  107.              |        \       |                 |   [up/down]
  108.              |        /      ---                |
  109.              |        \       /    N/C relay    | 
  110.              |        /      ---   contact      |
  111.              |        |       |                 |
  112.              |        |       |                 |
  113. pin 6  (Input 0) ----------------------                 |
  114. [pin 3 (Input 1)]                                       |
  115.                             |
  116.                             |
  117. pin 4 (ground)  ----------------------------------------
  118.  
  119.  
  120. You can reuse the original cord with its strain relief; it has 
  121. enough conductors.  I used wirewrap wire for the internal wiring
  122. from the relays to the pcboard.  Double check everything; it is
  123. really easy to get confused with six different switches and
  124. two relays.  Use a program like MSD to test the joystick.  With 
  125. a bit of luck the resting position of the stick will be dead
  126. center, and you'll get full left/right and up/down action.
  127. If you don't get the right positions, try different resistor
  128. values or swap in trimpots.
  129.  
  130.  
  131. If anyone with way too much money is reading this, you may
  132. be interested in knowing that the ultimate analog joystick
  133. is made by Measurement Systems, Inc.  (203) 838-5561
  134. Expect to spend around $2500.
  135. --
  136. Dave Angus                                   "Kundalini wants his hand back"
  137.