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 lookup table for 50Hz #25

Open
monte-monte opened this issue Jan 30, 2022 · 1 comment
Open

Add lookup table for 50Hz #25

monte-monte opened this issue Jan 30, 2022 · 1 comment

Comments

@monte-monte
Copy link

I want to adapt LUT for 50Hz mains, but can't figure out exactly what equation you were using for it:

static const uint8_t powerToTicks[] PROGMEM = {

The one I have gives similar results but not quiet the same. I am using acos(1-(2*(level/100))) to calculate angle and then convert it to delay in microseconds, but it seems to ramp up more gradually, though the overall shape of the curve is the same.

@alexsartin
Copy link
Contributor

alexsartin commented Jan 31, 2022 via email

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

2 participants