SIP
Initial setup and config From OSPi - Printable Version

+- SIP (https://nosack.com/sipforum)
+-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1)
+--- Forum: Installation and set up questions (https://nosack.com/sipforum/forumdisplay.php?fid=2)
+--- Thread: Initial setup and config From OSPi (/showthread.php?tid=158)



Initial setup and config From OSPi - Liam - 2019 Jun 13

Hi all! I’ve been looking at using OpenSprinkler Pi edition however I’d like to make my own relay units and so far haven’t managed to work out where I would even start with this. I then came across SIP which has now got me interested in running this instead. 
I have a few questions to start with though which I hope is ok. First of all is there just a generic setup and user guide?
Secondly, to use multiple relays I believe I need to use either shift registers or I2C chips? Would sometime be able to point me in the direction as to where I would set this config up? I’m hoping that in doing this I would be able to use this method for moisture sensors too. 

Look forward to starting this project Smile
Thanks


RE: Initial setup and config From OSPi - dan - 2019 Jun 13

The SIP wiki contains the setup and documentation info:
https://github.com/Dan-in-CA/SIP/wiki

Once you have SIP installed you can access the documentation from the ? (help) button at the bottom of the pages.


There is a menu item "A simple DIY relay interface" which describe how to use shift registers to control relay boards.

You can also connect up to 16 relays directly to a Pi using one of the relay plugins.


RE: Initial setup and config From OSPi - Liam - 2019 Jun 14

Great! Thanks Dan. After having a look around am I right in thinking that the whole of SIP is written in python?


RE: Initial setup and config From OSPi - dan - 2019 Jun 14

The core SIP program is written it Python with the UI in JavaScript + jQuery.

SIP uses the web.py framework:
https://webpy.readthedocs.io/en/latest/

At the present time both web.py and SIP are being updated to Python3


RE: Initial setup and config From OSPi - Liam - 2019 Jun 14

Thank you Dan! Really looking forward to getting started with this now. Just need to get a few shift registers and other bits and bobs as I’ve already got the Pi, relays and moisture sensors. I did see a post about there being a few issues with python 3 and the JSON( if my memory is correct). Guess I’ll have to start learning python now! Just another language


RE: Initial setup and config From OSPi - dan - 2019 Jun 15

What type of moisture sensors are you planning to use?

I have done some testing with TDR type sensors:
https://www.vegetronix.com/Products/VH400/

and Watermark sensors (resistance type):
https://www.irrometer.com/pdf/sensors/403%20WATERMARK%20Sensor-WEB.pdf

The tricky part is to have a way for the sensors to be located at some distance from the irrigation controller.


RE: Initial setup and config From OSPi - Liam - 2019 Jun 15

I’ve just got a cheap set off amazon for testing to start with QLOUNI 5 pcs Soil Moisture Sensor... https://www.amazon.co.uk/dp/B077FGS3C1?ref=ppx_pop_mob_ap_share . They have a analogue to digital converter. My plan is to get the initial system up and running tonight and then explore the coding as, I’ll be honest, I’ve not got any clue with python but happy to learn. I also don’t know the maximum length of cable runs or anything yet. But it’s all learning Smile