PaulStoffregen / DmxSimple

99 stars 21 forks source link

Arduino Mega 2560 compatibility? #9

Closed TRSATOC closed 6 years ago

TRSATOC commented 6 years ago

Hello, my hardware is: Arduino Uno (Official made in italy) Arduino Mega (Chinese) for DMX: a GROVE DMX 512 (http://wiki.seeedstudio.com/wiki/Grove_-_DMX512)

If I run the fadeUp example on the Uno + Grove DMX 512, I've got no problem, all is working If I run the same example on the Mega + Grove DM 512, I've got nothing in the output I've plugged my oscilloscope at the Mega port 3 output and I've got nothing so the GROVE isn't the cause of the problem.

I've tried a different port without success I also try the blink example in the port 3 with success so my port 3 is working on the Mega.

I've never had problem with this Mega so perhaps there is a problem with the lib.

TRSATOC commented 6 years ago

For information, i've tried with a nano and all is working perfectly on it :/ So what's happen with the Mega? (I've tried again today without success)

PaulStoffregen commented 6 years ago

I tried just now. With Arduino Uno:

dsc_0783

I get this result:

file

With Arduino Mega (also a clone):

dsc_0784

I get this result:

file2

Both are running the same FadeUp example. The 2nd byte changes rapidly when I view on the scope.

I do not know why it isn't working for you. Everything I can see here seems to be fine with Arduino Mega.

TRSATOC commented 6 years ago

I'm so sorry, I was using the Old library with no Mega 2560 support. I'm very sorry for your waste of time, all is OK now

TRSATOC commented 6 years ago

Thanks @PaulStoffregen All is working well in my final implementation, I just have to play now to create my scenarys with my different DMX stuff!

22519694_10213195942427437_368626265461410094_o 22520212_10213195931387161_5007284405542680464_o