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

EnttecOpenUSBDMXDriver #148

Open
ScreamZ opened this issue Jan 13, 2023 · 3 comments
Open

EnttecOpenUSBDMXDriver #148

ScreamZ opened this issue Jan 13, 2023 · 3 comments

Comments

@ScreamZ
Copy link

ScreamZ commented Jan 13, 2023

hello,

I'm using it with a 8-channel mode with that.
CLNB600_Cameo_DMX_Control_Table_EN.pdf

I'm just trying to move to proper position with a white light

import { DMX, EnttecOpenUSBDMXDriver, Animation } from "dmx-ts";
import { EnttecOpenDMXUSBDevice } from "enttec-open-dmx-usb";

const dmx = new DMX();

enum C {
  MechPan = 1,
  MechTilt = 2,
  Dimmer = 3,
  Strobe = 4,
  Red = 5,
  Green = 6,
  Blue = 7,
  White = 8,
}

(async () => {
  const universe = await dmx.addUniverse(
    "demo",
    new EnttecOpenUSBDMXDriver(await EnttecOpenDMXUSBDevice.getFirstAvailableDevice()),
  );
  universe.updateAll(0);
  universe.update({ [C.MechPan]: 255, [C.Dimmer]: 255, [C.White]: 255 });
})();

But this is glitchy as hell look at this :

212352663-b77a8078-423d-4cf9-a5be-3a5a5244f123.mp4

What I'm supposed to understand ?

@hrueger
Copy link
Member

hrueger commented Jan 13, 2023

Hi @ScreamZ,
the readme states the following:

enttec-open-usb-dmx: driver for "Enttec Open DMX USB". This device is NOT recommended, there are known hardware limitations and this driver is not very stable. (If possible better obtain a device with the "pro" chip)

I cannot watch the video, I only hear audio. Maybe it only works on Mac? Don't know.

However, you might want to try the following things:

  • Play around with the options. Maybe lower the baud rate?
  • You could also try the TypeScript Version of this library, https://github.com/node-dmx/dmx-ts It has slightly more up-to-date drivers.
    I don't think that this is going to change much, though, as your code seems to send the values only once. That means, flickering may be introduced by the Interface and not the library?

Are you using a DMX Terminator?

@ScreamZ
Copy link
Author

ScreamZ commented Jan 13, 2023

I changes the video to mp4, check it :)

For now I've this one, I'll check if ifound something but this gets expensive and i want to be sure its related to interface.

I'm using the typescript already, really nice.

Yes I'm using a terminator. Its the only device. The baud rate seems to be a constant of the protocol, ima check,.

Also used : moritzruth/node-enttec-open-dmx-usb#82 but have other issues.

I'll maybe try implement a new driver ?

@moritzruth
Copy link

I also initially tried this library but because it didn’t work I wrote https://github.com/moritzruth/node-enttec-open-dmx-usb.

I assume it has to do something with the timing of BRK and slight inaccuracies of setTimeout, but I really don’t feel like debugging that stuff. Especially as it is working for me.

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

3 participants