- Mon May 14, 2018 2:24 am
#75924
ESP8266 internal ADC is notoriously bad in terms of accuracy and also has a bad non-linear response so for anything than very simple ADC functions I would suggest you to use an external dedicated ADC.
A good I2C candidate is the MCP3421, a single channel, low-noise, high accuracy delta-sigma A/D converter with differential inputs and up to 18 bits of resolution. Even more, it has a on-board precision 2.048V reference voltage that can be used for a full input input range of ±2.048V differentially.
For more details about MPC4321 you can look here:
MCP3421 ADC I2C Driver exampleIf you combine it with a multi-range or an autorange ADC Input frontend you can obtain a very nice universal ADC input for your ESP8266 related projects. A full example with schematics, drivers, etc can be found here:
ADC autorange frontend
Last edited by trackerj on Mon May 14, 2018 9:40 am, edited 1 time in total.