Git Product home page Git Product logo

watering's Introduction

Plant watering with Raspberry Pi

This is the "watering" script to taking care of our plants controlled by a Raspberry Pi. The python script works on Raspberry Pi 2, Zero W (1/2) and above with pump, relay and magnetic switch.

Explanation

"watering.py" is the main control script on the Pi. Put it in a separate directory ("/home/pi/scripts") and start it after the Pi boots up.

"index.php" is our PHP script for our web interface. Put in a specific directory under the document root of your webspace. After that you can remotly control the Pi putting this URL to the adressbar of your browser.

Blink codes

See it on the top gadget LED...

  • blink 1x - valve1 on - or activate control
  • blink 2x - valve2 on - or deactivate control
  • blink 3x - reboot
  • blink 4x - shutdown
  • static LED on/off - start/stop watering

Schemes

Documents in the schemes directory:

circuit.pdf - electronic circuit diagram
waterpipes.pdf - water pipes scheme

Parts list

  • Raspberry Pi Zero W (1/2)
  • centrifugal pump with 1.2m head
  • magnetic valves (2x)
  • relais modules (3x)
  • ADC similiar ADS1115
  • moisture sensor v1.2 (2x)
  • power supply 5V
  • housing, cables
  • various hoses, clamps
  • adapters, control valves, ground spikes

Images

Images in the image directory:

watering.jpg - ready solution on a barrel
controlunit.jpg - control unit under construction
web.png - web frontend

watering's People

Contributors

swenae avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.