
Volatile unsigned int dmxcurrent = 0 //counter variable that is incremented every time we receive a value. Volatile byte dmxreceived = 0 //the latest received value Volatile byte i = 0 //dummy variable for dmxvalue #define TX_PIN 1 // serial transmission pin #define RX_PIN 0 // serial receive pin, which takes the incoming data from the MAX485. * will left low to disable driver output. * driver output enable (pin3) on the max485. * will be left low to set the max485 to receive data. * receiver output enable (pin2) on the max485. * function and read from EEPROM addresses 510 and 511. The value of this will be set in the Addressing() * The dmx address we will be listening to. the number of channels we want to receive (2 by default). I don’t have much knowledge on how the libraries work and if they may conflict with each other, but perhaps that is part of the problem?

I have not gone in to too much detail about the circuits that I am working with because right now because the problem is in the code, but I can go in to more detail about that if it is necessary.

The problem is that I am getting an error message that I don’t understand when I try to compile the code, and I was wondering if anybody would be able to help me figure out what I’m doing wrong.

Now I am trying to combine the two codes, by putting the stepper motor on the pins that were controlling the LEDs in my first experiment. I then did a separate project where I set up a bi-polar stepper motor with a 2 control pin configuration, and used the stepper example codes to test it, which it worked fine. It has been extremely helpful, and I have successfully used it to control 3 different LEDs with DMX information coming from a lighting controller. I have been working with the code and tutorial for DMX reception written by Max Pierson on his website: I am working on a project where I’m getting my Arduino Uno to receive DMX512 data from a lighting controller and then send PWM outputs to control a bi-polar stepper motor based on that information.
