Plant Problem Project: Using a Moisture Sensor to detect hydration levels in a plant

     This project was based around using a moisture sensor to detect water levels in a plant pot, and using the outputted moisture levels to turn a LED on correctly based on the said water level.



The three LED's used were the Red, Yellow, and Green. Red was a critical water level signal, at 1/3 and below moisture level. Yellow is the warning light, between 1/3 and 2/3 moisture level. Green is ok water level, and 2/3 and above moisture level. The Moisture sensor is the first sensor in this series that is not from the base Arduino kit, and is something that had to be sourced externally, through Amazon.


The project was simple to make, and didn't require much on the hardware engineering side. I plugged the input side of the LED's into the D2, D3, and D4 pins for the Red, Yellow, and Green LED's respectively. I also plugged them into ground as-well. The moisture sensor required three inputs to function. One is the standard ground, the VCC is connected to the D8 pin, and the Signal output pin is connected to the A0 pin, so that way we can output an analog result to the code.


The code was based around decoding the analog output from the moisture sensor, and then turning on the appropriate LED for each. The code loops the current value of the moisture sensor, and determines if it exceeds or falls below the threshold for the LED's, and will turn them on accordingly. I used this youtube video below to help with the programming of this project, and as a guide for when things went wrong.




This project was a great starting off point for the future projects for this class. I learned how to use the moisture sensor for the Arduino, and how to apply it to make understanding your plants current health easier. I had very little trouble with this project, except for figuring out how to dry out my "plant pot" to demonstrate the project.



Comments

Popular posts from this blog

IGME 480 Final Project Post: Road Shadows

P1 Completed Project Post

P1 Planning Blog Post