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

Using PWM and AC DImmer RobotDyn #1821

Open
ScreamZ opened this issue May 17, 2023 · 0 comments
Open

Using PWM and AC DImmer RobotDyn #1821

ScreamZ opened this issue May 17, 2023 · 0 comments

Comments

@ScreamZ
Copy link

ScreamZ commented May 17, 2023

Hi,

I've just purchased an AC DIMMER from RobotDync, I want to make a fade loop in order to get some glitchy effect.

Here is my test code using PWM

import { Board, Led } from "johnny-five";

const board = new Board({ repl: false });

board.on("ready", () => {
  const led = new Led(3);
  led.pulse(3000);
});

here is what it does (which I don't really get why!

IMG_1559.mp4

The blue LED on the dimmer is well dimming according to my pattern, but the red light is just ON until the PWM send 0 (then it stops). I'm unable to make it fade...

Do you have any idea why this can happen?

Also I'm noticing that the voltage is varying, but also the frequency (Hz)

IMG_1560.mp4

Might be related to the fact I'm not using Zero Cross pin ?

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