DaAwesomeP/dmxusb

Difference between two examples

Closed this issue · 5 comments

Hello,

What's the difference between the "DMXUSB_Simple" and the "DMXUSB_DmxSimple" examples?

Thank you in advance :)

PS: I'm looking for an emulator USB to DMX to be used with freestyler

Hi there! I'm happy to help!

Take a look at the last line of the callback function in each example. In DMXUSB_Simple, the callback dim am LED on the first universe ane first channel:

if (universe == 0 && channel == 1) analogWrite(LED_PIN, value); // LED on channel 1 on universe 0

In DMXUSB_DmxSimple, the callback sends thr entire first universe into the DmxSimple library, which can output a real DMX signal (with the right hardware):

if (universe == 0 && channel <= DMX_MAX_CHANNELS) DmxSimple.write(channel, value); // Send universe 0 to the DMX port if in specified channel range

Hopefully that clears that up! Let me know if you have any more questions

I'm not familiar with FreeStyler, but it looks like a DMX controller program similar to QLC+. Assuming it can see an arbitrary Enttec device on any serial port (which this emulates), then it should work. If not, then you may need an FTDI adapter or to use OLA as an adapter.

Wbat is your intended output? Are you connecting real DMX fixtures or your own electronics?

@paoloros97 please let me know if I can be of any further assistance!

Closing due to no response.

Wbat is your intended output? Are you connecting real DMX fixtures or your own electronics?

Can i use this firmware to use an arduino leonardo with a SN75176BP chip to control real dmx fictures through usb?

Hey @tonyxforce,

Yes, the DMXUSB_DmxSimple example is probably where you want to start. I would recommend looking at the DmxSimple examples first and get it working before you add in DMXUSB.