calplug / arduinomenucalibrator Goto Github PK
View Code? Open in Web Editor NEWArduino based regression tool for calculating coefficients for fitting. This serial menu driven script provides the capability for using regression to determine fitting coefficients for multiple types of potential fitting equations linear, quadratic, power, exponential, and logarithmic functions from input data either supplied or measured via microcontroller ADCs. It can be used for sensor calibration and provide fitting summaries and coefficients. After reading values and calculating fits and goodness of fits (along with average and absolute errors) it will allow the saving of fitting cofficients into onboard EEPROM to be recalled by anothe rprogram. The intent of this operation is to use this as a program to calibrate onbboard sensors where the saved data can be recalled from the EEPROM as required. It has been tested as functional on Arduino Uno and Arduino Mega. NOTE: Limited memory on microcontrollers limits the practicality of regressions with very large datasets. A library based version of this script is in development currently.