more G-Labs products

Author Topic: Basic steps to implement a shutter  (Read 963 times)

January 08, 2016, 11:38:41 PM
Read 963 times

MikeS

  • *
  • Information
  • Newbie
  • Posts: 4
Hey all,

I have a simple question regarding the implementation of shutters.
I already tried to answer by myself or find a similar post but I couldn't find something.
Maybe I think the wrong way but how can I add a shutter widget to control two relais (up and down)?

I use the raspberry pi 2 and the MCP23017 for switching the relais.
The shutter only get controlled by up and down, end switches are adjusted inside the shutter.
Maybe later it would be great to adjust the shutter by setting percent and control the height by time. But I can try to figure out this by myself after I understood the basic concept.
I only need a widget to control these two outputs.

Had anybody a similar problem and could give me a hint how to solute this?

Thanks a lot!

January 09, 2016, 05:27:56 PM
Reply #1

funworld

  • *
  • Information
  • Newbie
  • Posts: 20
Hello I modification a Thermostat Widget !
but never finish this, you can control up down and stop, maybe this help you!
I use the similar hardware


January 14, 2016, 01:30:56 PM
Reply #2

MikeS

  • *
  • Information
  • Newbie
  • Posts: 4
Hello funworld,

thank you very much.
I will test it as soon as my son let me do this ;-)

I just had a look over the code but one more question:
How do I declare the outputs for up and down?

January 15, 2016, 08:46:31 PM
Reply #3

funworld

  • *
  • Information
  • Newbie
  • Posts: 20
Hello MikeS,
With using Web Service calls! here my hgx.
sorry im not a programmer, but works!