Go Down

Topic: getting started (Read 491 times) previous topic - next topic

notsoyyo

Hi. I am still new to arduino and am working on a project that will use force sensors (placed in a floor mat) to trigger an audio file (mp3 or wav-whichever is best supported). There will be several sensors and several files. I wonder if I can do this by modifying the blink LED with a push button( or light sensor) sketch? Is it possible to have this trigger a file to be loaded or will I have to write the program in Processing?
I have been working on a sketch in Processing that uses a keyPressed() to load a a wav and/or mp3 file using the minim library but have been having many difficulties. I am wondering if I am approaching this correctly and could really use some advice on where to start... ( I do have a deadline :smiley-roll-sweat:)

Thank you.....

PaulS

Quote
I do have a deadline

Hopefully is sometime next June...

Quote
am working on a project that will use force sensors (placed in a floor mat) to trigger an audio file (mp3 or wav-whichever is best supported).

What is going to play the wav or mp3 file? Not the Arduino. You need a shield.

Quote
There will be several sensors and several files.

Fine. No problem.

Quote
I wonder if I can do this by modifying the blink LED with a push button( or light sensor) sketch?

Good idea. Just remove everything before setup(), everything between the curly braces that delimit the setup() function, and everything between the curly braces that delimit the loop() function. Then add a little new code.

Quote
Is it possible to have this trigger a file to be loaded

Yes. First, define the circumstances that cause a file to be loaded, then define the circumstances that defines which file is to be loaded, then define where the file is to be loaded from.

Quote
or will I have to write the program in Processing?

No. The Arduino can't run Processing sketches.

Quote
I have been working on a sketch in Processing that uses a keyPressed() to load a a wav and/or mp3 file using the minim library but have been having many difficulties.

Ruh, roo.

Quote
I am wondering if I am approaching this correctly

So am I. It's hard to tell from your code.

Quote
and could really use some advice on where to start...

OK. You only need one punctuation mark at the end of a sentence.

robtillaart


check this - https://www.adafruit.com/products/94 -

look at sparkfun for the force  sensors you have or something similar, there is a big chance there is some proto code to get you started.
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up