- Mon Jan 16, 2017 4:45 am
#61085
Erich,
I have only used the ESP8266 A/D converter for a keypad, where the keypad applies voltages from different resistor dividers to the A/D converter depending on which key is pressed. The A/D converter works quite acceptably in this case and the results seem quite consistent - we checked on a few samples and the A/D readings were within around 20 counts from ESP12F to ESP12F.
The ESP8266 creates quite a noisy environment, especially when wifi is active. Did you have a capacitor (such as 100nf) on the input to the A/D converter input? Did you take averages of a number of samples? We would normally use a rolling average of at least 16 samples. And what was your source of the 0.95V? This could also be a source of noise.
That said, I agree with trackerj that you are likely to get limited accuracy for your temperature measurements using the built in A/D converter with NTC thermistors.
NTC thermistors are most convenient and accurate when used with a ratiometric A/D converter. I normally use them with PIC micro controllers, where the supply to the NTC/fixed resistor divider (eg 5V) is the same as the reference for the A/D converter, so that any variations in the 5V supply are applied equally to the reference to the A/D converter and cancel out. In that case, the main sources of measurement error are the tolerance of the fixed resistor and NTC resistor.
With the ESP8266 case, where it uses a fixed internal voltage reference, your measurement will also depend on the tolerance of the ESP8266 internal voltage reference (which is not well specified), as well as the tolerance of your supply the the NTC/fixed resistor divider, as these wont cancel out in this case.
An alternative to trackerj's suggestion to use an external A/D converter would be to use an I2C or 1 wire temperature sensor, such as DS18B20. I haven't had any experience using these, but you should be able to connect many of them to one bus (solving your multiple sensors problem) and wired assemblies seem to be available reasonably inexpensively from Aliexpress, in case you need a wired solution.
There are also examples of projects using these sensors with ESP8266 as a reference:
http://www.instructables.com/id/Low-cos ... ed-on-ESP/