Take a rectangle and cut it diagonally to form two triangles. The idea is to have two capacitors with a constant capacitance sum that you can relate the two individual measurements to. Hopefully, both capacitors are affected equally by moisture, temperature etc due to their close positioning. It is basically to get a 100% reading and then relate the other two readings to it to get a percentage.
Yes, I have seen that in touch slides. I don't know how it would work in my case. I have rather long cables (a few meters) from ADC to the tank I would like to measure. What I have tested so far shows that I need to have a ground as well. Thus I would have two triangulars + one rectangle?
I did some more testing with my bottle. I flushed it inside and I got only 15 pF empty and 130 pF full. Then I put some salt into the water and still got 130 pF for full bottle. After empting the salt water without flushing I got 150 pF! Flushing got it back to 15 pF again. It seems to be about moisture and conductivity inside the bottle, not outside. The tank I would like to measure will have some salt and other impurities inside.
I did some capacitor theory calculations. The bottle is made from PET (density 1380 kg/m3, relative permittivity 3.4). Quick calculation from weight and surface area suggest that it is about 0.4 mm thick. The folios are about 18*3 cm. If I assume that there is conductive material inside the bottle, I get a 400 pF capacitor from folio to that conductive material. Now I'm measuring two equal capacitors in series, which should mean 200 pF, which is very close to what I get with salt water.
Is that what is happening now? Is the remaining salt + moisture after empting the bottle conductive enough to work as calculated above? How can I measure the difference between just some impurities + moisture vs. real liquid?