I've been learning how to use the Arduino in order to set up an installation that uses PIR sensors to activate a film-clip on the laptop through a projector. I just need the projector to start playing whenever they are set off, and to stop when the Arduino does not read a signal.
I know how to connect the sensors and tell the Arduino how to read the value, and can get my head around sending this information to the computer using serial communication, but then I'm a bit stuck on how to go about using that information to play the film? These are a few things i've been looking into:
I was thinking I could loop the film, and use processing to black out the image whenever the PIR sensor wasn't activated? - As I would have to keep the projector powered the whole time and wouldn't want the screen projecting when the film wasn't playing. I've looked into downloading the video library on this but can't seem to get my film to play, its a mov. file. -- Could this be down to file size?
There's so much information out there i'm getting confused about what to look at or try first. I suppose, if what i've described is the correct way to go about this, i need to understand:
--How to read the information sent through serial communication in processing? (Have been programming with Arduino software up until this point) --How to get my film clip to respond to this by showing/ hiding the projection... possibly covering it with a black layer
If anyone has any (as simple as possible) ideas about how I could go about this, or can help with any part of this, I will be very very grateful, and happy! :)
I have an Arduino Uno (R3), PIR sensor, some other bits and bobs (wires, resistors etc..), and use a mac.