Closed AndrasHPataki closed 2 years ago
While this was closed without further explanation, I had the same situation in a project. The library does support external ADCs, provided that you call externalADCUpdate()
instead of update()
, passing the voltage read from ADS1X15.
The value passed as pin
in the constructor is unused, but Voltage_Resolution
and ADC_Bit_Resolution
should be real values so serialDebug()
doesn't display wrong.
Good Morning. I have an ESP8266 Board (NodeMCU) and one of the biggest problems of it, is the existence of a single analog port. Because of this, I decided to deploy an "Analog Extender" (ADS1X15) to place more analog sensors. Unfortunately, I couldn't get it to work, although the build works, the mqsensorslib library accuses a problem in the serial monitor. See below my code:
The error happens precisely in the last lines (ifs calcR0 or calcR1 check). Because of this, I would like to know if it is possible to integrate the analog input extender with the library.