Adding MCP3221 to ESPEasy

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
theju
Normal user
Posts: 4
Joined: 29 May 2016, 10:14

Adding MCP3221 to ESPEasy

#1 Post by theju » 29 May 2016, 10:23

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

User avatar
bertrand
Normal user
Posts: 24
Joined: 30 Jun 2016, 10:22
Location: Hong Kong

Re: Adding MCP3221 to ESPEasy

#2 Post by bertrand » 19 Nov 2016, 15:02

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

Martinus

Re: Adding MCP3221 to ESPEasy

#3 Post by Martinus » 19 Nov 2016, 16:17

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..." ;)

sasso
Normal user
Posts: 10
Joined: 16 Mar 2017, 21:48

Re: Adding MCP3221 to ESPEasy

#4 Post by sasso » 11 Sep 2017, 20:16

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

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Adding MCP3221 to ESPEasy

#5 Post by Shardan » 11 Sep 2017, 21:18

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
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests