home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / sci / electron / 21629 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  3.0 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!udel!rochester!rit!isc-newsserver!cep4478
  2. From: cep4478@ultb.isc.rit.edu (C.E. Piggott )
  3. Newsgroups: sci.electronics
  4. Subject: Re: Soundblaster for low rent data acquisition?
  5. Message-ID: <1992Dec28.142231.14735@ultb.isc.rit.edu>
  6. Date: 28 Dec 92 14:22:31 GMT
  7. References: <PHR.92Dec22195830@napa.telebit.com> <1992Dec27.183558.19750@phx.mcd.mot.com>
  8. Sender: news@ultb.isc.rit.edu (USENET News System)
  9. Organization: Rochester Institute of Technology
  10. Lines: 50
  11. Originator: cep4478@ultb
  12. Nntp-Posting-Host: ultb-gw.isc.rit.edu
  13.  
  14. >>I am interested in a cheap way to monitor some slowly changing
  15. >>voltages (read: DC) in a piece of test equipment.  8-bit resolution
  16. >>is fine.
  17. ...
  18. >>Does anyone know if a Soundblaster is a reasonable way to do this?
  19.  
  20. There's something else...I'm not 100% sure about the original Soundblaster,
  21. but a lot of the clones have an AGC on the input...you'll get a meaningless
  22. number if you try to read it statically, unless you somehow disable the
  23. AGC.  There is no software switch on my Thunderboard to do this, and there's
  24. no schematic in the manual, so I haven't tried to modify it.
  25.  
  26. Also, programming information on some of these boards is pretty sketchy.
  27. I can't figure out how to statically read my TB, either - I sort of know
  28. how to do DMA sampling, but I haven't gotten it to actually work yet.  I
  29. have the Unix driver sb.c (on internet), but would love some DOS "C" code,
  30. if anybody's got it.
  31.  
  32. >Couldn't you use a game(joystick) port?
  33.  
  34. Not likely.  The PC joystick isn't an A/D converter, it's an op-amp
  35. functioning as a comparator.  Think of it this way: if you have an
  36. R-C time delay,and you charge up the capacitor all the way, then remove
  37. the charging voltage and put the resistor across the capacitor.  You can
  38. figure out how long it will take the voltage across the resistor to drop
  39. with the time constant formula, R*C.  If C stays the same, and you
  40. put a comparator looking for, perhaps, 0.63 times the charging voltage,
  41. you can measure the "R" value with a timer and a one-bit input.
  42.  
  43. That's how a PC joystick input works...when you call the "READ JOYSTICK"
  44. routine in the BIOS, the routine charges (or discharges, I'm not sure which
  45. way it works) the cap, lets it discharge through the 'R' (the pot on the
  46. joystick), and measures how long it takes to charge/discharge to a certain
  47. voltage.  It's not very accurate, but it's certainly good enough for
  48. game playing.  Putting a voltage on it wouldn't work very well, though.
  49.  
  50. Incidentally, the fact that the computer is doing the timing with
  51. tight loops is why joysticks don't work too well in Windows.  Windows
  52. mucks up the timing.  My 486-33 doesn't like the joystick at all.  I
  53. have an AMI BIOS, I have heard rumors that other configurations support
  54. the joystick just fine.
  55.  
  56.  
  57. Chris
  58.  
  59. -- 
  60. Christopher E. Piggott, WZ2B                    cep4478@ultb.isc.rit.edu
  61. President                                       wz2b.ampr [44.69.0.1]
  62. Rochester Institute of Technology               wz2b @ WB2PSI.#WNY.NY.USA.NA
  63. Amateur Radio Club K2GXT                        CEP4478@RITVAXA.BITNET
  64.