Special Thanks to Evan Galpin https://github.com/egalpin for the Python Code examples!
This is the base example sketch for using MinipH hardware. The usage is quite straight forward 😎. MinipH digitizes the analog voltage from the pH AFE using an I2C ADC.
Using MinipH with any project is extremely easy, the MCP3221 is a very popular ADC which is easy to work with whether you use Arduino or any other method, even BitBanging over a FTDI USB to Serial!
Please see MinipH's Project page for more information! http://www.sparkyswidgets.com/Projects/MinipH.aspx
Not too Much really! The flow is very straight forward. Set up our I2C (2Wire, Aka "Wire") interface assign the address of our ADC. Then we can ask it for its MSB and LSBs, put them together to form the 12 bit reading back and bobs your uncle :aus:
The best part of this design and firmware is nothing extra to install. copy paste, clone whatever you method all you need is similar hardware and this code!!
Usage of MinipH example code is very easy. There are only a few commands, but that doesn't mean you cant augment this further.
####Some of the commands are:
- See the MiniLib libraries for better(More recent) commands and example code!!
- Take a look in MinipH's Hardware Repo for the EAGLE files!
- Check out my USB pH interfaceLeoPhi for a powerful and easy to use USB PH Probe interface!
- Add support for MiniLib Library to consolidate all interface firmware under a common library core
- Add support for additional languages (I.E examples like egalpin/pythonify fork of the firmware)
This is a fully open source project released under the CC BY license
MinipH by Ryan Edwards, Sparky's Widgets is licensed under a Creative Commons Attribution-ShareAlike 4.0 Unported License.
Based on a work at https://www.sparkyswidgets.com/portfolio-item/miniph-i2c-ph-interface/