Week 25 : Fine Tuning

The new code averages the amount of water of an hour and waters
if it is considered dry. The code will run indefinitely.
With all physical components accounted for, I thought it would be good to revisit the code of the Aquino before doing anything (with some wattage testing lined up next). When looking at my old code I noticed that it was calculating the average amount of water every 30 seconds. One would think that this would yield much better data as it is in such smaller intervals, but after looking as some old notes of mine from last year regarding the water usage it is clear that might now be the case. As the pump would be releasing water dependent on these 30 second readings, if the soil was just watered it would still read the plant as being dry as not enough water has permeated in the soil. This is both attributed to how water moves in soil needing to go through all the nook and crannies, and how the sensor detects water by how conductive the soil is as a whole. If the Aquino were to run with this old code a plant would be drowned in less than 2 minutes. Because of this, I have chosen this week to study watering cycles of radishes and found the code listed above to work much better for my purposes.

Comments

  1. Good work with noting the issue with the old code. Logic errors can be so much more of a pain than run-time errors and cause more notable issues with the output. I wish you the best of luck on your Aquino project!

    ReplyDelete

Post a Comment

Popular Posts