Slechtvalk
Member
Hey
I searched a lot of info about teensy and DMX. This week, i could receive and send dmx perfectly. but now i want to do i both at one teensy 3.0. But that didn't works fine. When i use the example to receive :
i got clean data send by a DMX tester (not clean from a artnet node).
But when i combine it with SimpleDmx, the data isn't clean anymore .
With this code i receive the value i sended, but somethimes also a 0
Someone with the same experience ? or a Solution ?
I searched a lot of info about teensy and DMX. This week, i could receive and send dmx perfectly. but now i want to do i both at one teensy 3.0. But that didn't works fine. When i use the example to receive :
Code:
#include <DmxReceiver.h>
DmxReceiver DMX = DmxReceiver();
void setup() {
DMX.begin();
Serial.begin(115200);
}
void loop() {
DMX.bufferService();
delay(2);
if (DMX.newFrame())
{
Serial.println(DMX.getDimmer(1), DEC);
}
}
i got clean data send by a DMX tester (not clean from a artnet node).
But when i combine it with SimpleDmx, the data isn't clean anymore .
Code:
#include <DmxReceiver.h>
DmxReceiver DMX = DmxReceiver();
#include <DmxSimple.h>
void setup() {
DMX.begin();
Serial.begin(115200);
DmxSimple.usePin(1);
DmxSimple.maxChannel(4);
}
void loop() {
DMX.bufferService();
delay(2);
if (DMX.newFrame())
{
Serial.println(DMX.getDimmer(1), DEC);
}
DmxSimple.write(1, 200);
}
With this code i receive the value i sended, but somethimes also a 0
Code:
59
59
59
0
59
59
59
59
59
59
59
59
59
59
0
59
59
59
59
59
59
59
59
0
59
59
59
59
59
59
59
59
0
59
59
59
59
59
59
59
59
0
59
59
59
59
59
Someone with the same experience ? or a Solution ?