Fahrenheit vs Celsius
manxstamp
Posts: 57
Working my way through various Basic Stamp projects and reading the N&V Stamp articles, I am struck by the extraordinary mathematical lengths to which the authors go·to convert the perfectly good scientific output from temperature measuring devices such as DS1620 from Celsius (Centigrade) to Fahrenheit. Why not just use Celsius?
When Fahrenheit invented his scale in 1714 he used the coldest temperature he could produce (ice and salt) as 0 and the body temperature as 100 (he must have had a fever, probably due to sitting with all that ice and salt!). So it was a metric scale. When Celsius invented his scale at about the same time, he used very easily standardised temperatures, melting ice and boiling water at sea level, as his 0 and 100 metric scale. If you are going to use a metric scale, why not use the international scientific standard adopted in 1948, Celsius (aka Centigrade). You might as well use Reamur's scale (ice at 0 and boiling at 80).
In the UK and·Europe, we are fascinated by the USA's persistence with pounds, feet, foot pounds, nautical miles etc. in scientific applications, even when, as in a recent joint space mission, confusion between feet and metres caused disastrous problems.
So, over to US contributors to reply to my (deliberately· )·, provocative·post!
John
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Manxstamp,
Isle of Man, British Isles
When Fahrenheit invented his scale in 1714 he used the coldest temperature he could produce (ice and salt) as 0 and the body temperature as 100 (he must have had a fever, probably due to sitting with all that ice and salt!). So it was a metric scale. When Celsius invented his scale at about the same time, he used very easily standardised temperatures, melting ice and boiling water at sea level, as his 0 and 100 metric scale. If you are going to use a metric scale, why not use the international scientific standard adopted in 1948, Celsius (aka Centigrade). You might as well use Reamur's scale (ice at 0 and boiling at 80).
In the UK and·Europe, we are fascinated by the USA's persistence with pounds, feet, foot pounds, nautical miles etc. in scientific applications, even when, as in a recent joint space mission, confusion between feet and metres caused disastrous problems.
So, over to US contributors to reply to my (deliberately· )·, provocative·post!
John
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Manxstamp,
Isle of Man, British Isles
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Post Edited (Jon Williams) : 8/26/2004 4:04:05 AM GMT
measured in feet and inches just the way we do. But I could be wrong:-)
Besides, whats so hard about stamp programming degreesF = ((degreesC * 18) + 32) / 10.
Us yanks can do that in our sleep! ;-) I KNOW what 90 degrees F feels like. I have to go
do the math to know what 20 degrees C feels like.
It's all in what you where raised with. Not that we can't learn something new, we do that
everyday of our lives. But converting 300,000,000 people to think in metric is no small task
and would/will take several generations to accomplish. Slow learners? NO· Stubborn? YES :-)
Dennis
·
We should dump both scales and use Kelvin instead...
(The scale starts with 0 being the 'absolute zero', and ice melting at 271 or so...)
Did anyone mention Inches?
Imperial, or any other?
Imperial is 2.54cm, Norwegian is 2.63cm...
We have big hands, all right?
(No, it's not used any more, as far as I know.)
Why is it that DIP modules are measured in .1" increments, while everywhere else they use 1/2, 1/4, 1/8 and so on?
A nautical mile is 1850meters, or 10 'cable lengths'
One Knot is one Nautical mile/hour
Measurements can be fun...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
For now, those tired of math can convert MANY types of units from one to another using a simple free program found on the net, called simply, "CONVERT".· You can get it here:
http://www.knightdesigns.com/files/CONVERT.EXE·(OLD LINK REMOVED)
I wasn't sure if EXE files were allowed for attachment...
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edited (Chris Savage (Parallax)) : 4/12/2005 2:01:13 AM GMT
The worst part was converting from gallons to litres for fuel. Not only did they change the units, they also inverted the measure of fuel econpmy for cars. Used to be miles per gallon. Then some idiot decided litres per hundred kilometers was a better unit. I still think in miles per gallon, but also in kilometers per litre - but not litres per kilometer (or 100 kilometers).
And for real fun, travel to the US and try and remember how to convert litres to Imperial gallons then to US gallons, then also convert Cdn currency to US currency to see how much gas costs compared to home.
Re: electronics, what I find funny are the Molex ".156" connectors with .156 inch spacing. Really they are 4mm. Try using a ruler to measure in units of .156 inches so you can drill holes. Then try using units of 4mm (our rulers have metric markings on them) and tell me which is easier!
Harry
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edited (Chris Savage (Parallax)) : 4/12/2005 2:01:23 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed
...you're about average...
When I was a child (in the 1950's I have to admit) you could buy notebooks with little tables on the back cover which showed how many pecks were in a bushel and chains in a furlong etc.!
You are all·right in that it doesn't really matter, and the PBasic programs are easily written for either Fahrenheit or Celsius, but perhaps a truly universal set of units might be a little·help in this troubled world.
Thanks for the interesting views,
John
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Manxstamp,
Isle of Man, British Isles
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed
...you're about average...
<geekiness value="high">
That should be attoparsec per microFORTNIGHT (1.0043268 inches/sec).
A furlong is a measure of distance.
</geekiness>
Sorry, couldn't resist.
-Rusty-
--
Rusty Haddock = KD4WLZ = rusty@fe2o3.lonestar.org
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking
I had amnesia once -- or twice.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If at first you don't succeed
...you're about average...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edited (Chris Savage (Parallax)) : 4/12/2005 2:01:32 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
TWS/RWS RF Modules
http://hometown.aol.com/newzed/index.html
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edited (Chris Savage (Parallax)) : 4/12/2005 2:01:42 AM GMT
' {$STAMP BS2p}
' {$PBASIC 2.5}
c··· VAR byte··· 'Celsius
f··· VAR word··· 'Fahrenheit
x··· VAR byte
FOR x = 0 TO 100
f = (x*90)/5
DEBUG "C = ", DEC x, "· ", "F = ", DEC f/10+32 , ".", DEC1 f, cr
PAUSE 1000
NEXT
END
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
TWS/RWS RF Modules
http://hometown.aol.com/newzed/index.html
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edited (Chris Savage (Parallax)) : 4/12/2005 2:01:49 AM GMT
I have a web page on the DS1620, which we used for the Earth Measurements curriculum.
owlogic.com/OL2d1620.htm
The '1620 outputs at one bit per 0.5 degree Celsius. Assuming you also need to cover negative temperatures (read nine bits), use the formula:
It is the handling of the negative temperatures that makes it a bit convoluted. The factor 11796 is from Stamp math: (9/50 = 11796/65536).
The web page shows how to read the high resolution registers. It is more fun to see the sensor perform at 0.01 degree resolution!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edited (Chris Savage (Parallax)) : 4/12/2005 2:01:56 AM GMT
·· Just wanted to get back to you and say "Thank You!"· Your code listed above was finally integrated into the Digital Thermostat, and now we appear to be getting tempF resolution of 1 degree, instead of 1.9, or whatever I was getting using the old code.· I also saved one variable, and since I will never be using negative temps or displaying in Celsius, several lines of code.
I did have to refer to your website though to check the variable declarations, since there was a difference from mine.· Anyway, thanks again.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edited (Chris Savage (Parallax)) : 4/12/2005 2:02:03 AM GMT
I'm living in Germany, and I'm pretty sure that the way to specify fuel consumption depends on how you think (optimistic, or pessimistic).
Miles/Gallon means: Hey I can make so many miles with just one gallon, where Litres/100 Kilometers means: Arghhh - I need so many litres for 100 kilometers - this is similar to the "glass half-full", or "glass half-empty" way of thinking.
Seems as if we Europeans (at least we Germans) tend to be more pessimistic.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G