Close
0%
0%

A cheap capacitive soil moisture sensor

In order to achieve the first stage of precision farming, i want to create a cheap soil moisture sensor with wireless communication.

Similar projects worth following
In Mexico, more than 46% of the total population is poor and also 70% of all the workers on crop production. I'm Mexican and i want to help all those poor people working to feed not just my country, but USA, Japan and other countries that buys our crops. The idea of precision farming means to have a better control of the input and the state of our crop land, this can change the way of life of many people by increasing their production and income. The simplest sensor used to achieve precision farming is the soil moisture sensor. This device let you know the humidity of the ground, and this data can be used to control how much water to irrigate. It is known that the implementation of this kind of sensors, means savings of 40-70% of water on farms.

There are some ways to achieve this, measuring:
- Resistance
- Dielectric permittivity
- Delay of an electromagnetic wave propagation

I think is possible to create an affordable capacitive soil moisture sensor.

The goal of this project is to create a cheap capacitive and wireless soil moisture sensor to be implemented on the crop field. So it's key features would be:

  1. High precision and reliability moisture monitoring
  2. Temperature compensation of moisture level
  3. Sound alert ( to inform low moisture levels )
  4. Light sensing ( to schedule the irrigation on early morning )
  5. Long range wireless communication ( between 100-500 meters )
  6. Waterproof ( to irrigate without worrying about damaging the sensor)
  7. The cost of the sensor must be very low, around $5 USD.

  • i have an idea!

    Valentin Ortega09/04/2016 at 16:38 1 comment

    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:

    https://www.arduino.cc/en/Tutorial/CapacitanceMeter

    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.

    http://wemakethings.net/2013/06/07/chirp-plant-watering-alarm/

    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.

    http://zerocharactersleft.blogspot.mx/2011/11/pcb-as-capacitive-soil-moisture-sensor.html

    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:

    http://hackaday.com/2016/03/01/color-tv-broadcasts-are-esp8266s-newest-trick/

    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?

    Does anybody know how to use that thing? :)

  • A quick prototipe

    Valentin Ortega07/29/2016 at 05:47 0 comments

    While reading about how to measure capacitance i found what it seems to be the simplest method when using a micro controller: https://www.arduino.cc/en/Tutorial/CapacitanceMeter

    So i improvised a little to build some capacitive probes based on a FR4 double sided cooper board. Everything was made using a rotary tool, so it isn't perfect, that's why i made two, to compare the performance between both.


    The next step is soldering some cables, connect to an arduino, and isolate the board completely. In the previous log i talked about the challenge of finding the right kind of isolating coating or cover. Right know i think that the Neverwet alternative mentioned on the comments of the previous log is a good idea, but i'll have to save some money to buy this coating kit.

    https://www.amazon.com/Oleum-274232-Never-Multi-Purpose/dp/B00DNQBFAW

    Once i have my probe ready, i'll test it on a glass of water and see what happens.

  • Shaping the sensor, shaping the world

    Valentin Ortega07/26/2016 at 04:47 4 comments

    All of the capacitive methods listed on my previous log have something in common, they need a capacitive probe where the soil acts as the dielectric core.

    I found that coplanar electrodes is the best way to emulate a capacitor using cooper pads on a printed circuit. In the case of a double sided pcb, we need to use the same polarities on both sides of the pcb, in order to ignore the material that the pcb is made of (FR4, paper fiber, etc).

    More info here: http://zerocharactersleft.blogspot.mx/2011/11/pcb-as-capacitive-soil-moisture-sensor.html

    another-prototype

    Is important that the geometry of the board allows it to be placed easily on the ground. Also, all the probe body needs to be water isolated because the material the pcb is made of can store moisture on the long run (FR4).

    Different types of water isolation tested by draco


    Doing this can result in other problems, the same material isolating water from the board, can begin to store water, causing drifting problems measuring capacitance.

    More info about this, here: http://www.deepdarc.com/2011/09/08/square-one/

  • Searching the best and cheapest way to sense moisture

    Valentin Ortega07/23/2016 at 07:26 0 comments

    The core of the project is to achieve the ability to sense the moisture of the soil on a crop field. The reason for choosing the capacitive way over the resistance method is to avoid the rust on the electrodes, dielectric terminals doesn't need electrical conductivity, therefore, they can be isolated and protected from water, air and dust.

    The capacitance or the dielectric permittivity of the ground changes with the level of water content in it. There's 5 main ways to sense those changes:

    1. Using a 555-like timer, and use the changes of capacitance on the ground to change the frequency of the output signal.

    2. Using a dual opamp in an astable oscillator mode and measuring the frecuency of the output signal.

    3. Using an opamp in integrator mode, where the cut off frecuency is based on the capacitance of the ground.

    4. Using a microcontroller to generate a signal above 1Mhz and using a low pass filter to alter the output voltage, based on the capacitance of the ground.

    5. Using a capacitance meter IC.

    I haven't decided which method i'm gonna test first.

    Info about the methods:
    http://electronicdesign.com/analog/use-analog-techniques-measure-capacitance-capacitive-sensors
    http://wemakethings.net/2012/09/26/capacitance_measurement/

View all 4 project logs

Enjoy this project?

Share

Discussions

aboda558p wrote 03/20/2023 at 01:21 point

<a href="https://yallashooot.online/allarab/">يسينان كوره </a>

<a href="https://yallashooot.online/koora-live-365/">koora live 365</a>

<a href="https://yallashooot.online/">tab3kora</a>

<a href="https://yallashooot.online/infosports/">أنفو سبورت</a>

<a href="https://yallashooot.online/%d9%85%d8%a7%d8%aa%d8%b4%d8%a7%d8%aa-%d8%a7%d9%84%d9%8a%d9%88%d9%85/">أهم ماتشات اليوم بث مباشر</a>

<a href="https://yallashooot.online/%d8%a7%d8%b3-%d8%ac%d9%88%d9%84-as-goal/">اس جول AS Goal</a>

<a href="https://yallashooot.online/%d8%a7%d9%84%d8%a7%d8%b3%d8%b7%d9%88%d8%b1%d8%a9-%d9%84%d9%84%d8%a8%d8%ab-%d8%a7%d9%84%d9%85%d8%a8%d8%a7%d8%b4%d8%b1/">الاسطورة للبث المباشر</a>

<a href="https://yallashooot.online/%d8%a7%d9%84%d8%a7%d8%b3%d8%b7%d9%88%d8%b1%d9%87-%d9%84%d8%a8%d8%ab-%d8%a7%d9%84%d9%85%d8%a8%d8%a7%d8%b1%d9%8a%d8%a7%d8%aa-2/">الاسطوره لبث المباريات </a>

<a href="https://yallashooot.online/%d8%a7%d9%84%d8%a7%d8%b3%d8%b7%d9%88%d8%b1%d9%87/">الاسطوره لبث المباريات</a>

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates