This article is a continuation of the articles, QL Data Interface 1 and 2 from past issues, about the Prairie Digital Data Acquisition System for the QL. There was no article last month because there were more timely articles to print, but the article the month before last told something about the actual circuit itself and how it worked. This month, the article will give actual results of tests on the board. Complete tests were not run because the time was not available, but the results on the A to D converter I did get were very good indeed.
I have been testing some complicated MSDOS A to D converters with fancy software at work, and I have had nothing but trouble. First dip switches were incorrectly set, then disk drives would not read disks, and so on the list of difficulties goes. Thus it was with some apprehension that I soldered two leads to the board, inserted it carefully into my QL, and connected a battery as a voltage source.
It was a great feeling to watch a string of 1.52’s climb up the nonitor screen on the first try. The A to D card was working and giving reasonable answers for the C cell I was using as the voltage source. Of course, the board (and the software) is not complicated, but still it was a great relief to have everything work correctly on the first try.
Now were the readings I got accurate? Remember I had said last month that the voltage reference circuit on the board cut a few corners. The 1.52 V was reasonable for an old but unused battery. To check, I used a Fluke digital voltmeter. Its reading on the same battery was 1.518 V. Not bad. In fact, it could not be better. I tried another voltage. The Fluke read 3.94 V. The string of numbers on the screen of the QL from the A to D converter board read 3.96, 3.92 and every number in between. Notice that the average (and most frequent reading) was 3.94 V. Here I was using a cheap AC power supply to provide the test signal and the A to D converter was reading (about 3 times each second) the instantenious voltage, ripple and all. A final test with a 5.00 volt signal produced a reading of 4.98 V. Notice that there is less than a 1/2 % difference in this case, very good indeed for an inexpensive board.
An A to D board makes a very good project because it combines a learning experience with hardware and software. I have said nothing about the software as yet. It need not be unusually complicated, but it is not your routine BASIC program. Tune in next month for details of the software used to make these tests.