Skip to main content

Micropython routines for automated plant watering and monitoring.

Project description

growmax

Micropython routines for GrowMax plant watering automation boards by opensensor.io

Installation

To install the growmax package on a Pico or Pico W, first install the appropriate firmware for Micropython that is for your device.

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 for growmax Install the latest version of growmax.

Now create a new file and save it to your device as main.py

Next you need to create the config file. Open the sample config file from the pico device, it is at /lib/growmax/config.py

Now save this file to the root of your pico device as config.py

Modify any relevant config values to suit your needs for automatic plant watering.

Verification

Test the routine by running the main.py in 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 the main routine.

Power and Safety

The growmax is 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 License

Copyright (c) 2022, opensensor.io

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. 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.

  3. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

growmax-1.0.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

growmax-1.0.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file growmax-1.0.2.tar.gz.

File metadata

  • Download URL: growmax-1.0.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for growmax-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4a6790b2cedc47828adc77410495d306672bb25ebe483461643fc6aaa44bba0a
MD5 94f500367a52702fe35d2ef5b137f795
BLAKE2b-256 3d37909e9487b33259fac52d4a13f7ccc7320417655b95a650d38e1fa34ed862

See more details on using hashes here.

Provenance

File details

Details for the file growmax-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: growmax-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for growmax-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 74036ac9cd64020e197948a737e8bd5863e1529ba1743687af4380e88d14b5fe
MD5 d182f9f14987ba177373b19912b0fed4
BLAKE2b-256 c7ab5766237f14ff07bfe024f17db1117b7c8558ff4b1b0f837672d552e9dca4

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page