Hi, I recently bought a RS422 / RS485 Serial HAT shield for my rpi to control a dmx head light. With an arduino I have been able to control the head light channels (horizontal movement, vertical movement, brightness, flicker) using the DmxSimple library, like e.g.
#include <DmxSimple.h>
byte i = 0;
int X = 0;
int Y = 0;
void setup() {
DmxSimple.usePin(3);
DmxSimple.maxChannel(60);
DmxSimple.write(3, 255);
DmxSimple.write(4, 255);
}
void loop() {
// Random movement for both axes
X += random(10);
Y += random(10);
DmxSimple.write(1, X);
DmxSimple.write(2, Y);
delay(100);
}
I would like to command the light from my rpi, ideally using python, to be able to have more dynamic control over the light. My knowledge about Dmx is however limited and I have no idea when I connect the RS485 Serial HAT how I can write a simple script like on arduino to control the light. I can follow the steps about setting-up the board here http://www.instructables.com/id/How-to- ... pberry-Pi/ but what do I do next? How can I send bytes to the light over dmx from rpi like with my arduino script?
Any help is appreciated