[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Count-o-meter
It should be fairly easy on a IIGS (or any other Apple II with a clock card).
The trick will be how the detector is set up. If I recall right MANY years
ago I used an IR emitter detector pair that used a phototransistor for the
detector. A phototransistor is nothing more than a switch that opens and
closes when light strikes it. I hooked this up to one of the game port inputs
and watched the resistance. When it was high the detector was either in light
or darkness (I can't recall which off hand). Soo all ya gots to do is write a
little program that watches the game port and when an event occurs
(light-to-dark or vice versa) record the time off of the computer's clock.
Store the info in an ASCII text file and you can load it into a spread sheet
for analysis.
-John