Closed kleinmantara closed 2 years ago
A possible workaround is to use DMXSerial.init(DMXProbe);
instead of DMXSerial.init(DMXReceiver);
- see DmxSerialNeoPixels.ino
The above documented effect often occurs by the fact that these implementations use interrupt routines as well or disable interrupts for a specific time. However, DMXSerial needs to respond to all interrupts from the DMX port to get all data from the DMX line and you will see odd behavior. The DMXProbe mode and the example for neopixels show how to execute other timing critical code from your sketch by pausing the DMX receiving for some time.
Hello, I have the following problem: In addition to the correct number that a DMX controller sends, I keep getting zeros.
I've tried several Arduino boards (Uno, Nano, Pro Mini) and also tried several MAX485 boards. I also used two different DMX transmitters, always the same picture. With a DMXSerial.read() comes the right number, but also a lot of zeros.
Anyone have an idea what's going wrong?
In the example here, 6 is sent to address 4. But there are also a lot of zeros in between. Output: