2017 Mar 10, 03:00 AM
Actually the number of valves is adjustable in SIP.
If you go to Options > Station handling and change the number of expansion boards. Each "expansion board" adds 8 stations so if you change the number of expansion boards from 0 to 1 you will now have 16 stations...
The Signaling capability is shown in the signalling examples plugin. Look in SIP/plugins/signaling_examples.py and you will see simple functions for each signal that SIP sends.
The function under ### valves ### receives a signal when SIP tries to start or stop a station/valve. That can be used in a plugin to send the modbus command to your slave arduinos.
The power_node.ino arduino code is used for controlling 4 or 8 relays. You will need to set the code for "active low" relays for the sainsmart relays (lines 17 and 18 in the code)
There is a relay_board plugin for SIP that you can use with your sainsmart relays:
https://github.com/KanyonKris/relay_board/wiki
You can install the plugin from Plugins > manage plugins > Browse more plugins. This will get you started with the valves close to your Pi.
Let me know how things are going.
Dan
[url=https://gist.github.com/Dan-in-CA/c873883d734caea5ff52ad11d5875b36][/url]
If you go to Options > Station handling and change the number of expansion boards. Each "expansion board" adds 8 stations so if you change the number of expansion boards from 0 to 1 you will now have 16 stations...
The Signaling capability is shown in the signalling examples plugin. Look in SIP/plugins/signaling_examples.py and you will see simple functions for each signal that SIP sends.
The function under ### valves ### receives a signal when SIP tries to start or stop a station/valve. That can be used in a plugin to send the modbus command to your slave arduinos.
The power_node.ino arduino code is used for controlling 4 or 8 relays. You will need to set the code for "active low" relays for the sainsmart relays (lines 17 and 18 in the code)
There is a relay_board plugin for SIP that you can use with your sainsmart relays:
https://github.com/KanyonKris/relay_board/wiki
You can install the plugin from Plugins > manage plugins > Browse more plugins. This will get you started with the valves close to your Pi.
Let me know how things are going.
Dan
[url=https://gist.github.com/Dan-in-CA/c873883d734caea5ff52ad11d5875b36][/url]