danieljudd / Pico-Watering-System

RP2040W Efficient Greenhouse Watering System

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pico-Watering-System

RP2040W Efficient Greenhouse Watering System

Why this exists: University project AND, I really wanted something to measure my plant's health in the greenhouse because I'm usually busy.

How it works + Features:

This system physically sits in a greenhouse and collects data locally on the Pico's 2MB of memory. It hosts a web service on a local network for accessible viewing of recently collected data and updates regularly. It can also run on batteries where 10k mAh = about 5 continuous days of runtime.

Optionally, this will actuate an attached relay to dispense water at a user-defined threshhold when soil becomes arid.

Grow lights can be attached which then turn on at dusk and watering actions will resume again in the morning.

Truncation of the file system can occur once the 2MB storage limit is approaching (fills in about a week), this will shift a batch of the newer data to the same, but vacated file. Allows system to run indefinitely (well, in testing it worked).

Wi-Fi reconnects every hour if connection is dropped, system will still run if this happens.

Use case (Greenhouse):

  • 24H statistical data collection and monitoring (easily import into spreadsheet for analysis)
  • Remotely observe problems in temperature, humidity, number of daylight-hours.
  • Good for a spotty Wi-Fi network connection
  • Automated plant care while away on holiday, etc.
  • Portable for smaller garden spaces
  • Care for fussy plants or micro-manage lots of seeds
  • More efficienct use of resources
  • Reduce over or underwatering and potential reduction in soil bacterial/insect problems

Hardware parts:

  • 3.3V Analogue light sensor (Any - with calibration)
  • 3.3V Analogue soil moisture sensor (Any - with calibration)
  • Digital temperature and humidity sensor (DHT11)
  • A case with side-gaps for sensors to sense but minimal moisture ingress
  • Relay (3.3V actuation) - 2-Channel was used but any number is fine
    • Water Pump (usually 12V)
    • Fan (Need big enough one for measurable airflow)
    • Lights (Use correct spectrum for growing)
  • (Optional) Battery x2 - Battery pack to power relays and one USB connection for RP2040

Configuration:

  • Use Updated MicroPython firmware on RP2040 W
  • Use Thonny:
    • Set Wi-Fi credentials - 'ssid' and 'password' fields
    • Set GPIO pins for your attached sensors or hardware
    • Comment in/out routines that are not applicable
  • Thonny console will show IP address on connection, or check your router

Images:

About

RP2040W Efficient Greenhouse Watering System

License:GNU General Public License v3.0


Languages

Language:Python 100.0%