Giter Club home page Giter Club logo

opensprinkler-arduino's Introduction

Status - Under Test

Please note - V2.0.7 has been updated to the latest OpenSprinkler code. It seems to work OK but has not been extensively tested.

As an alternative - the 2.0.0 code is rock solid and works fine (albeit with a few less features).

OpenSprinkler-Arduino

This is a fork of Rays OpenSprinkler code thats amended to use alternative hardware:

  • Arduino Mega 2560
  • Wiznet W5100 Ethernet with onboard SD Card
  • Freetronics LCD Keypad Shield
  • Discrete IO outputs instead of using a shift register

Version Info

Version: Opensprinkler 2.0.7

Date: July 5, 2014

Repository: https://github.com/Dave1001/OpenSprinkler-Arduino

License: Creative Commons Attribution-ShareAlike 3.0 license

Code Mods

This code implements a minimal set of functionality to replace the EtherCard class libraries and all underlying ENC28J60 code files used by Ray in the OpenSprinkler2 library.

All blocks of code that have been amended for the alternative hardware are marked with "MOD"

If you need to reverse out changes to go back to the normal Opensprinkler config, just remove the compiler switches at the start of 'defines.h' to go back to Rays code.

Hardware

You'll need:

  • Arduino Mega 2560 (or any Arduino with enough progmem to handle binary sketch size of around 65Kb compiled) from Arduino Mega

  • Wiznet W5100 Ethernet Shield (i.e. Arduino 'standard') - $7 from Ebay W5100

  • Freetronics LCD Shield from Freetronics LCD

    This is a fairly common 16x2 LCD, however the main difference is the buttons are onboard the shield and are all sampled using one analog pin (each button has its own ADC voltage read from pin A0 to indicate which one was pressed).

  • Any DS1307 compatible Real Time Clock - $1 from Ebay DS1307

  • Any 5V relay card that can be driven from Arduino digitial output pins.

  • Power supplies(s), ethernet switch, bits & pieces to hook it all up

Issues and Limitations

  • hostname isn't implemented for opensprinkler - you'll need to use IP to access (this seems to be a limitation of the Arduino Ethernet library

  • port number is currently hard coded (default is 80) until I figure out how to change it dynamically when defining the EthernetServer object

  • the number of discrete pins is pre-defined as 16 maximum - you'll need to edit OpenSprinklerGen2.cpp and defines.h if you want more - make sure they're in multiples of 8

Installation

To install and compile this code you need:

  1. Arduino IDE http://arduino.cc/en/Main/Software

  2. Libraries:

Get them all here -> https://github.com/Dave1001/OpenSprinkler-Arduino/tree/master/Controller_W5100_V_2_0_7/libraries

Or download them from:

opensprinkler-arduino's People

Contributors

dncampo avatar

Stargazers

 avatar

Watchers

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