Go Down

Topic: First time user Pressure sensor help? (Read 638 times) previous topic - next topic

Primarch

Hey guys!

I'm playing with an Arduino pressure sensor, and what I'm trying to do is make a video play when someone squeeze's the sensor (which will be attached to a hand), the idea being the viewer must hold hands with someone for the video to play, and will pause if they remove their hand.

I'm pretty aware that Flash is the best approach for coding a video to play and pause, my question however would be....could someone suggest a working code to make it happen? Play on pressure, pause without?

Thank you kindly in advance

AWOL

You're missing the bit where you tell us all about the sensor you're going to use.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

PaulS

Quote
I'm pretty aware that Flash is the best approach for coding a video to play and pause

Processing is pretty good at it, too. And much easier to communicate with the Arduino.

In fact, you could load the standard Firmata sketch on the Arduino, and let Processing periodically query the sensor pin itself.

Quote
could someone suggest a working code to make it happen?

Morse?

Code for what? The Arduino? Processing? Flash?

Primarch


Quote

Code for what? The Arduino? Processing? Flash?


Flash yes, to make it play the video when pressure is applied to the sensor, or pause when pressure is removed.

lucadentella

(even if this isn't a flash developer forum  :) )

you can use FLVPlayback object:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/video/FLVPlayback.html?filter_flash=cs5&filter_flashplayer=10.2&filter_air=2.6

which has methods to play() and pause() the movie... you can program a function to receive sensor status from Arduino and call thouse methods.

I don't know if Flash is able to "talk" with Arduino using serial port... a quick search with Google seems to indicate it requires an external component (Zinc, http://www.multidmedia.com/).

bye
lucadentella.it

lucadentella

I found this great information page:
http://www.arduino.cc/playground/Interfacing/Flash

you can use a serial-to-LAN proxy to send Arduino messages to your Flash app... and it works fine in both directions...
for example give a look to this project:
http://blog.thestem.ca/archives/77

bye
lucadentella.it

Go Up