It has passed some time since i upload a log for this project, a lot has happened in my personal life and in this project too.
First, i finished the prototype of the sensor and i made two of them to compare their performance. I used some servo cables with the white wire cutted, and soldered them . I isolated them with hot glue and i finished the surface of the glue with my hand torch. I still think that an hydrophobic coating is the best option but is to expensive for me to buy it right know. This is the result:
So i tried to test it with my multimeter to see how big the capacitance was, and i got:
That means 35pF, that's really low. Then i tried to see the change on the value of the capacitance when it was out the water vs when it was in the water... no luck!
So then i thought, why not both? I put both of my capacitive sensors together with an elastic band with the plates facing each other with opposite polarities. This allowed more water between the cooper plates, the result is in the next boring video :P
So i got around 14pF of range, which is an small variation. Then i tried to measure the capacitance with an arduino using the simplest "charge and discharge measurement of time" method using this code:
and this circuit with R = 50Mohms :
and i got this super noisy readings:
I tried some digital filtering but still, the noise were far bigger than the range i needed to measure. So after some internet surfing and chatting with a friend i realized something.... this circuit is a freaking antenna:
So, i turned off all my RF sources around me, by bluetooth speakers, my laptop wifi, i set my phone on plane mode and this happened:
The values became really stable (after the red line). And i notice that some other people that built capacitive soil moisture sensors had problems like this, for example, miceuz from wemakethings.net maker of the "CHIRP" the soil moisture sensor sold on adafruit.
On his words:
So i realize that if i would want many sensors working together communicating wirelessly and not crashing with other RF signals, i would have to try a different approach. Miceuz wrote this about the issue:
So after surfing and reading a lot, i found the blog "Zero characters left" where "drxzcl" talks about the attempt to make a similar sensor. In fact, after reading the 76 comments, i found out that it was that post that inspired miceuz to build his own, at least i think so.
In those comments also there's a lot of people affirming that commercial capacitive soil moisture sensors works above 80Mhz... why? because on those frequencies the effect of soil minerals is way less than in low frequencies. So this means that a sensor working on high frequencies have better chances to sense just the amount of water on its surroundings and no other elements or materials.
And maybe this was luck, but on hackaday main page i saw this:
It seems that the ESP8266 is capable of producing those frequencies using his Integrated Interchip Sound serial port.
Wouldn't it be great if the low cost most famous wifi module/microcontroller could be used to make this project a reality?