May June 1980 - Commodore Computers
May June 1980 - Commodore Computers
May June 1980 - Commodore Computers
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
MAY/JUNE. I 1960. 198O. ISSUE 4.<br />
COMPUTE.<br />
27<br />
COMPUTERS<br />
Boring, Boring,<br />
Boring<br />
Boring, Boring,<br />
Boring<br />
Ron Kushnier<br />
Ron Kushnier<br />
25 Wendy Way<br />
Richboro, PA 18954<br />
Richboro, PA 18954<br />
Sure, everyone knows how exciting it is (Q to play Space<br />
Invaders or some similar game oonn their home computer!<br />
But perhaps the real utility in our machines is<br />
derived fromm uses thal that arc are less dramatic. After all, ,<br />
one of the primary uses forr any machine is to frec free<br />
us from thc the drudgery and mundane routine thatI<br />
burden us in our daily lives; so that we can go off<br />
and think lofty thoughts and delve into the esoteric.<br />
Such an application resulted from a problem '",ith with<br />
the e hca heating system of our new home last winter, winter. I<br />
knew that the heating contractor and the builder were<br />
less than cooperative and thatt if I were to (Q gCt get aany<br />
where with them I[ would have to produce cold, hard<br />
.lacts. facts. I also knew that according to Murphy, on the<br />
day they would come comc to inspect the thc systcm system, , it would<br />
be sunny and warm and the e heater would exhibit<br />
absolutely no sign of improper design or malfunction.<br />
I[ needed data- lots of data to substantiate te mym y claim.<br />
I[ turned to mym y Pet. Fortunately ata t work, I[ had<br />
alla the peripherals I needed to turn mym y computer<br />
into a digital recording thermometer. I[ had previously<br />
ordered a DAM system (now called micro<br />
Mac) from Conn. . Microcomputer MicroComputer Corp. This set of<br />
devices is designed to LO provide proyjdc an analog-to-digital<br />
analog-LO-digi tal<br />
conversion system which interfaces to the e Pet. Pel. It<br />
came with a TempsensT empscns which has two temperature<br />
lUre<br />
probes good to within a degree Fahrenheit. As an<br />
output device, I used ana n HP model 5150A5 Thermal<br />
Printer.<br />
r.<br />
The program shown gave me a readout of the<br />
time every eyery 15 minutes, the temperature ata t the<br />
floor, 11001', and the temperature at the five foot level.<br />
I left the e Pet on 24 hours a day over the next<br />
several days, annotating a g the e data tapes by hand as<br />
required with such things as the e date, average outdoor<br />
temperature, etc. The time e period provided<br />
enough diverse weather conditions to (Q manifest a<br />
fairly comprehensive comprehensivc variety varielY of heating system<br />
problems.<br />
My M y long rolls s of o r data tapes convinced ced the builder<br />
and heating healing contractor contracLO r that I was serious. And my<br />
impressive collection n of or equipment could not be<br />
challenged.<br />
'T'he The computer's function was boring-sit t there hour<br />
aftcr after hour and print O'ut out numbers. This certainlyy<br />
could nott compare with shooting down a Klingon.<br />
Yct, it provided m y famil y and I wi th a needed<br />
Yet, it provided my family and I with a needed<br />
and useful utility for r which there was no substitute.<br />
.<br />
Program Listing<br />
5 PRINT"fi<br />
PRINT"n<br />
10 OPEN4,4<br />
15 INPUT"HR,MN,SC";HR$,MN$,SC$<br />
;HR$,t1N$,SC$<br />
17 PRINT"fi<br />
20 TI$=HR$+MN$+SC$<br />
30 M$=MID$(TI$,3,2)<br />
31 PRINT"h<br />
32 PRINT"TIME";" " 5 FEET";" " ~ -i<br />
..,FLOOR"<br />
-iFLOOR"<br />
33 GOSUB500<br />
35 PRINT"hH" PRINT".trWI;TI$,HIGH,LOW<br />
; TI$,HIGH,LOIv<br />
36 IFF$=M$THENGOT030<br />
IFF$=M$THENGOTO30<br />
40 IFM$="00"ORM$="15"ORM$="30"ORM$="45" I1 0RM$="lS"ORM$="30"ORM$="45" .., -.<br />
~THENF$=M$:GOT090<br />
-.THENF$=M$:GOTO90<br />
50 GOT030<br />
GOTO30<br />
90 GOSUB500<br />
130 PRINT#4,TI$;HIGH;L0W<br />
, TI$;HIGH;LOW<br />
135 GOT030<br />
GOTO30<br />
500 POKE59426,0: , POKE59426,255 , 255: : ~ -.<br />
^HIGH=PEEK(59471)-20<br />
~HIGH=PEEK(59471)-20<br />
510 POKE59426,1: : POKE59426,255 : ~ -.<br />
-.LOW=PEEK(59471)-20<br />
~LO\'l=PEEK 520 RETURN<br />
59468 ,12