Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: OpenSprinkler on Standard Arduino Hardware #41614

    plainolddave
    Participant

    Hi everyone

    Dusting off an old post about modifying OpenSprinkler to run on hardware I had laying around โ€“ an Arduino Mega 2560, Wiznet 5100 Ethernet and SD Shield, Freetronics LCD, DS1307RTC etc. After 2 years of stable operation on the old code, I’ve decided to upgrade to the latest unified firmware V2.1.6.

    The code, libraries and release notes are all now up on Github here -> https://github.com/Dave1001/OpenSprinkler-Arduino

    You can use the regular Arduino IDE to build it, or even better it works with Visual Micro for Visual Studio 2015 (all the project files are included on GitHub)

    This version adds a couple of additional functions:
    – one version for WizNet5100 ethernet, and another version for ENC28J60 ethernet
    – ability to reboot daily to ensure stable operation
    – ability to display free memory on the LCD for debugging
    – heartbeat function to say ‘alls well’ – flashes an LED and the ‘:’ on the LCD time at 1Hz
    – ability to turn the watchdog timer on or off (refer to your reference documentation as to whether WDT is supported by the bootloader on your Arduino)

    If youโ€™re comfortable tinkering in C/C++ then I hope this is helpful for you โ€“ otherwise Iโ€™d just go buy an Opensprinkler from Ray ?

    Cheers

    Dave

    in reply to: OpenSprinkler on Standard Arduino Hardware #25355

    plainolddave
    Participant

    Hi everyone

    About a year ago I modded OpenSprinklerGen2 to run on hardware I had laying around – an Arduino Mega 2560, Wiznet 5100 Ethernet and SD Shield, Freetronics LCD, DS1307RTC

    The original version of this code was extremely stable and has been working flawlessly for almost a year now – this update to 2.0.7 adds the SD card logging functionality as of the github release from Ray on July 5th 2014.

    The code, libraries and release notes are all now up on Github as a fork here -> https://github.com/Dave1001/OpenSprinkler-Arduino

    If you’re comfortable tinkering in C/C++ then I hope this is helpful – otherwise I’d suggest just buy an Opensprinkler from Ray ๐Ÿ˜€

    Cheers

    Dave

    in reply to: OpenSprinkler on Standard Arduino Hardware #25363

    plainolddave
    Participant

    Hi again everyone

    Looks like we’ve all had the same idea to run on whatever hardware was lying around – thanks for your postings

    Have posted a new version above that seems to fix the stability issues( or get from here -> https://www.dropbox.com/sh/nkhbt81kyvycyzy/LUWh8It6Ph)

    For vladimird – can’t quite see what the issue was from the error messages so have zipped up a copy of the libraries I’ve been using that compile fine – maybe have another try and let me know how you go?

    Cheers

    Dave

    in reply to: OpenSprinkler on Standard Arduino Hardware #25357

    plainolddave
    Participant

    No worries – thanks Ray

    After testing for a week or so it seems to hang at odd intervals every two to three days. Working hypothesis for whats causing the issue is either:
    1) buffer overrun – I’d opened port 8080 to the internet so wondering if the input was being flooded occasionally? (i.e. port scanners, malware etc) – have closed it now to see if makes any difference
    2) slow memory leak (sigh)

    Will look at some diagnostics when I get a chance , however in the meantime a watchdog will do the trick to keep it running

    In fairness – porting to the W5100 ethernet is just a bit of fun to reuse what I had…. wouldn’t be recommending to do it this way if you were staring from scratch (just order an opensprinkler! ๐Ÿ˜€ )

    Cheers

    Dave

Viewing 4 posts - 1 through 4 (of 4 total)