Pages: [1]   Go Down
Author Topic: Recieving DMX  (Read 5683 times)
0 Members and 1 Guest are viewing this topic.
Toronto, Ontario
Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've been browsing around for examples of people successfully recieving DMX (Digital MultipleX signal (RS485 I believe).

http://en.wikipedia.org/wiki/DMX512-A ... for anyone who's unfamiliar.

I know there was a lot of work put into outputting DMX, which has been achieved through the DMX shield.

(http://www.arduino.cc/playground/Learning/DMX)
(http://www.arduino.cc/playground/DMX/Opendmx)

Anyone?

I'm willing to start working on it, but I don't want to start from scratch if anyone's already tried... (i'm game to working with someone on already pre-existing code to see if we can make it work.

Thanks!
-Scott
Logged

-Scott

malmö / berlin
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
fhp>--vs--<k3
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


hej,

I never tryed to get the arduino reading DMX singals, beacuse sending is allready at the edge of my knowligh, but maybe i can give you some links and help:

reading dmx is quit hard stuff, because of the timing (and the missing clock singal). A DMX bit is 4 Microseconds long, so reading with digitalread(); is no solutiom. I'don't know if this is possible withIn the arduino environment.


Starting point:

I would start checking out if some one got the arduino to read MIDI, this could be a good starting point.

On the other hand there are dmx Resceive using Atmega chips:
at http://www.tinker.it/en/Products/DMXInterface there is a dmx receiver, maybe you can ask massiom if he could post the code here,  to get a clue how this works
futhermore there is webside german guy called hendrik Hölscher (http://www.hoelscher-hi.de/hendrik/english/dimmer.htm#transceiver) maybe you can ask him as well for code example

if you just want to get it work fast, build your own transceiver like explaint on hendriks web side and read this dmxtraniseiver outputs with the analogIn pins at the arudino, this is a creapy but fast way

all the bes
tomek
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 47
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I would also be interested in code for receiving DMX on the arduino, or at least to know if it is possible or not.
I just made a dmx shield, and wasnt aware of that there is no existing code for receiving. It would be very useful for replacing expensive dmx controlled equipment, and would make it very easy to integrate physical devices in a dmx environment.


If I have understood it right, the arduino can be used as a open dmx interface, which is able to both send and receive ("Using a simple application on a PC you can send and receive DMX512."), but I couldnt find any code for osX that could make use of this.

best,
hc gilje
« Last Edit: October 18, 2007, 11:36:27 am by hcgilje » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi! I'm also interested in learning how to get my Arduino to receive DMX-512 signals. I've searched around on the internet a bit, and there's a lot of stuff about how to transmit DMX, but not so much about how to receive it.

Thanks,

Fred
Logged

malmö / berlin
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
fhp>--vs--<k3
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
If I have understood it right, the arduino can be used as a open dmx interface, which is able to both send and receive ("Using a simple application on a PC you can send and receive DMX512."), but I couldnt find any code for osX that could make use of this.

hej,

the FTDI ship at the arduino can be used for a "open dmx" interface, but the amtega8 is not used or needed for this application, further more i don't know for shure, but i think with open dmx you can just send dmx and not receive.

all the best
thomas

p.s. did some one of you know if midi can be received with arduino ?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 14
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm just getting into arduino. i'm expecting delivery on wednesday! I'm very interested in working with dmx. has anyone found more info about sending and receiving dmx via arduino?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 47
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

check out the playground:
http://www.arduino.cc/playground/Learning/DMX

hc
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hey guys! here is the solution!
yesterday I was looking for the exactly same thing, receive DMX with arduino and store that information in an array.
With some google search I found this:

http://blog.wingedvictorydesign.com/2009/03/20/receive-dmx-512-with-an-arduino/2/

I tested it with LightsUp software and works perfectly! the code and all you need is in that site.
So I hope it helps you.

Now I ask you something:
I'm working in a multiplexed RGB led array to display a lot of different effects and colour combinations. It's something like one of the strips that appears in this video: (it's just an example, it's not my project).



My program uses timer interrupts and fast PWM mode to set the duty cycles in each LED and works pretty good and fast. But here is the issue, I want to use the receive DMX data in my program to refresh the array and I don't know how to combine both programs (the one that receive DMX and the one I'm using to drive the array).
Wich could be a way to do it?

Thanks!

PS: sorry if my english is not good!
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 36
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well that depends on what you want your DMX controller to do.  Do you want 1 channel that controls a "rate"; or do you want 3 channels, one per color?

It should be hard to do either, you just need to organize your data so that one part of the code ends up with a value and name that you can use in the other.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 611
Posts: 49092
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It should be hard to do either,
Is there a not missing there somewhere?  smiley-wink
Logged

Pages: [1]   Go Up
Jump to: