Giter Club home page Giter Club logo

wisp_irrigator's Introduction

forgeworkgaia Wisp Library

Irrigator

Hardware: Arduino Uno

This code is designed to use cycles in controlling a simple 3 wire valve.

Required Libs

Repo: wisplib_valve_3wire

Usage

Cycles

Nature runs in cycles; wisps are built so.

Cycles are set up on a per valve basis.

Defining a cycle

Find the switch case in the Valve_3wire library, required for this wisp.

Each case you define is used to create a custom cycle, in the event you have multiple valves.

The default is case 1, which turns the valve on for five minutes every hour around the clock.

How the code works

Every five seconds this code steps into a function called ValveRun, which tests if its time to take action. Each valve that's defined will need a corresponding run function in loop().

Define your valve:

Valve compostValve(1,7,8,1);
Valve (int incId, byte incValveOnPin, byte incValveOffPin, int incMode)
incID: Set a unique id for this valve.

incValveOnPin: Pin on arduino that turns valve on.

incValveOffPin: Pin on arduino that turns valve off.

incMode: Sets cycle characteristics.

And then make sure you place the following in loop():

ValveRun(compostValve, currentMillis);

wisp_irrigator's People

Contributors

ghuffman avatar

Watchers

 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.