[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: thermistor project in FAQ



"MechCD" <dsa> wrote in message 1J6dnaxNfIf_7orfRVn-qw@comcast.com">news:1J6dnaxNfIf_7orfRVn-qw@comcast.com...
> Does anyone have some other information about hooking a thermistor to an 
> Apple IIe? I'd love to do so, but I don't know where to start with the 
> programming. The hardware end looks incredibly easy for a change. I saw 
> the FAQ question about this and didn't really get any farther. I'm a bit 
> (very) rusty at PC based BASIC, but I think I could adapt to an Apple 
> style. Visual Basic 6 doesn't count

Hi,

If the thermistor is simply going to a Paddle input (timed loop) like the 
FAQ recommends,
It'll be really easy to write the applesoft to "sample" the input.

10 X = PDL (0) : REM 0, 1, etc for whichever cct you use
20 PRINT X;" will be between 0 and 255"
30 END

Then it's a matter of using known temperature values to calculate an 
equation
determining what temperature co-relates to the value 0 through 255 that the
PDL (paddle) input will produce.

Best of luck,
Craig