DMX on Arduino DUE (DMXSimple/DMXSerial)

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

I have the same problem / question. Any help would be great!

I have the same question. Any news?

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 !

I'd love to know about this too (both TX and RX) - I am thinking of buying a Due :@)

after one year, no answer from community?

(just new here, and same question comes to me!)

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.

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

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?

What is the issue - it has a UART and GPIO, that's all you need, surely?

i also have the same question, is it avaiable a DMX library for the Due?

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.

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 :slight_smile:

mrektor:
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....)

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..

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

The Due is an ARM, not an AVR

https://github.com/michelvergeest/DmxDue

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:

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?