Studsministern / 1DT305-Applied-IoT-Project

0 stars 0 forks source link

[FEATURE] Notifying the user when soil moisture is low and high #1

Open Studsministern opened 1 year ago

Studsministern commented 1 year ago

Feature:

By knowing the lower recommended limit of soil mosture for a specific plant, the user could then be notified when the plants need to be watered. By knowing the upper recommended limit, it could also be possible to give feedback to the user if a plant has been watered too much.

Problem:

The read_u16() function for reading measurement from the soil moisture sensor will give values between 0 and 65535. These limits of 0 and 65535 correspond to 100% moisture (no conductivity) and 0% moisture (almost no resistance), respectively.

However, in the first test a value of about 47000 was measured when a plant was very dry and needed water. And a value of about 22000 was measured just after the same plant was watered sufficiently. Testing is therefore needed to see what values correspond to a plant needing to be watered, and what values correspond to the plant being sufficiently watered. This probably differs quite a bit between different plants as well.

Solution:

The simplest way to do this may be to plot the values over several watering cycles and finding what the lower and upper limits should be for each specific plant.