Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add emergency relais support, inspired by pr60 #198

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fishpepper
Copy link

Addresses issue #17 by adding functionality for an in-line mechanical safety relay.
Similar to #60 but updated to current main code and without the led output stuff.
Only tested in lab setup as my oven is not finished yet... Use at your own risk.

@@ -346,6 +353,7 @@ def reset(self):
self.heat_rate_temps = []
self.pid = PID(ki=config.pid_ki, kd=config.pid_kd, kp=config.pid_kp)
self.catching_up = False
self.emergency_trigger()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why an emergency is triggered here. I think you are using this to shut down power to the kiln relays after each heating cycle.... which seems odd to me.

I would think you would want to shut power to the kiln down when there is a known problem, not 20,000 times during a firing.

Maybe I'm misunderstanding the change?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most everything else looks fine. I would like to see this as optional... so it needs to be tested with and without the setting existing in config.py. It should not error out if the setting does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants