Plant Moisture Monitor: a Grove Sensor Adapter project
The mindsensors Grove Sensor Adapter makes it easy to use a variety of unique Grove sensors with the EV3. Our custom block makes it easy to read the sensor from your program. Here is an example of using it with the Grove moisture sensor.
Here is our plant, and the EV3 using the moisture sensor below!
You can see here the Grove Sensor Adapter is used, with the moisture sensor in the soil.
If we take a numeric measurement, we can see that our plant is already pretty hydrated.
In any case, pouring in more water certainly made the measurement shoot up!
This was running a simple program to play a sound when the soil is too dry. Let's take a look at that now.
It only takes a handful of blocks to make this happen. First we use the Mindsensors GroveSensorAdapter block (default settings) to read the moisture level. Then we compare it with our baseline, 450 in this case. Based on this, the Case statement will play a sound if the plant needs water, and do nothing if it is fine. There is a ten second delay, resulting in a sound you can definitely hear, but isn't obnoxious.
Remember to water your plants! Or let the robots do it for you.
The thumbnail is from Sodaq.