Logic Machine Forum
DMX Controller Integration - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: DMX Controller Integration (/showthread.php?tid=4539)



DMX Controller Integration - mkaymak - 30.01.2023

Hi ; 
I'm using Lixada 512 DMX Decoder one my projects. Red LED's connected to CH1 - Green LED's CH- 2 and Blue to CH-3 
Configured Logic Machine  parameters like on this example  : https://openrb.com/example-dmx-lighting-control-with-lm2/
and ssed this function additionaly :
Code:
function getRgbParts(RGB_variable)
Red=bit.rshift(bit.band(RGB_variable,0xff0000),16)
Green=bit.rshift(bit.band(RGB_variable,0xff00),8)
Blue=bit.band(RGB_variable,0xff)
return Red, Green, Blue
end


The problem is the color on the object 232.600 RGB Color in Logic Machine doesn't match with LED's.
I also tried writing down like this below the group address to understand the situation
Code:
 dmx.set(1,255)
 dmx.set(2,0)
 dmx.set(3,0)

to see Red on LED's.
It worked Red and Green but not for Blue.
I couldn't find what I'm missing any help would be appreciated.
Thanks


RE: DMX Controller Integration - admin - 30.01.2023

How many channels do you have configured in the resident script? Try increasing this value and see if it helps.


RE: DMX Controller Integration - mkaymak - 30.01.2023

Hi admin ;
I'm using 3 channels.Because there is only one DMX decoder.Should i configure more channels than i use ?


RE: DMX Controller Integration - admin - 30.01.2023

Try using 4 or 5 instead of 3.