logo elektroda
logo elektroda
X
logo elektroda

Blockly - how to set the relay to switch on when a certain state lasts longer than a certain time ?

sznickers 45 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21743177
    sznickers
    Level 11  
    Hi,
    i am trying to create a circuit in Blockly where a relay will be switched on if temp1>32 and this condition lasts for at least 30 seconds.
    In this circuit I've created, all it needs to do is that if temp1 reaches 32.1*C and it doesn't matter that this condition lasts even 1 sec it counts down and after 30 secs it turns on the relay.
    Blockly diagram with temperature condition and delayed relay activation
    How to do this ?

    Added after 34 [minutes]:

    I don't know I'm testing, but it's probably that "Random within" :
    Blockly diagram with temp1 > 32 condition and delayed relay activation
    That is, the temp1>32,1 condition must last continuously for at least 2 minutes.
  • ADVERTISEMENT
  • #2 21743232
    kindlar
    Level 42  
    When the temp reaches 31 it should start timing -----> when the timer reaches > 30s it's off.
    This is how it seems to me.
    You have a condition for temp less than 31, the opposite of what you write.
ADVERTISEMENT