Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modbus Plugin
#4
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
Reply


Messages In This Thread
Modbus Plugin - by cyberthom - 2017 Mar 07, 03:54 PM
RE: Modbus Plugin - by dan - 2017 Mar 07, 10:54 PM
RE: Modbus Plugin - by cyberthom - 2017 Mar 08, 10:30 AM
RE: Modbus Plugin - by dan - 2017 Mar 08, 04:41 PM
RE: Modbus Plugin - by cyberthom - 2017 Mar 09, 07:11 PM
RE: Modbus Plugin - by dan - 2017 Mar 10, 03:00 AM
RE: Modbus Plugin - by cyberthom - 2017 Mar 23, 09:50 PM
RE: Modbus Plugin - by dan - 2017 Mar 24, 04:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)