Hello Tanaka san,
Thanks for your contribution to the community.
1 of 1 people found this helpful
You can speed-up temperature calculation using Fast Thermistor Calculator component, which takes about 15 times less CPU clocks than traditional calculations.
Thank you very much for your information!
I studied your code a little, and noticed that there are two differences.
(1) You (and Cypress Component) use approximation between 0 ~ 50 C degree,
beside the range of 103AT-11 is -50 ~ +105 C degree and I used the maker's formula.
(In general 0 ~ 50 should be enough though)
(2) The biggest contribution to the speed is usage of "fastlog()" which does not use "log()"
It requires 3 sampled values, such as @5C, @25C, @45C,
and the error out side of 0~50 could be large (Sorry I was too lazy to calculate them, yet).
About (2), if "fastlog()" can speed up the calculation, may be replacing "log()" in my
formula also provide speed boost similar to your estimation and it also discard the
requirement for "-lm" option, which is very nice.
BTW, the Thermistor Calculator's URL has been changed and it is now
Attached is my project using "fastlog()".
Around 25~26 C degree, the value seems to be OK.
Thank you for updated link and updated project.