Demo DMX program works on an Arduino v3.
Trying to add usb serial control from a Jetson doesn't.
Is this an issue of two processes using one serial port?
Will the Arduino Leonardo solve this? What other ways are there around this?
Demo DMX program works on an Arduino v3.
Trying to add usb serial control from a Jetson doesn't.
Is this an issue of two processes using one serial port?
Will the Arduino Leonardo solve this? What other ways are there around this?
#include <DmxSimple.h>
void setup() {
DmxSimple.usePin(3); // using digital pin 3 for DMX output
/* Set up DMX to use Serial0 (the same one that goes to USB on
Arduino UNO and Pro Micro)
This homemade shield occupies pins 0, 1 (Serial0 - RX, TX) and
pin 4 (for RS485 direction)
Note: DMX channel set to 512 but you can set to your max required channel
*/
DmxSimple.maxChannel(512);
randomSeed(analogRead(0));
}
void loop() {
for (int ch = 93; ch <= 103; ch++)
{
int rand_val = random(0, 256);
DmxSimple.write(ch, rand_val);
}
delay(1000);
}
Here is the working DMX code. I've been through lots of iterations of the version that takes serial commands from the Jetson Nano. I can post some of those attempts, but I'm open to any approach.
Looking at SoftwareSerial now.
I'm using the TinkerKit DMX shield.
That doesn't seem to work with R4 right?
Would it work with R3 and SoftwareSerial?