Page 1 of 1
Temperature sensor
Posted: Thu Mar 18, 2010 2:34 pm
by Hans
Hi,
please can somebody tell me how to read the temperature from this sensor (connected to COM1) in a basic-program?
http://www.produktinfo.conrad.com/daten ... R_TO92.pdf
best regards
Hans
Posted: Sun Apr 04, 2010 10:01 am
by Valerie
How do you intend to connect the output of the temperature sensing device to the Com port? This device is just a sensing unit which will return a value (voltage?) on the output pin depending on the current operating temperature. e.g. For an input voltage of 5v at a temperature of 20C the output might be 3v, at a temperature of 40C the output might be 4v etc.. This voltage must then be detected and converted to a value (binary?) which can be read by the program. QuickBasic is not capable of reading/interpreting voltages, that's a job for other electronic components.
Posted: Sun Apr 11, 2010 12:16 am
by BurgerBytes
From the tech description, the device sends pulses to represent the temerature eliminating the need for an Analog to Digital converter. The problem would be the time duration needed to read the pulses.
The pulses need to be counted in regular intervals and converted to an alolog value accordingly. That would require the program to convert the counts to degrees. This would be set up by trial and error.
Ted