Device-USB-PCSensor-HidTEMPer
view release on metacpan or search on metacpan
lib/Device/USB/PCSensor/HidTEMPer/NTC/External.pm view on Meta::CPAN
@data = $self->{unit}->_read( 0x41 );
}
croak 'Invalid readings returned' if $counter >= 21;
# Calculate key
$key = $self->_volt_7705_calibration( $volt );
=pod
The formula used to calculate value based on a calibrated key value is
created using the Eureqa tool from Cornell Computational Synthesis Lab,
http://ccsl.mae.cornell.edu/eureqa.
Resulting in the use of this formula instead of the provided number list:
f(y)=66.7348/(66.7275/(67.8088 - 9.70353*log(0.000251309 + y*y)) - 0.21651)
If you find another formula that is more accurate please drop me a line.
The data used can be found in the source code of this file.
=cut
$temperature = 66.7348
/ ( 66.7275
/ ( 67.8088
-
9.70353
*
( run in 1.134 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )