Tell me what you want, What you really, really want.

Moderator: Mmiscool

User avatar
By matherp
#33125 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
User avatar
By xtal
#33133 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?
User avatar
By matherp
#33140 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.