General area when it fits no where else

Moderator: Mmiscool

User avatar
By danbicks
#63099
PhilTilson wrote:
Phil should it not be 0.63 which is one time constant as opposed to 0.69 ?

So it seems! :oops:

Funny how you have something in the back of your mind from years ago and it turns out to be wrong! Let's be nit-picky - 0.63212 !! :mrgreen:

I'm not even sure that the method would work, but it's worth a try.

Phil


Haha Sorry mate I am a stickler for detail. I think the method is good but you know what I would do is use a capacitance meter lol :)

Dans
User avatar
By Mmiscool
#63121 As an interperter there it is not really posible to get timing down much more.
User avatar
By schufti
#63132 it can be done with only one gpio, too:

Connect cap between gnd and gpio,
switch gpio to output and low,
wait for some time,
set gpio to input with pullup,
check time until gpio signals high.

it is coarse but for some aplications it is good enough ...
(definitely not for pF)
User avatar
By ardhuru
#63225
schufti wrote:it can be done with only one gpio, too:

Connect cap between gnd and gpio,
switch gpio to output and low,
wait for some time,
set gpio to input with pullup,
check time until gpio signals high.

it is coarse but for some aplications it is good enough ...
(definitely not for pF)


Absolutely; that is exactly what the PicbasicPro compiler does.

Thanks for the insight, guys. I realize an interpreted platform can no way handle that timing. I guess snicking a 555 would yield timings in a similar range, so thats out.

Best way seems to be to use a pic just to measure the capacitance (a home made sensor for measuring the amount of water, incidentally), and the read it off the ESP via the UART.

Thanks again, guys.