twesthoff wrote:... hot and cold water, and fresh and salt water...
On the bench, I found that the '555 oscillation period doubled to ~26.2uS from the empty-terminal state when I put a ~12pF cap across them. That suggests that the empty-terminal stray capacitance in this circuit as built is ~12pF and corresponds to a period of ~13.2uS. To correct the capacitance measurement, then, it is necessary to subtract 13.2uS from the resulting period.
I tried a number of standard values that I had in the junk box (which I measured in a multimeter - of unknown accuracy - and used that value in the data below); the corrected results are satisfying:
[MeasuredC (standard) = period - correction = corrected (error)]
Empty-terminal ("0pF") uncorrected period = ~13.2uS
215pF (220) = 226.1 - 13.2 = 212.9uS (0.9% error)
152pF (150) = 165.4 - 13.2 = 152.2uS (-0.1%)
96pF (100) = 111.3 - 13.2 = 98.1uS (-2.1%)
46pF (47) = 61.2 - 13.2 = 48uS (-4.4%)
31pF (33) = 46.3 - 13.2 = 33.1uS (-6.7%)
22pF (22) = 36.1 - 13.2 = 22.9uS (-4.1%)
12pF (12) = 26.0 - 13.2 = 12.8uS (-6.7%)
These results are close enough for the purpose and are, I think, surprisingly accurate considering that these are small capacitance values.
I put 2"-wide tape on a new five-gallon bucket, this time in a wide V; this both allowed a little more tape to be applied and brought the connection points close together at the bottom for easy connection with clipleads.
The dry oscillation period was 24.6uS representing the correction for other values. Adding one gallon of tap water brought the period to 50.14uS; two, three and four gallons resulted in periods of 73.78, 95.72 and 115.15uS, respectively. Due to the construction of the bucket, the tape couldn't be applied to the top and ended just above the four-gallon depth, so I couldn't measure to five gallons. As above, correcting the periods by subtracting the dry value from each results in 0, 25.54, 49.18, 71.12 and 90.55uS for zero through four gallons. If four gallons is considered full, those values correspond to 0, 28%, 54%, 79% and 100%.
The bucket is not cylindrical; it is 9" ID at the bottom and 11.25" ID at the top. Consequently, the top gallon of water is less deep than the bottom gallon and therefore exposes less electrode tape area - if my math is correct, ~14% less area for the top (fifth) gallon, ~11% less for the fourth and so on. I suspect that explains the lesser change to the higher depths - which can be corrected exactly.
I added a great deal of common salt to the four gallons, bringing the TDS (dissolved solids and conductivity) from ~398ppm to >2000ppm, the maximum my tester can display; that is quite salty-tasting. There was no change in the resulting period. I cannot conveniently test with hot water but I don't see why that would change the results.
Quantifying these periods is easy to do in code and selecting, measuring and displaying several tanks is trivial. ZBasic is next.