[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: thermistor project in FAQ
- Subject: Re: thermistor project in FAQ
- From: "Craig Bower" <to.email.me@post.a.request.message>
- Date: Sat, 19 Feb 2005 19:08:51 GMT
- Newsgroups: comp.sys.apple2
- References: <1J6dnaxNfIf_7orfRVn-qw@comcast.com>
- Reply-to: "Craig Bower" <to.email.me@post.a.request.message>
- Xref: g2news1.google.com comp.sys.apple2:8694
"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