-->
Page 1 of 1

log function

PostPosted: Thu Nov 05, 2015 9:28 am
by matherp
Hi

Please could you implement a log (log to base e) function.

I'm going to be using a thermistor to measure temperature and need log for the Steinhart-Hart equation

thanks

Re: log function

PostPosted: Thu Nov 05, 2015 10:23 am
by xtal
Just courious why you want use thermister ?
The 1 wire DS18b20 works great [although have not use on esp8266]
Are you working on a pid controller where you may need high temps?

Re: log function

PostPosted: Thu Nov 05, 2015 11:15 am
by matherp
At the moment ESP8266basic doesn't support DS18B20. Even when it does the problem with the DS18B20 is the time they take to convert. To be useful in time sensitive applications they need to be operated as one-wire devices: send the convert instruction, do whatever else until the convert has completed, then come back and ask for the data. Otherwise the convert is blocking. A decent thermistor (1%) is cheaper, instantaneous and fully supported in ESP8266basic using the ADC pin.

Re: log function

PostPosted: Thu Nov 05, 2015 9:14 pm
by Mmiscool
log function has been added to latest build.