donderdag 12 mei 2011

Temperature measurement

Today the temperature sensor is tested. For some reason the danish decided to use the Fahrenheit scaling. We don't read Fahrenheit so conversion to Celsius is applied.
The sensor is tested in hot and cold water, it seems to react real slowly. To make sure that the temperature is measured correctly the program will do a measurement, wait for 3 seconds and then perform the next measurement. If these measurements result the same value we assume the measurement to be correct and finished. (if not it will wait another 3 seconds and measure again etc.)

Geen opmerkingen:

Een reactie posten