Logic Machine Forum
RGB control with device type 6 drivers - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: RGB control with device type 6 drivers (/showthread.php?tid=3509)



RGB control with device type 6 drivers - gdokimov - 12.08.2021

Hello,

We are trying to control RGB strip lights and also RGB projectors with DALI gateway MTN6725-0001 but we have dt 6 drivers. We followed the instructions from here https://openrb.com/rgb-control-from-logicmachine/ and for the projectors the colour control is acceptable. For the strip lights though we are far off and we can't make much of the colours. For example yellow is light green and white is light blue.
Can anybody that had such setup give us a hand?


RE: RGB control with device type 6 drivers - Daniel - 12.08.2021

Why don't you use 6byte object which is in Logic machine? 251.600 6 byte DALI RGBW


RE: RGB control with device type 6 drivers - gdokimov - 12.08.2021

(12.08.2021, 08:30)Daniel. Wrote: Why don't you use 6byte object which is in Logic machine? 251.600 6 byte DALI RGBW

Hello,

We are using Wiser and in the data type there isn't 6 byte option. Also we have only RGB not RGBW.


RE: RGB control with device type 6 drivers - Daniel - 12.08.2021

Install latest firmware


RE: RGB control with device type 6 drivers - gdokimov - 12.08.2021

(12.08.2021, 08:51)Daniel. Wrote: Install latest firmware

Hello,

We installed it but how can we control the lights like that? We have only 3 colours which means 3 bytes.


RE: RGB control with device type 6 drivers - Daniel - 12.08.2021

Well this is question to DALI manufacture, they implemented this object, we are just sending values to it. We are sending them based on KNX specifications.


RE: RGB control with device type 6 drivers - admin - 12.08.2021

Quote:For the strip lights though we are far off and we can't make much of the colours. For example yellow is light green and white is light blue.
RGB LED strips cannot produce accurate whites. You can apply scaling coefficients to make a certain color less bright to make it a bit more accurate.
Change the coefficients (0.9 and 0.8) as needed:
Code:
value = event.getvalue()
r = bit.band(bit.rshift(value, 16), 0xFF)
b = bit.band(bit.rshift(value, 8), 0xFF)
g = bit.band(value, 0xFF)

grp.write('1/1/1', r)
grp.write('1/1/2', g * 0.9)
grp.write('1/1/3', b * 0.8)



RE: RGB control with device type 6 drivers - gdokimov - 12.08.2021

(12.08.2021, 09:54)Daniel. Wrote: Well this is question to DALI manufacture, they implemented this object, we are just sending values to it. We are sending them based on KNX specifications.

Sorry but I don't understand how changing the data type from 3 byte 232.600 colour to 6 byte 251.600 DALI RGBW is supposed to solve our problem.

(12.08.2021, 10:05)admin Wrote:
Quote:For the strip lights though we are far off and we can't make much of the colours. For example yellow is light green and white is light blue.
RGB LED strips cannot produce accurate whites. You can apply scaling coefficients to make a certain color less bright to make it a bit more accurate.
Change the coefficients (0.9 and 0.8) as needed:
Code:
value = event.getvalue()
r = bit.band(bit.rshift(value, 16), 0xFF)
b = bit.band(bit.rshift(value, 8), 0xFF)
g = bit.band(value, 0xFF)

grp.write('1/1/1', r)
grp.write('1/1/2', g * 0.9)
grp.write('1/1/3', b * 0.8)

Thank you! The scaling coefficients really helped. We thought that the problem come from the DALI driver type and not from the RGB LED strip.