home *** CD-ROM | disk | FTP | other *** search
/ World of Ham Radio 1997 / WOHR97_AmSoft_(1997-02-01).iso / misc / homectrl / amsoft.iii next >
Text File  |  1997-02-01  |  8KB  |  203 lines

  1.  
  2.         ------------------------------------------------
  3.                  Game Port Monitor  Version 2.0
  4.                 Copr. 1989  by Taegan D. Goddard
  5.         ------------------------------------------------
  6.  
  7.  
  8.  
  9. I. Introduction
  10.    ------------
  11.  
  12.      Have you ever wondered what else your computer could do?
  13. Word Processing, spreadsheets, and data bases are fine -- but
  14. wouldn't it be nice if your investment in hardware would pay for
  15. itself in other ways?  Personal computers are now being used for
  16. home and office control. Scientists use them to monitor
  17. experiments.  The Game Port Monitor allows you to hook up sensors
  18. to your machine's game port so that you can begin to experiment
  19. with environmental monitoring.
  20.  
  21.        o  Measure light intensity in a room.
  22.        o  Monitor windows and doors in your home.
  23.        o  Measure temperature.
  24.        o  Observe human movement through open spaces.
  25.  
  26. Each of these things can be accomplished with your PC!  Add a
  27. computer interface for the BSR X-10 wireless appliance and light
  28. modules, and you have the beginnings of a mini home control
  29. system!  With the PC game port and a few inexpensive electronic
  30. components, you can add real-time environment sensing to your own
  31. programs!  
  32.      Let the Game Port Monitor lead you into this exciting (and
  33. relatively un-tapped) world of computing...
  34.  
  35.  
  36. II. But What does it cost?
  37.     ----------------------
  38.  
  39.      The range of electronic components you can attach to the
  40. PC's game port are many -- from simple photocells and thermistors
  41. to more complex infrared motion detectors. Less than $5 spent at
  42. an electronics store can buy all that you need to measure light
  43. intensity and temperature. A very small price to pay to equip
  44. your computer with 2 human senses!
  45.      Likewise, the software is also very inexpensive. The Game
  46. Port Monitor, a shareware program (it's not free!), costs just
  47. $5. Please send a check for $5 to:
  48.  
  49.                        Taegan D. Goddard 
  50.                        35 Woodside Circle
  51.                        Hartford, CT 06105
  52.  
  53. to register your copy of the program. You will be sent future
  54. updates of the program and additional tips for environmental
  55. monitoring and home control. (I am also currently working on a
  56. mini home control program using the BSR X-10 controller for
  57. output and the PC game port for input.) 
  58.      Please send any comments you may have about this program -
  59. your input will help me create better updates! 
  60.  
  61.  
  62. III. Function Key Assignments - Game Port Monitor
  63.      ---------------------------------------------------
  64.  
  65.      <F1> Calls up the help screen, listing all of the following
  66.           key assignments.
  67.  
  68.      <F2> Graphs all incoming data from the transducers attached
  69.           to the analog inputs of the game port.
  70.  
  71.      <F3> Shows program status: Time monitoring started, current
  72.           time, total number of observations, and average
  73.           observations made each second.
  74.  
  75.      <F4> Begin saving incoming data to a file every 15 seconds.
  76.           All data is saved in a file named GAMEPORT.DAT. This
  77.           data can be imported into your spreadsheet or data base
  78.           program for further analysis.
  79.  
  80.      <F5> Stop saving data to disk file.
  81.  
  82.      <F6> Turn off screen display in order to prevent monitor
  83.           burn problems. Often you will want to leave your
  84.           computer on for a long period of time to monitor
  85.           certain inputs. This option can be used to prevent
  86.           damage to your monitor (or to stop prying eyes!)
  87.  
  88.      <F7> Clear lower portion of screen. Shows only the actual
  89.           data boxes for analog and digital inputs, turning off
  90.           any other information screen at the bottom of the
  91.           display.
  92.  
  93.      <F8> Refresh Screen Display. Left over from earlier versions
  94.           of the program where certain interrupts caused problems
  95.           with the screen display. The bugs have been fixed in
  96.           this version of the program, but someone may still want
  97.           to use it!
  98.  
  99.      <F9> Exit to the DOS prompt. Allows user to rename data
  100.           file, or perform any other needed task outside the
  101.           program, like using your word processor or spreadsheet.
  102.           
  103.     <F10> Exit Game Port Monitor. Ends monitoring session.
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110. IV. Pin Locations on the PC game port
  111.     ---------------------------------
  112.  
  113.      The following chart shows all pin assignments on the PC game
  114. port:
  115.  
  116.  
  117.                   PIN LOCATIONS - PC GAME PORT
  118. ----------------------------------------------------------------
  119.    Pin #                     Pin Function
  120. ----------------------------------------------------------------
  121.      1                        +5 volts
  122.      2                        DIGITAL #1         
  123.      3                        ANALOG #1
  124.      4                        GND
  125.      6                        ANALOG #2
  126.      7                        DIGITAL #2         
  127.      8                        +5 volts
  128.      9                        +5 volts
  129.      10                       DIGITAL #3         
  130.      11                       ANALOG #3
  131.      12                       GND
  132.      13                       ANALOG #4
  133.      14                       DIGITAL #4         
  134.      15                       +5 volts
  135. ----------------------------------------------------------------
  136.  
  137. NOTE:  It is always safest to turn off your computer when        
  138.        making connections to the game port.
  139.  
  140.  
  141. V. How do I hook up sensors to my PC's game port?
  142.    ----------------------------------------------
  143.      
  144.      The joystick is a typical device you would attach to the
  145. PC's game port. It has two variable resistors attached to the
  146. analog inputs, each corresponding to the X or Y axis. The buttons
  147. on the joystick are digital inputs. Each can only be ON or OFF.
  148. If you have a joystick, use the Game Port Monitor to find out
  149. what your joystick actually does...
  150.  
  151. ANALOG INPUTS:
  152.      A photocell (light sensor) or thermistor (temperature
  153. sensor) has two leads coming from it. Each essentially acts as a
  154. variable resistor - the resistance of the device changes as the
  155. temperature or light changes. Attach one lead to +5 volts and the
  156. other to an analog input pin on the game port. That's all there
  157. is to it...
  158.      The Game Port Monitor will now show a reading from    0-255
  159. corresponding to the resistance of the device. If you are using a
  160. thermistor, you can calibrate these readings to an actual
  161. temperature reading. Submerge the thermistor in a pan of boiling
  162. water. The reading Game Port Monitor gives you corresponds to 100
  163. degrees centigrade. Do the same with a pan of ice cold water, and
  164. you have the reading for 0 degrees centigrade. Most thermistors
  165. give linear readings over this temperature range, so you can
  166. figure out all points on the line, and thus the temperature for
  167. any reading the program gives you.
  168.  
  169. DIGITAL INPUTS:
  170.      Any kind of switch, such as a relay contact on a motion
  171. sensor, can be used with the digital inputs. Connect one lead to
  172. the digital input pin on your PC's game port and the other to a
  173. Ground (0 volts). 
  174.      The Game Port Monitor gives you a reading telling the ON/OFF
  175. status of the switch. With a magnetic type burglar alarm switch
  176. you can sense whether a door or window is open or closed.
  177.  
  178.      Once you have found out how to give your computer sensing
  179. capabilities, you can write programs exploiting this new found
  180. ability of your computer. Register your copy of the Game Port
  181. Monitor and you'll be part of a forum concerned with these types
  182. of experiments and home control.  The Game Port Monitor will
  183. simplify your learning process and instantly show you what your
  184. sensors are doing.
  185.      Look for PC-ROWER.ARC on your local BBS. This program lets
  186. you computerize your rowing machine! Many more programs of this
  187. type will follow.
  188.  
  189.  
  190. VI. Etc.
  191.     ---
  192.  
  193.      I make no warrantee or guarantees for the use of this
  194. software or the hook-up of devices to your computer. Attaching
  195. simple electronic components such as light and temperature
  196. sensors is a relatively easy operation to complete, and poses
  197. very little risk to your equipment, BUT if you are in doubt of
  198. your skills then please get assistance or have someone else do
  199. the connections for you.
  200.      Thank you in advance for your support of the shareware
  201. concept!
  202.  
  203.