Convert Kelvin to Fahrenheit
Posted: Thu Jan 10, 2013 3:34 pm
I've got some of these neat LM335ZNS heat sensors that change
10 mv per degree Kelvin (very linear).
At room temperature, they put out about 3 volts, But can go up to
around 4V with added heat. (Using a 3.7K pull-up to 5V).
(For my project, I would like to monitor a -20 F to +230 F temperature range).
So, to make the sensors work with a 3.3V ArmMite, I've used two 4.7K resistors
to divide my 3 volts in half. I'm seeing about 1.5V on the analog inputs.
Anyways, converting Kelvin to Fahrenheit in Coridium basic might
be too big a task for me, since I was spoiled as a child by floating point.
I wonder if there is any sample code around for this kind of task?
Thanks for any comments..
Cheers,
Rich
10 mv per degree Kelvin (very linear).
At room temperature, they put out about 3 volts, But can go up to
around 4V with added heat. (Using a 3.7K pull-up to 5V).
(For my project, I would like to monitor a -20 F to +230 F temperature range).
So, to make the sensors work with a 3.3V ArmMite, I've used two 4.7K resistors
to divide my 3 volts in half. I'm seeing about 1.5V on the analog inputs.
Anyways, converting Kelvin to Fahrenheit in Coridium basic might
be too big a task for me, since I was spoiled as a child by floating point.
I wonder if there is any sample code around for this kind of task?
Thanks for any comments..
Cheers,
Rich