I will be happy to help you get this working.
What version of SIP (OpenSprinkler) are you using? Newer versions of the software include a signalling capability that can send information to a plugin to tell it when stations are switched on or off.
I have been using MODBUS on a different but related project so I am familiar with MinimalModbus and SimpleModbusSlave.
Are you using relays to control your valves? I have some code I can share with you to help you get things working.
You are right that moisture sensors would need a separate plugin. I have an Arduino sketch that can read up to 8 sensors including moisture, temperature and humidity. The Arduino code I have is written for Arduino Micro/Leonardo but the only thing that would need to be changed for other Arduinos is the reference to the serial port (serial instead of serial1).
You can find the Arduino code on GitHub:
https://gist.github.com/Dan-in-CA
There is also some Python code for controlling relays over MODBUS.
Dan
What version of SIP (OpenSprinkler) are you using? Newer versions of the software include a signalling capability that can send information to a plugin to tell it when stations are switched on or off.
I have been using MODBUS on a different but related project so I am familiar with MinimalModbus and SimpleModbusSlave.
Are you using relays to control your valves? I have some code I can share with you to help you get things working.
You are right that moisture sensors would need a separate plugin. I have an Arduino sketch that can read up to 8 sensors including moisture, temperature and humidity. The Arduino code I have is written for Arduino Micro/Leonardo but the only thing that would need to be changed for other Arduinos is the reference to the serial port (serial instead of serial1).
You can find the Arduino code on GitHub:
https://gist.github.com/Dan-in-CA
There is also some Python code for controlling relays over MODBUS.
Dan