LED stripe control with Max

TRICAUD Pascal's icon

Hello everyones,

I'm trying to control a RGB Led stripe with Max but I am really stuck... I have a DMX decoder, plug to a USBtoRS485 converter to send the DMX form my computer, I just want to start a color changing after a bang and stop it after a second bang.

For now, I tried to send OSC messages from MAX through a UDP send to a light driver QLC+. First, I don't really know how to save a change color preset that can be activate with the bang, secondly I don't know what's the better way to send the dmx messages for my kind of setup. I tried with QLC but it's really hard and I'm a real noob at it... I can't get the OSC message trough the UDP in QLC+...

If some one have an idea or tips for helping me please it will be wonderfull !

Nice day to you and thank's again !

TRICAUD Pascal's icon

Ok so I decided to pass directly with my arduino to control the LED strips, it saves me money, time and difficult but there is a question left.

With the line fonction, I'm able to change the color when my sensor have a certain value, with a dial and a message "hsl $1 1. 0.5" so I have 1 dial to change the color.

But i just want to change the ALPHA too but I don' really understand the hsl which I think could make it works perfectly !

Can anyone explain it to me please?

Thank's

Morgan's icon

on an LED, wouldnt alpha just be the 'l'?

TRICAUD Pascal's icon

Hi thank's to answer ! What do you mean by "I" ? In my hsl message (as I understood by changing the values) the "0.5" at the end is the value of the luminosity and it's fix. I want to change this value with a dial or a slider for example, but I really don't understand how the hsl message works in MAX/MSP... I try since an hour to figure it out on internet but no answer...

Morgan's icon

$ values are wildcards with the number being their index in an incomming list. you can pack two together and do "hsl $1 1. $2" like this.

Max Patch
Copy patch and select New From Clipboard in Max.

darrendefaoite's icon

The swatch outputs R G B then Alpha, but it doesn't receive an alpha value. Whats the swatch doing in your example there?

darrendefaoite's icon

Whatever value you wish ( float between 0. and 1.) can just be prepended with the word alpha, to change that paramenter, especially if you have a specific controller for the opacity. Why complicate things and pack it into a complex message.