How to interface soil moisture sensor with evive?

soil moisture sensor
About This Tutorial
This tutorial demonstrates how to interface and track moisture of the soil.Display the data on evive display.
Tutorial Info

Components Required

Introduction

Monitoring plant health is very important for its fast growth. In this busy world, people usually forget to water their plants which leads to bad growth and health of their plants. For ensuring complete development of plants it is necessary to know the amount of moisture present in the soil. Soil moisture sensor senses the amount of moisture present in the soil.

Soil Moisture sensor

Soil moisture sensors (Wikipedia) measure the volumetric water content in the soil. The two probes of the moisture sensor are connected to LM293 comparator. This sensor uses the two probes to pass current through the soil, and then it reads that resistance to get the moisture level.

Soil Moisture sensor

How does soil moisture sensor work?

The Soil Moisture Sensor uses capacitance to measure the water content of soil (by measuring the dielectric permittivity of the soil, which is a function of the water content). The output from the sensor is an analog voltage value between 0 to 5V, which is linearly proportional to the moisture percentage of the soil.

Moisture Percentage = (Analog voltage * 100) / 1023 % 

Circuit Diagram for the soil moisture sensor

The circuit of the soil moisture sensor is explained below:

  • + pin of the comparator is connected to the 5V pin of the evive board.
  • – pin of the comparator is connected to GND pin of the evive board.
  • Out of AO(Analog output) and DO(digital output) AO pin is connected to the analog pin(here in our code we have used A0 pin) of the evive board.

PictoBlox Code

In this example, we will display the moisture value on evive TFT Display:

  1. Open PictoBlox.
  2. Select the board as evive:
    Selecting Board
  3. Connect the evive.
    Select Port
  4. Make two variable to store the Sensor Value and Moisture Percentage:
    New Variable Pictoblox
  5. Create the following script using when evive starts up block:
    Soil Moisture
  6. Upload the code onto evive:
    Upload Code

You can download the PictoBlox program from here: Displaying soil moisture value on evive TFT Display

Output

The soil moisture percentage is displayed on the TFT Display.
soil moisture sensor

Share this Tutorial
Share on facebook
Facebook
Share on twitter
Twitter
Share on google
Google+
Share on pinterest
Pinterest
Share on reddit
Reddit
Share on print
Print
Related Projects & Tutorials
How to interface Water Flow sensor with evive
In this tutorial, we will discuss how to interface water flow sensor with evive. How water flow rate, current water flowing and output water changes? The water flow rate in liters per hour, current water flowing and output water flowing data flowed since starting is displayed on the screen. All the answers are given in this tutorial.LET'S BEGIN...
ldr circuit
How to interface LDR sensor with evive ?
The tutorial will shows how to interface ldr sensor with evive and controlling the led state using the sensor.How does ldr sensor works? How to control lights using ldr sensor? All the answers are given in this tutorial.Let's begin...
LCD setup with evive
How to interface 16 X 2 LCD with evive?
This tutorial discusses how we can interface 16 X 2 with evive . How we can display the data on the lcd? All the answers are given in this tutorial.LET'S BEGIN....
All articles loaded
No more articles to load
Featured Projects
DIY Mini Safe Locker Using Servo
DIY Mini Safe Locker Using Servo

Make your own DIY mini-safe locker using components from the evive Starter Kit and control it using evive’s slide switch!

All articles loaded
No more articles to load

Leave a Reply

Close Menu
×

Cart