/SW_MiniLab-Library

An Arduino Library for interfacing Mini-line of water quality probe interfaces.

Primary LanguageC++

Fork Note

Changed i2c addresses within example as the delivered sensors had the addresses switched.

Welcome To: Sparkys Widgets MinipH, eC and other Mini-board Driver library

Note: This can be used with any AVR/Arduino that needs to interface with hardware that is based on the Mini line of interface boards(MinipH, MinieC, etc...)

Written to help simplify adding in multiple interfaces boards (even the same type I suppose) into a project and help keep things more uniform. This also takes advantage of moving the hardware driver(IE the actually ADC interfacing) portions to its own driver library thus the first steps of interchangeability are in place. One could in theory change to a spi driven ADC for example.

Class Info

  • Each sensor type support has its own class
  • Each sensor has its own instance, so many can be used (be careful of memory usage)
  • Feed it address and and measured VREF(I.E measured VDD into IC) for ADC interfacing
  • Each sensor inherits from the MCP3221 Library

Method Info

  • Access to MCP3221 Library methods(CalcMillis, RollingAVG, EXPAVG, READADC etc...)
  • Calibration methods for 4, 7 and 10 reference solutions
  • Calibration methods for eC solutions (a low and high to calc slope)
  • temperature compensation methods
  • Map methods for both pH and eC have been added as well for those that prefer the ReefAngle way of calculating values(Thanks RA project, http://www.reefangel.com/)

Additions, Errata

  • Inherent from MCP4017 library to add in digital potentiometer support (will branch lib with ext extension)
  • Add more probe support ORP, DO etc...

License Info

Creative Commons License
SW_MiniLib by Ryan Edwards, Sparky's Widgets is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.