2016 Nov 08, 11:41 PM
Hi,
I just wanted to put up a short note that I have started developing a plugin to control a relay board that is interfaced to a Raspberry Pi using a MCP23017 GPIO expander.
The code is very much in its infancy at the moment, and is really just a hack of the relayboard plugin.
My approach has been to abstract the hardware interfacing elements out of the SIP plugin and rather have it call 2 C programs which respectively initialise the MCP23017, and control valves. This has the side effect that the plugin could be repurposed to interface to a different hardware layer by purely replacing the 2 C programs.
The code still needs tidying, but it looks like it is working so far.
I would be interested to know if anyone else has a use for this plugin. (That would motivate me more to get it to a point where it can be redistributed.)
Regards,
Geoff.
I just wanted to put up a short note that I have started developing a plugin to control a relay board that is interfaced to a Raspberry Pi using a MCP23017 GPIO expander.
The code is very much in its infancy at the moment, and is really just a hack of the relayboard plugin.
My approach has been to abstract the hardware interfacing elements out of the SIP plugin and rather have it call 2 C programs which respectively initialise the MCP23017, and control valves. This has the side effect that the plugin could be repurposed to interface to a different hardware layer by purely replacing the 2 C programs.
The code still needs tidying, but it looks like it is working so far.
I would be interested to know if anyone else has a use for this plugin. (That would motivate me more to get it to a point where it can be redistributed.)
Regards,
Geoff.