Controlling video with Max, an Arduino and a distance sensor/ultrasound sensor
I'm a beginner with this and I really need your help.
I'm trying to create a video installation. Here's the basic setup:
1) A video clip, about 30 seconds long, should play and loop.
2) When a distance sensor/ultrasound sensor notices someone standing in front of the video, it should put on another clip.
3) When the person moves closer to the video, the video should start playing according to how far away that person is.
4) When the person reaches a certain distance, a third video should play.
The distance sensor is connected to an Arduino, but I'm really struggling with setting up the patch in Max. If anyone could help me create it, I would be really appreciative.
I found this thread in forum with pretty much the same setup, but he has a lot more video clips than I do: https://cycling74.com/forums/first-time-user-need-urgent-help-use-arduino-video/
Thanks!
Hi
how far have you got with this? Are you reading expected control data in either Arduino or Max yet? I would suggest that this is the part that you will have to sort yourself, and then we can help you parse and use the data to get the interactive functionality you require.
Brendan
Hi
I think the [split] object might be helpful in your case. And I think there's an object called [playbar] or similar, for scrubbing video
Brendan
also, you can use [scale] in association with the "frame" message to jit.movie.
BTW, @Christian: next time please use the "copy compressed" feature in Max to share your patch.
Hey guys!
I've gotten this patch from a guy helping me out, and I've managed to get some music playing with a filter according to one's distance from the sensor.
I'm still struggling with the video part, though. He's included two options (the middle and right), but I can't quite figure out how setup the various videos and where to adjust when they should switch. I hope it makes sense to you guys :)
If anyone is willing to use half an hour or so set this up I would gladly compensate you monetarily.
Again, just to describe the setup:
1) At at a distance from 4 meters away, one video is playing and looping.
2) If a person is 4-1 meters away, a second video should play.
3) If a person is 1 meter away from the sensor, a third video should start playing.
If possible, I want a song to be looping all the time with a filter on. From three meters distance and down to 1 meter, it should remove that filter.
Hope anyone can help.
Hey Christian,
I was wondering if you ever solved the puzzle?
just stumbled upon this as im ressearching how to run a video according to peoples distance.
hope you can help
bests,
line