Arduino Forum

Products => Arduino Due => Topic started by: kvdmolen on Feb 01, 2013, 03:16 pm

Title: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: kvdmolen on Feb 01, 2013, 03:16 pm
Hi, does anyone know if the DUE works with any DMX library and Shield?

They seem to work with AVR libs that are not available (in 1.5.1)..

Thanks!
Klaas
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: lucasvl on Feb 15, 2013, 04:09 pm
I have the same problem / question. Any help would be great!
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: sili6 on Mar 10, 2013, 08:38 pm
I have the same question. Any news?
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: SaW3r on Jul 30, 2013, 10:21 am
Hi,

I have exactly the same question.

I talk especially to the Arduino team, it's good to get out an Arduino DUE powerful, but if you don't create compatible libraries...

I bought an Arduino DUE and I can make anything.

I understand that you don't have time to recreate all existing libraries, but in this case you could make a tutorial that explains how to create a library.

Apart from that, you do a great job and I love Arduino, thank you !
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: mcnobby on Jan 19, 2014, 09:49 pm
I'd love to know about this too (both TX and RX) - I am thinking of buying a Due :@)
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: cartonbela on May 13, 2014, 02:33 pm
after one year, no answer from community?

(just new here, and same question comes to me!)
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: mr_pacheko on May 18, 2014, 07:07 pm
Hy Guys,

What I see in this case is that Arduino Due can only supports 3.3 v in the i/o. So, dmx works with 5v.

I supose that It can works with the correct resistances... but it is a little dangerous.
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: mcnobby on May 19, 2014, 08:50 am
Mr Pacheko,

Not quite, I am sure there are several 3.3v RS485 interface chips available on the market (like the LTC1480) - you would need to have this interface chip between the Arduino pins and the DMX outside world. DMX works on a differential bus system and not 0-5v as you stated.

I have been using SN75176, which I believe will work at 3.3v but I havent tested it

Regards
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: Gotubatur on Jun 23, 2015, 09:23 am
One year later I have the same Question.
Is there already an solution how to use the Arduino DUE as an DMX interface? Or is there already a ported libery?
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: MarkT on Jun 23, 2015, 01:12 pm
What is the issue - it has a UART and GPIO, that's all you need, surely?
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: mrektor on Sep 05, 2016, 01:06 pm
i also have the same question, is it avaiable a DMX library for the Due?
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: pjrc on Sep 05, 2016, 02:46 pm
Here's some code I recently wrote to transmit DMX on Teensy.  Maybe it could work on Due?  It uses Serial2 with only the normal functions.

https://github.com/PaulStoffregen/SOAK2016/blob/master/controller/leds.cpp (https://github.com/PaulStoffregen/SOAK2016/blob/master/controller/leds.cpp)

You'll probably need to use the elapsedMillis.h library, since Due doesn't have this feature built in.

You'll probably also need to use a recent version of Due's core library, since this uses availableForWrite().
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: mrektor on Sep 06, 2016, 11:54 pm
Here's some code I recently wrote to transmit DMX on Teensy.  Maybe it could work on Due?  It uses Serial2 with only the normal functions.

https://github.com/PaulStoffregen/SOAK2016/blob/master/controller/leds.cpp (https://github.com/PaulStoffregen/SOAK2016/blob/master/controller/leds.cpp)

You'll probably need to use the elapsedMillis.h library, since Due doesn't have this feature built in.

You'll probably also need to use a recent version of Due's core library, since this uses availableForWrite().
I tried but nothing.

Do you think it's hard to implement it from zero?

is there any resource where it's described the protocol?
Maybe trying to understand how the library for the UNO works should do the trick?

i'm open to suggestions :)
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: pjrc on Sep 07, 2016, 02:49 am
I tried but nothing.
That code definitely did work on Teensy.  With the recent improvements to Due's hardware serial code, it really ought to work.

How did you try?  Did you copy these 3 functions and create a simple loop() and setup().  Maybe post the code you actually tried (pretty much always the best way to get help on any forum....) and a photo of how you actually wired up the hardware (again, always the best way to get help with things that should work but didn't....)
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: Dueet on Sep 23, 2016, 06:10 pm
Intresting different approach of code setup @Paul  I have reviewed a few DMX lib's for the normal arduino's and they work with a interupt generated when they receive a framing error (generated when the break is active)

I have do dive more into the uart / usart code from the DUE to see if this will be portable for the DUE too.. 
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: woody072 on Oct 23, 2016, 09:33 pm
Noob here trying to get DMX Shield to work on DUE. I can see that an Issue has been logged on the Tinkerkit DMX Shield website, which is the same compile error I am getting :
Arduino: 1.6.4 (Windows 8.1), Board: "Arduino Due (Programming Port)"

C:\Users\paulw\Documents\Arduino\libraries\DmxMaster-master\DmxMaster.cpp:6:20: fatal error: avr/io.h: No such file or directory
 #include <avr/io.h>
                    ^
compilation terminated.
Error compiling.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

Wondered if anyone could point me in the right direction?
I have added "AVR Standard C time library" but no impact...

Thank you
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: AWOL on Oct 23, 2016, 09:39 pm
The Due is an ARM, not an AVR
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: richardfontaine on Sep 20, 2017, 04:43 pm
https://github.com/michelvergeest/DmxDue
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: lacanau on Apr 23, 2018, 12:32 am
I've recently worked on a project that used Arduino Dues and the DMX protocol. I needed to use a shield and a logic level converter. This is a script which should assist you in reading the DMX and making sure you're getting the correct values:

https://github.com/Scdales/Arduino_due_dmx (https://github.com/Scdales/Arduino_due_dmx)
Title: Re: DMX on Arduino DUE (DMXSimple/DMXSerial)
Post by: Deu5 on Jun 18, 2018, 12:59 am
I'm too having trouble finding a library to work with my Due.  I downloaded Richardfontaine's library but there is no example code.  Does anyone know how to use it?