I first began my project by looking at posts by people who had created something similar and ordering materials. I knew I wanted my planter box to be indoors and to go on my windowsill, so that greatly constrained the size of the box. Once I figured out the size of the box, I began to research what I could plant. This introduced me into the very complicated world of gardening, involving root-depth, specific soil moisture, and compatible plants. Since I had a size constraint, I began with herbs that had the shortest root depth. Different sources said different measurements, which led to lots of back and forth. Then, I decided I wanted herbs that I could actually use, like lavender, which was immediately ruled out after I realized how large it was. I debated planting multiple plants for a short amount of time after I realized that I would then need two different pumps to accomodate their different watering periods. Finally, I settled on chives, an herb that I could actually use, with a short root depth, and peak planting season was in late summer. My next step was to begin calibrating the sensor.
Here we have the sensor hooked up to the Arduino and 3 LEDs. When the sensor receives a value considered "dry", the red LED will light up. When the sensor receives a value considered "good", the yellow LED will light up. When the sensor receives a value considered "wet", the blue LED will light up. Since these were based on random ranges, I got some soil and began testing the sensor and calibrating it.
To obtain a "dry" reading, I left the soil outside for two days. Then, I watered it and got a baseline for a "wet" reading. Once I had those two numbers, I was able to get an estimate for the "good" value. After this, I took a trip to a plant store near me to buy chive seeds. After some research, I discovered that the best soil combination for indoor chives is one part compost, one part pumice, and two parts indoor potting mix. Thankfully, I had all three items in my shed!
After I mixed the compost, pumice, and potting mix, I planted the chives in two groups, eight inches apart (marked by the two toothpicks).
This leads us into my next step, which was hooking up the motor.
First watering! I cut holes into the pump to account for the spacing between the two groups of chives. After this, I updated the coding to be more accurate, having the sensor check the soil moisture once an hour and if "wet", watering for thirty seconds.