|
Re: Finding battery voltage?
What you are attempting is called an open-loop compensation: Measure everything that affects the result, and find a function that (hopefully) compensates for them. This is inherently difficult and prone to error - what if there is something else that also affects your result that you aren't measuring?
Put a sensor on what you are trying to control and close the loop. A potentiometer will likely serve your purpose well.
|