home *** CD-ROM | disk | FTP | other *** search
/ Der Mediaplex Sampler - Die 6 von Plex / 6_v_plex.zip / 6_v_plex / DISK3 / DFUE_100 / MEGATXT.ZIP / JOYSTICK.TXT < prev    next >
Internet Message Format  |  1994-02-07  |  6KB

  1. From nhowland@centurion.ksu.ksu.edu Tue Mar  2 09:10 EST 1993
  2. Received: from centurion.ksu.ksu.edu by starbase.spd.louisville.edu with SMTP
  3.     (1.37.187.4/16.2) id AA29371; Tue, 2 Mar 93 09:10:51 -0500
  4. Return-Path: <nhowland@centurion.ksu.ksu.edu>
  5. Received: by centurion.ksu.ksu.edu (4.1/1.34)
  6.     id AA13675; Tue, 2 Mar 93 08:10:28 CST
  7. Date: Tue, 2 Mar 93 08:10:28 CST
  8. From: nhowland@centurion.ksu.ksu.edu (Neal Patrick Howland)
  9. Message-Id: <9303021410.AA13675@centurion.ksu.ksu.edu>
  10. To: sysrick@starbase.spd.louisville.edu
  11. Subject: Genesis joystick pinouts
  12. Status: RO
  13.  
  14. Yes folks!  It is the much requested Gensis joystick pinout information!!!
  15. <much applause>
  16.  
  17. First some background info:  The chip inside the controller is a 74HC157.  This
  18. is a high-speed cmos quad 2-line to 1-line multiplexer.  Basically how this
  19. works is there are two inputs ( A and B ) for every output ( Y ).  There are
  20. four groups like this.  There is one select signal for the whole chip.  When
  21. the select signal is low, the output ( Y ) is the same as input A.  When the
  22. select signal is high, the output Y is the same as input B.  The pinout for
  23. the chip is as follows:
  24.  
  25.     Pin 1 - Select    Pin 16 - Vcc (+5V)
  26.     Pin 2 - 1A    Pin 15 - G (? must be low)
  27.     Pin 3 - 1B    Pin 14 - 4A
  28.     Pin 4 - 1Y    Pin 13 - 4B
  29.     Pin 5 - 2A    Pin 12 - 4Y
  30.     Pin 6 - 2B    Pin 11 - 3A
  31.     Pin 7 - 2Y    Pin 10 - 3B
  32.     Pin 8 - Gnd    Pin 9  - 3Y
  33.  
  34.  
  35. All the controls are done with switches.  Up is a switch, Down is a switch, 
  36. etc. Now, I will be refering to the output of these switches later on.  What 
  37. I mean is that the output is usually high, that is when the switch isn't pressed.  
  38.  
  39. When the button is pushed, the output goes low.  This is accomplished by   
  40. connecting the output to +5V through a 10k resistor.  The button is then
  41. attached between the output and ground.  It looks like this:
  42.  
  43.      +5V -----/\/\/------+--------- Output
  44.                10k       |
  45.                          |
  46.                 /        |
  47.    Ground -----/  -------+
  48.               button
  49.               (normally open)
  50.  
  51. For all of those who could actually decipher the above schematic, congratulations!
  52.  
  53.  
  54. I will now run down what lines from the plug are connected to what.
  55. The line numbers are determined as follows, looking straight at the plug on
  56. the front of the Genesis the numbers are:
  57.  
  58.     1 2 3 4 5
  59.      6 7 8 9
  60.  
  61.   (For those of you who buy a joystick cable from radio shack the pin #'s to
  62.    wire colors are as follows: 1-black 2-brown 3-red 4-orange 5-get cup from bag
  63. sorry about that, lets start again  1-white 2-blue 3-green 4-brown 5-yellow
  64. 6-orange 7-red 8-black 9-gray,  )
  65.  
  66. anyway, line connections:
  67.  
  68. Line 1 - Up output
  69. Line 2 - Down output    These are the only two direct connections
  70. Line 3 - Pin 4 of the chip    output 1Y
  71. Line 4 - Pin 7 of the chip    ouput 2Y
  72. Line 5 - This line carries in +5V.  It is connected to the +5V bus line.
  73. Line 6 - Pin 9 of the chip    output 3Y
  74. line 7 - Pin 1 of the chip  this carries in a select signal from the Genesis.
  75.                              This is a signal which varies rapidly and controls
  76.                              which input goes through the ouput
  77. Line 8 - Ground  This is connected to the Ground bus line.
  78. Line 9 - Pin 12 of the chip   output 4Y
  79.  
  80.  
  81. Now for the chips pin connections:
  82.  
  83. Pin 1 - Line 7 (select)
  84. Pin 2 - Ground (1A)    don't ask me why they do this.  Maybe future expansion
  85. Pin 3 - Left   (1B)
  86. Pin 4 - Line 3 (1Y)
  87. Pin 5 - Ground (2A)    again, possibly future expansion
  88. Pin 6 - Right (2B)
  89. Pin 7 - Line 4 (2Y)
  90. Pin 8 - Ground  (GND)
  91. Pin 9 - Line 6 (3Y)
  92. Pin 10 - Button B  (3B)
  93. Pin 11 - Button A  (3A)
  94. Pin 12 - Line 9  (4Y)
  95. Pin 13 - Button C  (4B)
  96. Pin 14 - Start  (4A)
  97. Pin 15 - Ground  (G)   This must be connected to ground
  98. Pin 16 - +5V  (Vcc)   Power source for the chip 
  99.  
  100. Anyway thats all the info needed to build your own joystick.
  101.  
  102. Now as an added bonus, additional indormation!
  103.  
  104. A simple source for a joystick cable is the Radio Shack joystick extension 
  105. cable. It is around $5 and is 10 ft. long.  Just snip off the connector that
  106. won't plug into the Genesis, strip the wires back, and use the color pinout 
  107. list I gave above.
  108.  
  109. I went to my local arcade game repair company today and purchased the supplies
  110. I needed.  They were much cheaper than I expected.  Things you would need to
  111. buy from them would be:
  112.  
  113.     an 8-way joystick     this ran me $15
  114.         3 buttons             $2.50 apeice
  115.  
  116. I only bought three buttons because I am going to use a Radio Shack push button
  117. switch for my sart button.  You can purchase 4 arcade game buttons if you wish.
  118.  
  119.  
  120. Interesting ideas for extras on the joystick:
  121.  
  122. 1.  Autofire can be acheived with a simple 555 timer circuit.  
  123.     For anyone wanting a challenge it should be possible to build a
  124.     digital autofire using a divide-by-n counter with the select signal
  125.     as clock input.
  126.  
  127. 2.  Slow down mode is just autofire for the start button.
  128.  
  129.  
  130. For anyone looking for an easy way out, buy a cheap joystick or pad with the
  131. features you want, tear into the pad and steal the circuit board and the cable.
  132. The complicated part will be attaching wires between the new joystick and     
  133. buttons and the correct spot on the circuit board.  This method may even be
  134. cheaper than buying electronics parts and building from scratch depending on
  135. how expensive the control pad that you buy is.
  136.  
  137. Anyway, that should be enough to at least get you guys started.  Let the net
  138. know how these homebuilt joysticks are performing.  I hope to have mine working
  139. within a couple weeks.
  140.  
  141. Neal Howland
  142. nhowland@matt.ksu.ksu.edu
  143.  
  144.  
  145.