Go Down

Topic: DMX on Arduino DUE (DMXSimple/DMXSerial) (Read 4457 times) previous topic - next topic

kvdmolen

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

lucasvl

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

sili6


SaW3r

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 !

mcnobby

I'd love to know about this too (both TX and RX) - I am thinking of buying a Due :@)
http://www.youtube.com/user/Recovered
http://www.smartshow.lighting

cartonbela

after one year, no answer from community?

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

mr_pacheko

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.

mcnobby

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
http://www.youtube.com/user/Recovered
http://www.smartshow.lighting

Gotubatur

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?

MarkT

What is the issue - it has a UART and GPIO, that's all you need, surely?
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

mrektor

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

pjrc

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

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

mrektor

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

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

pjrc

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

Dueet

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

Go Up