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

SOLVED: TRIAC delayed-trigger compensation routine #4

Open
f4lc0n-asm opened this issue Feb 11, 2025 · 0 comments
Open

SOLVED: TRIAC delayed-trigger compensation routine #4

f4lc0n-asm opened this issue Feb 11, 2025 · 0 comments

Comments

@f4lc0n-asm
Copy link

Hello,

if a TRIAC delay is decreased linearly, the output power delivered to a resistive load does not increase linearly. I thus developed the following compensation routine:
Input: Relative power (0: off up to 1: full power)
Output: Linearized relative TRIAC trigger delay (0: start of half sine wave up to 1: end of half sine wave, 1 when input < 0, 0 when input > 1, NaN when input is NaN)
Relative error of power delivered to the resistive load: < 1e-5

plin.zip (7-Zip)

Original post

Cheers!

f4lc0n

P.S.: If you know where to buy this out-of-stock AC Dimmer for Home Assistant, please, let me know. 1 piece enough for now, better 2. Thank you!

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

No branches or pull requests

1 participant