logo elektroda
logo elektroda
X
logo elektroda

Domoticz Arduino Uno MySensors: Prevent Simultaneous Up/Down Relay Activation for Blinds

klakier_2006 4164 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16962609
    klakier_2006
    Level 9  
    Hi. I have domoticz installed on a raspberry pi 3 and want to use it for simple home automation. I have an arduino uno connected to the raspberry via usb and am using the mysensors library. The problem concerns the control of window blinds. I want to control the tady wired roller blinds using relays controlled by the arduino and additionally retaining the ability to open and close the blinds using buttons. I allocate two relays for each roller shutter in the arduino - one roller shutter up, the other roller shutter down. Each of the relays is assigned its own on/off button in the domoticz. However, this solution is flawed because it is possible to switch on the relay responsible for raising and lowering the roller shutter at the same time. The question is how to make it so that switching on one relay automatically gives information to the arduino about the need to switch off the second relay.
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 16964707
    kj1
    Electrician specialist
    The manual control buttons should be "passed" through the arudino.
    And in the code, before each relay is switched on, add a line to switch off the opposite relay.
    I also think you should move this post to the section dealing with arduino.
    You should get more help there.
  • #3 16965358
    klakier_2006
    Level 9  
    Thank you for the hint. I am moving the topic.
ADVERTISEMENT