I am having difficulty with accuracy and have come up with the idea of measuring a known voltage and then finding out what multiply ratio is required. I would then like to store this in flash as a cal constant.
Then I would call this number as my multiply ratio.
I many lumps from banging my head against a wall I thought I would get help.
Does anyone have any tips or code on doing this ?
MainInput = analogRead(0); // Read Analog input 0, Main battery
MainVolts = (MainInput * 17.7) / 1024; // convert raw data to voltage