Page 1 of 1

Need help with my blockly setup

Posted: Sunday 27 January 2019 18:24
by tjabas
Hi!

i have managed to automate my stove, and i have some problems with my blockly config.
Skärmklipp.PNG
Skärmklipp.PNG (16.28 KiB) Viewed 511 times
as for now, the electric motor starts when the temperatur goes over 60 degrees, but the problem is that the motor continues to go everytime the temp sensor register an increase in the temperatur, how can i do the blockly setup so the motor starts only one time when it goes over 60 degrees?

Re: Need help with my blockly setup

Posted: Sunday 27 January 2019 18:36
by tjabas
I must ad that the motor that i controlled by the blockly is automatically turn of after 1 second, so it is not continusly running, but with this blockly setup it keeps turning on every time the temperatur goes over 60 degrees

Re: Need help with my blockly setup

Posted: Sunday 27 January 2019 22:01
by niki_lauda
tjabas wrote: Sunday 27 January 2019 18:24 Hi!

i have managed to automate my stove, and i have some problems with my blockly config.
Skärmklipp.PNG

as for now, the electric motor starts when the temperatur goes over 60 degrees, but the problem is that the motor continues to go everytime the temp sensor register an increase in the temperatur, how can i do the blockly setup so the motor starts only one time when it goes over 60 degrees?
Try adding in the condition like. AND IF THE SWITCH = OFF and in the second THE SWITCH = ON