Require sustained coil current before relay switches#250
Open
esaruoho wants to merge 1 commit intopfalstad:devfrom
Open
Require sustained coil current before relay switches#250esaruoho wants to merge 1 commit intopfalstad:devfrom
esaruoho wants to merge 1 commit intopfalstad:devfrom
Conversation
Author
|
@pfalstad any takes on this? |
|
Why is a threshold timer needed? Because of the self-inductance of the coil, there is a noticeable delay before the current exceeds the "activate" threshold, I can see it both in real measurements measuring when the NC contact starts to open, and in simulation's scope. And does the back-EMF mentioned in #67 contain enough energy for the relay to start moving? |
Brief back-EMF transients from one relay coil could incorrectly trigger another relay because the model switched instantly when current crossed the threshold. Now the coil current must remain above/below the on/off threshold for at least half the switching time before the relay starts moving, matching real relay inertia. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
416ff57 to
a31cb62
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
Fixes #67
🤖 Generated with Claude Code