Package: growmax
growmaxMicropython routines for GrowMax plant watering automation boards by OpenSensor.ioTo purchase a Growmax board or four sourcing parts, visithttps://opensensor.ioInstallationTo install thegrowmaxpackage on a Pico or BananaPi Pico (ESP32S3), first install the appropriate firmware for Micropython that is for your device.Pico:https://micropython.org/download/rp2-pico/Pico W:https://micropython.org/download/rp2-pico-w/Ensure that you have Thonny IDE installed; for more information visit:https://thonny.org/Launch Thonny IDE with your device connected.Go to Tools -> Manage Packages and search forgrowmaxInstall the latest version ofgrowmax.Now create a new file and save it to your device asmain.pyIn this file invoke the main routine of growmax:from growmax.routine import main

main()Next you need to create your config file.Open the sample config file from the pico device, it is at/lib/growmax/config.pyNow save this file to the root of your pico device asconfig.pyModify any relevant config values to suit your needs for automatic plant watering.ConfigurationWATER_SENSOR_LOW_ENABLEDDefaultsTrue. Checks the low water level sensor before invoking the pumps.WATER_SENSOR_LOWDefaults22.  Which GPIO port has the Optomax water level sensor for low levels?  Supportedgrowmaxboard ports are 21 and 22Much more:Complete and latest default configVerificationTest the routine by running the createdmain.pyin Thonny IDE.  You should see output in the terminal and the program should not have any errors.Once you have verified the pico runs the code properly, your device is now plug and play ready.Simply supply 5V USB voltage by plugging the pico growmax board into a common USB wall wart and the pico will boot themainroutine.Power and SafetyThegrowmaxis designed with the pico power requirements in mind.   When modifying the application logic, it is important to realize:Pico max current is ~300 mA; when using the onboard pump ports and mosfets: ensure the pumps you source are 5V and draw less than 200 mA.Should you need to control higher powered pumps and equipment, it is recommended to pair with an I2C relay board for such use cases.The pico operates at 3.3V logic levels, however the pumps and water sensor ports are powered by the 5V VSYS.The water sensor ports are designed for the Optomax liquid sensor and have voltage dividers for an expected 4V -> 3.3V input back to the pico.BSD 3-Clause LicenseCopyright (c) 2022, opensensor.ioRedistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.