Pixel to LED, the best way to do it?

May 3, 2013 at 5:28pm

Pixel to LED, the best way to do it?

Hey everybody im currently working on an art installation and I have to figure out how to send packets (containing LED nr, R, G, B) through the serial object in Max msp. I have problems figuring out how to send many packets through the serial object relatively fast.

I have an arduino code which read the data from Max Msp and sends data to an adafruit RGB LED string (LP8806) with 120 LEDs, see the attached.

I want jit.spill to turn on LEDs with 1 and turn them off with 0!

How can I go through the list of 0´s and 1´s and send the packet through the serial object- In a fast way

see the attached max msp file and feel free to change something in the arduino code if you know!

Attachments:
  1. PIXELTORGB.maxpat
#68056
May 3, 2013 at 6:21pm

Did you try the iter object ? Alternatively perhaps going directly to the serial with jit.iter ?

Also the actual message object you use takes a lot of juice, were you planning on leaving it in the patch ?

#244505
May 3, 2013 at 6:29pm

Hi Bjoern (Danish?) – I’ll point you towards Gav’s thread, since he recently built a big project around just this process.

Are you sure you want to simply turn them on or off? You *could* do pwm on the LEDs and have actual brightness levels for them…

http://cycling74.com/forums/topic.php?id=36359

#244506

You must be logged in to reply to this topic.