Forums > Jitter

Webcam and matrix output + LED

March 3, 2010 | 12:20 am

I'm trying to use the matrix data of a webcam feed to control a matrix of LEDs via Maxuino and an Arduino Mega. I've managed to config the Arduino environment and have Maxuino properly and test it.

My though is that i'd pixelate the webcam feed down to 8×8 blocks – i'm working with an 8×8 LED matrix [see my screenshot of where i'm up to].
Then, and this is where i'm totally lost, somehow evaluate the luminance of each individual 'pixel' and adjust the values being past to the LED matrix [via Maxuino].

What i guess i'm asking at the moment is is this the right approach for is there a better way of doing it. If it is the right way to go about it, how do i read the luminance of each of the pixels in the updated webcam feed.

Any help is greatly appreciated.


  1. Screen_shot_2010-03-03_at_00.11.11.png


March 3, 2010 | 12:53 am

You can grab these values as a list using [jit.spill].


March 3, 2010 | 2:04 pm

Cheers Luke,

That worked a treat! below is a shot of what I’ve currently got. Now to figure out how to use the outputed matrix to control control the LEDs which are wired in colums and rows – via Maxunio. Any tips that might help would be great! :P

I’ll post up the patch once/if i get it completed.


  1. webcam_02.jpg


March 3, 2010 | 11:38 pm

Does anyone know how i get this matrix [if that’s the right way] to talk to Maxuino?

Also is there any way to just measure difference instead of luminosity? I think that might be a better approach.

March 4, 2010 | 4:30 am

Try checking out this monome patch.

I think it might help out with some ideas on how to do it.


March 4, 2010 | 11:23 pm

This patch I built for a college project might help you in some way.

— Pasted Max Patch, click to expand. —
Viewing 6 posts - 1 through 6 (of 6 total)

Forums > Jitter