Page 1 of 1

Adding MCP3221 to ESPEasy

Posted: 29 May 2016, 10:23
by theju
Hello,

I'm just making a pool node via ESPEasy the controls and monitor my pool.
No problems with relays to control the pump and 1-Wire temp sensors.

Now I want to read pool's pH and chlorine. I've found this board https://github.com/SparkysWidgets/MinipHHW that can read values from RedOx or pH sensors based on a MCP3221.

Is there any chance that someone add the support for MCP3221 to ESPEasy ? My programming skill is very to low to make that my own :(

Thank you for support !

Theju

Re: Adding MCP3221 to ESPEasy

Posted: 19 Nov 2016, 15:02
by bertrand
Hi Theju,

I got a pair of miniEC & minipH with me and with R142 it's listed as a PCF8591, which is wrong... the PCF has 4 Ain, where the MCP3221 is a single port ADC....
In short, MCP3221 should be much easier to program than the PCF8591.

http://ww1.microchip.com/downloads/en/D ... 21732D.pdf
and minipH
https://github.com/SparkysWidgets/MinipHHW
https://github.com/SparkysWidgets/MinipHBFW

Re: Adding MCP3221 to ESPEasy

Posted: 19 Nov 2016, 16:17
by Martinus
bertrand wrote:Hi Theju,

I got a pair of miniEC & minipH with me and with R142 it's listed as a PCF8591, which is wrong...
As of R142, the column heading is renamed to "Supported devices" It does not mean "identified device"

Should we change the heading to "List of supported devices that are typically found on this address but it could also be something completely different, including homebrewn custom I2C slaves..." ;)

Re: Adding MCP3221 to ESPEasy

Posted: 11 Sep 2017, 20:16
by sasso
Has anyone been able to get readings from

SparkysWidgets/MinipHHW

These would be fantastic for aquarium usage and I know at least 20 people who are asking me to add ph an ec readings to their temperature and led sensors that I helped them build

Re: Adding MCP3221 to ESPEasy

Posted: 11 Sep 2017, 21:18
by Shardan
as long as these devices give back analog values it should be no big problem
to read them using an a/d converter.
I'd recommend the ads1115 for this as it is more accurate then the built-in adc or the pcf8591 and it has 4 analog inputs
that can be used in parallel.

Rgards
Shardan