Webcam and matrix output + LED

Mar 3, 2010 at 12:20am

Webcam and matrix output + LED

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.

[attachment=126175,153]

Attachments:
  1. Screen_shot_2010-03-03_at_00.11.11.png
#48876
Mar 3, 2010 at 12:53am

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

lh

#175636
Mar 3, 2010 at 2:04pm

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.

[attachment=126197,155]

Attachments:
  1. webcam_02.jpg
#175637
Mar 3, 2010 at 11:38pm

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.

#175638
Mar 4, 2010 at 4:30am

Try checking out this monome patch.

http://post.monome.org/comments.php?DiscussionID=3530

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

cheers

#175639
Mar 4, 2010 at 11:23pm

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

– Pasted Max Patch, click to expand. –
#175640

You must be logged in to reply to this topic.