Trying to use sensor data to forward or reverse the direction of a video.

Mar 2, 2012 at 6:36pm

Trying to use sensor data to forward or reverse the direction of a video.

Hello,

I am a beginner, thank you in advance for your help. I am trying to figure out how to get a potentiometer to control the speed and direction of a video.

I have seen it done here with a photoresistor:
vimeo.com/5289812

and here with a linear potentiometer:

http://itp.nyu.edu/~jyp243/jy/ziporch_2.htm

I just don’t know how to approach this in jitter but I believe this is the best program. Again any help or suggestions would be greatly appreciated.

#62103
Mar 2, 2012 at 7:39pm

Yes – this can easily be done with Jitter objects. The jit.qt.movie object has attributes for controlling both of these.

The main question is what kind of sensor do you want to use, and how do you plan on interfacing with Max? (Arduino, Wiimote, Kinect, etc.) If you can give me some more details on the project, I can help point you down the right path.

- Marc P.

#224325
Mar 2, 2012 at 7:50pm

Dear Marc P.,

I am using a hotPot potentiometer and arduino. I have the hotPot hooked up to a hand crank and I am trying to allow for the viewers to control the speed and direction of an animation via a hand crank. When the hand crank is forwarding, I can get a serial read and by how much (1 revolution =24 frames), and reversing creates a negative number. If the hand crank is idle, a zero is displayed.

Again thank you,
Sarah

#224326
Mar 3, 2012 at 12:55am

OK – I think I get the basic idea of what you are trying to do here. (Cool concept.) Look at the incdec object. Use that in conjunction with the jit.qt.movie object. Specifically, use the incdec object to increase/decrease the value of the frame numbers. That should accomplish what you want to do.

#224327
Mar 3, 2012 at 4:40pm

Thank you I will give it a try.

#224328

You must be logged in to reply to this topic.