-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
When you heat up the thermistor you will see the temperature dropping in the serial monitor? It should be the other way around. Checking the library source code (thermistor.cpp) on the calculations we found a mistake in the calculation of the resistance.
100 // convert the value to resistance
101 average = ADC_RESOLUTION / average - 1;
102 average = serialResistance * average;
We had to correct line 102 as below (times should be divided!).
100 // convert the value to resistance
101 average = ADC_RESOLUTION / average - 1;
102 average = serialResistance / average;
Now the code works as it should be.
Metadata
Metadata
Assignees
Labels
No labels