-
Soil Moisture Sensor
Dec 23
In the middle of the picture you can see the moisture meter board from hobby-boards.com and on the right the Watermark soil moisture sensor. When the moisture sensor gets wet its electrical resistance goes down, and when it dries up the resistance goes up. The sensor is connected as a part of the moisture meter circuit, which has a 1-wire interface to the rest of the system.
The board needs a separate 9 to 24 volt DC power supply. I have placed the power supply indoors and the power supply current is running in the Ethernet cable as well as the 1-wire data signal, but only to the moisture meter board and not further into the 1-wire network.
As the other sensors in my 1-wire network this board is also accessed through owfs software (one wire file system) and I’m using the Current Register of the onboard DS2760 1-wire monitor IC to read out data. The moisture sensor is connected to an onboard timer IC and when the resistance changes so does the oscillating frequency of the IC and its power consumption. This is measured by the DS2760 and the value is stored in the Current Register.
When the moisture sensor is completely wet the value in the Current Register is -1.400 and when completely dry the value is -0.2386. This goes for this particular system.
I’ve dug a hole about 30 cm (12 inch) deep and put the sensor at the bottom. The soil that I dug up has been mixed with water and poured into the hole to fill it up again. It’s important with a close fit between sensor and soil.
As usual I have a Linux script running on the NSLU2 that takes care of reading the sensor along with temperature sensors in the 1-wire network, and making historical graphs of the readings:
update.shIt assumes that you’ve made a valid database for the readings, for example with this script:
make_database.shThe schedule is handled by Linux crontab with these entries:
# m h dom mon dow command
*/5 * * * * /home/thomas/happyfarming/update.sh &> /dev/null
*/5 * * * * /home/thomas/happyfarming/upload.shGraphs are uploaded to happyfarming.com using this updated script:
upload.shThis is an example of one of the graphs:

My About page will be updated with the newest graphs.
If you have any questions or comments please leave a comment or use the contact form.
Subscribe in RSS reader
Subscribe to email newsletter
About
-
Are you ready to grow your own food? Take a tour through my archives and learn how I did it!

Recent Articles
Popular Articles
- How To Install Debian On NSLU2
- Building A Better Bean Trellis
- How To Build A Bumble Bee Nest
- Choosing The Right Type Of Composting Box
- Soil Moisture Sensor Circuit Explained
- How To Prune Black Currant
- Pruning Red Currants
- 31 Things You Need To Know About Peaches Before You Start Digging
- Still No Peach Leaf Curl
- Peach Tree


