We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpVideo Capture,  Movie Playback,  Vision Libraries › processing video to readable format for arduino
Page Index Toggle Pages: 1
processing video to readable format for arduino (Read 1052 times)
processing video to readable format for arduino
Oct 3rd, 2009, 12:37pm
 
I'm working on a project with a arduino and a lot of led's.

The idea is a POV style led display for a bicycle wheel.
Now they only exist with the led's on or off. Some kind of black/white style. I want to at a grayscale and more frames per seconds.
bicycle Pov's concepts:
ladyada.net/make/spokepov/index.html Lady ada's
screwdecaf.cx/superpov.html mikey sklar
ianpaterson.org/projects/spokepov20070731/index.htm Ian's POV

The arduino side of the project is finished. And now I'm looking for a way to convert some video to a data array that I can read with my arduino.
To make it extra difficult it's a round resolution so I have to extract a round part of a video. To give you a idea ladyada.net/make/spokepov/software.html Lady ada's SpokePOV how it's made to process 1 image.

I'm very new to processing, but since the arduino code look very similar, I thought Ii would give it a try.  I looked at opencv but I don't realy have any ideas how I can use it.

My data array I read out now is a 3 dimensional array
Array[number of frames of the video][amount of circle resolution][number of beam revolutions or amount of leds] = {{{value from 0 to 225 for led 1 displayed in Hex,value from 0 to 225 for led 2...

The data would be read from a sd card. And the file will contain also the number of frames from the movie and the amount of frames per second.

I don't know if processing is the right program language to make the script. If you have better suggestions, let me know.
Re: processing video to readable format for arduino
Reply #1 - Jan 28th, 2010, 8:55am
 
well, processing would do it just like any other software. basicly it's not too hard, but i don't see where you need an 3 dimensional array...

on arduino side you must controll each led by an PWM signal. on processing side, you create one int for each led in one array and send it via serial port..

all the time controlling etc i'd do on processing side, to only have one place from which you controll the installation. the arduino should only fill its PWM array with serial signals an controll the I/O...
Page Index Toggle Pages: 1