Hi,
Just try it with a larger tank, we're just charging a cap through an AVR pin and discharging it through the tank so the voltage shouldn't matter too much.
Try filling you tank slowly taking measurement from the cap then feed the volume/measued value into an excel spreadsheet and create a chart. There is an option in excel to create the best fit formula and just use that to create the linerisation code. Here's an example chart
http://www.planet-ian.com/projects/img/Temperature_Graph.jpg.
Regards
Ian Dobson
↧