home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / sci / electron / 20830 < prev    next >
Encoding:
Text File  |  1992-12-16  |  2.3 KB  |  53 lines

  1. Newsgroups: sci.electronics
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!uwm.edu!rpi!usenet.coe.montana.edu!news.u.washington.edu!carson.u.washington.edu!whit
  3. From: whit@carson.u.washington.edu (John Whitmore)
  4. Subject: Re: Testing solar cell performance w/computer assistance?
  5. Message-ID: <1992Dec16.062850.11638@u.washington.edu>
  6. Keywords: Solar cell
  7. Sender: news@u.washington.edu (USENET News System)
  8. Organization: University of Washington, Seattle
  9. References: <1992Dec14.223424.21680@unlv.edu> <639@thunder.LakeheadU.Ca>
  10. Date: Wed, 16 Dec 1992 06:28:50 GMT
  11. Lines: 40
  12.  
  13. In article <639@thunder.LakeheadU.Ca> dnwangus@flash.LakeheadU.Ca (Dave Angus) writes:
  14. >In article <1992Dec14.223424.21680@unlv.edu> bill@pauli.lv-physics.nevada.edu (Bill ODonnell) writes:
  15.  
  16. >>     If extreme accuracy isn't a major concern you may
  17. >>want to consider using the game port on the Apple.  The
  18. >>Apple II series and the Apple IIGS both use a 4 channel
  19. >>A/D converter to read the voltage (via a variable resistor)
  20. >>at the game port.
  21.  
  22. >Sorry; that ain't correct.  The Apple ][ game ports work almost exactly
  23. >like the IBM game ports:  they use a 558 quad timer chip to generate 
  24. >time delays proportional to RC time constants.  The C is built into
  25. >the game port, the R is provided by the joystick or paddles' 
  26. >potentiometers.  The game ports can measure resistance, but not 
  27. >voltage.
  28.  
  29.     There is a workaround for this problem; the timer requires
  30. an input current, and a resistor and two PNP transistors makes
  31. a pretty good voltage-to-current converter.
  32.  
  33.            +5V o------+----------+
  34.                     |/         |/
  35. Vinput+-----VVVVV-+-+----------+
  36.              R    | |\         |\
  37.                   +---+          |
  38.                                  +(to game port)
  39.  
  40. The transistors should be the same type, and at the same temperature
  41. (glue them together).  There is some slight temperature-dependence
  42. due to the Vbe of the transistors, but it is possible to calibrate
  43. the system for near-room-temperature conditions.  It's hard
  44. to draw in ASCII, but the emitters of the two transistors
  45. are connected to +5V (and they must be PNP).
  46.  
  47.     You want R to be roughly 220 k ohms for 0 to +5V inputs,
  48. and 400 k ohms for -5V to +5V inputs.  The +5V power
  49. is available, of course, at the joystick connector on the
  50. game port.
  51.  
  52.     John Whitmore
  53.