Thank you Ian. In fact, I have read your page before. But did not notice the capacitor. Also, you wrote '...and abit of bit rounding as the output value isn't linear' and this made me confused (as I don't know what should be done to get it linear).
Another thing is, for getrc command, power is supplied from the microcontroller. If the tank is large/tall, will it be efficient? But CD4060 can be operated in higher than 5 volts (5v-15v). If I run this separately with higher volt (common ground) and take the output for pulsein, I think it would be stronger and stable than getrc. Don't know whether I am thinking right.
I have tested it on small container and the reading is almost linear. Most importantly no sudden increase or decrease of the result.
[This is also touch sensitive, even it detects if hand is placed near to it without touching. Though I don't need the touch thing.]
↧