Temperature control - Deadband #130
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Value Deadband doesn't work as expected. There is no hysteresis.
Can you explain what do you mean by that? What you expected from the dead band?
Current implementation is really just a simple dead band, for example, if your set point is 50 with 5 dead band on a heater setup, the temperature control should turn on the heater when the enclosure temperature reaches 45 and turn off when the temperature reaches 55. Between 50 + or - 5 the temperature will just keep the previous heater status.
The current implementation would have hysteresis on both sides of the set point...
Yes that is exactly what it should do.
But i used it for cooler / fan control.
I entered 30 degrees with 2 degrees deadband.
Fan startet at 28 degree and stops again at 27.9
I expected that it starts at 30 and stops at 28 degrees.
Kindly regards
mit freundlichen Grüßen
Wolfgang RothAm 24.04.18, 19:17, Vitor de Miranda Henrique notifications@github.com schrieb:
Can you explain what do you mean by that? What you expected from the dead band?
Current implementation is really just a simple dead band, for example, if your set point is 50 with 5 dead band on a heater setup, the temperature control should turn on the heater when the enclosure temperature reaches 45 and turn off when the temperature reaches 55. Between 50 + or - 5 the temperature will just keep the previous heater status.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/vitormhenrique/OctoPrint-Enclosure","title":"vitormhenrique/OctoPrint-Enclosure","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/vitormhenrique/OctoPrint-Enclosure"}},"updates":{"snippets":[{"icon":"PERSON","message":"@vitormhenrique in #130: Can you explain what do you mean by that? What you expected from the dead band?\r\nCurrent implementation is really just a simple dead band, for example, if your set point is 50 with 5 dead band on a heater setup, the temperature control should turn on the heater when the enclosure temperature reaches 45 and turn off when the temperature reaches 55. Between 50 + or - 5 the temperature will just keep the previous heater status."}],"action":{"name":"View Issue","url":"https://github.com/vitormhenrique/OctoPrint-Enclosure/issues/130#issuecomment-384011417"}}}
That's what it should be ;-)
But not only for heater, for fan too but this doesn' work.
I have heater and cooler.
I am on the road.
Later i will have a try with deadband on heater.
Kindly regards
I guess a better implementation would be implementing a regular temperature control dead band.
And only have the dead band when turning "off" the temperature control, instead of on both sides.
My intention is to autostart the heater before printing to get faster the right temperature for printing.
Say 30 degrees. After the point is reached. Heater goes off and the heatbed of the printer is the only heat source.
For now the temp should regulated by fan at 35 degrees with 2 degress oh hysteresis. So it should start at 35 and stops at 33.
Hope this will help for explanation.
mit freundlichen Grüßen
Wolfgang RothAm 24.04.18, 19:20, Vitor de Miranda Henrique notifications@github.com schrieb:
The current implementation would have hysteresis on both sides of the set point...
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/vitormhenrique/OctoPrint-Enclosure","title":"vitormhenrique/OctoPrint-Enclosure","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/vitormhenrique/OctoPrint-Enclosure"}},"updates":{"snippets":[{"icon":"PERSON","message":"@vitormhenrique in #130: The current implementation would have hysteresis on both sides of the set point..."}],"action":{"name":"View Issue","url":"https://github.com/vitormhenrique/OctoPrint-Enclosure/issues/130#issuecomment-384012583"}}}
I changed the implementation to follow a more regular hysteresis approach following this: https://www.ia.omron.com/support/faq/answer/53/faq00549/
Uninstall and intall the plugin again and give it a try...
Changes are listed here:
208d4d800cWith this i think it will accomplish what you expect, but slightly change the heater.
If the temperature is set to 50, with 5 dead band, it will turn off the heater when the temperature reaches 50 and turn it on again when it turns 45.
For the cooler it would do the opposite.
Is there a way to log the temperature from sensoŕ and the gpio outputs ?
Not really.
If you enable debug mode it will log temperature reading and status change on the main octoprint log, but it will be a pain to put that information together cleaning the other data.
And it would be great if the status of the temperature controls can be seen on the webpage like the normal gpio's.
I mean if they are on or off.
i enabled the debug mode and will have a try again, because it hasn't worked yet
ok, i tested this time only with fan as cooler at 30 degrees with 2 degrees deadband.
what happened ?
fan started at 30 degrees and it goes on for 10 seconds, stops for 10 seconds, starts again for 10 seconds and so on.
This happened just the temperature reaches 28 degrees..
please find attached the octoprint logfile
kindly regards
octoprint.log
Finally fixed this issue and properly tested.
thx.
works perfect