I have started a project where I hope to control a stepper motor by accepting a DMX512 signal (normally used for controlling theatrical lights). The stepper will use a very simple controller that requires the Arduino to signal each coil individually. I could change to a more complex one that accepts plus and direction signals from Arduino.
I have the following equipment,
- Arduino Uno
- DMX512 Shield [I.e. a rs485 interface]
$12 from www.oddwires.com/rs485-dmx-shield/ - Stepper with driver board
$3 from www.oddwires.com/stepper-motor-and-driver-board-uln2003-for-arduino/
I have read the following resources, but am still quite confused;
A) The Arduino DMX playground page; Arduino Playground - DMX
B) Searching this forum.
C) http://www.maxwellrosspierson.com/2009/03/20/receive-dmx-512-with-an-arduino/
D) Arduino Playground - HomePage
The C) resource seems to point me to a collection of sketches, and apparently includes a library. But what I thought was the library only has one file with a .cpp extension, and does not have the proper extensions to be a library. Also, the sketches themselves are the older .pde extension, but I understand that simply opening and then saving them in the current Arduino IDE program will change them to the current format.
The D) resource seems to be the simplest to implement. And rather than a library it has code that gets pasted into your sketch. However, apparently the code must be manually edited for each type of processor. They say, "names of the registers and the name of the ISR vector used may differ." But, I have no experience with these things, so their directions don't really help me.
Any further ideas about how to accept DMX data as simply as possible for this Arduino beginner?
-Joe