Offline
Newbie
Karma: 0
Posts: 9
|
 |
« on: October 09, 2012, 02:21:57 pm » |
I'm working on an interactive sculpture project. There will be strings-I want to make it so if someone pulls a string, it will produce a sound. I am thinking strain gauges are the way to go about doing this so I can have a different output depending on the reading of the gauge.
I've never done a project like this before but I understand the basics. I just need some guidance on what the proper (specific) hardware would be. Any advice is welcome (when it comes to the programming part as well).
(Also-if I need to give more detail/explanation on my project, just let me know)
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16579
Available for Design & Build services
|
 |
« Reply #1 on: October 09, 2012, 02:27:31 pm » |
How are you converting the strain guage output to a 0-5V output that the arduino can then make sound production decisions about?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 278
Posts: 25577
Solder is electric glue
|
 |
« Reply #2 on: October 09, 2012, 02:33:09 pm » |
Please do not cross post. Delete the two identical threads you have posted.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16579
Available for Design & Build services
|
 |
« Reply #3 on: October 09, 2012, 02:33:22 pm » |
An alternate approach might be spring-loaded potentiometer, either linear that slides back & forth, or rotary, and pulling on the string moves the pot wiper back & forth. Can add block & tackle like arrangement to allow for bigger string movement & smaller wiper movement.
|
|
|
|
|
Logged
|
|
|
|
|
USA
Offline
God Member
Karma: 14
Posts: 644
|
 |
« Reply #4 on: October 09, 2012, 02:38:58 pm » |
Another alternative to a traditional strain gauge would be to attach the strings to conductive rubber. The rubber would be electrically connected as part of a voltage divider from +5 V DC to ground, with a wire connected between the cord and a constant resistor. The wire would then connect to an analog input, and when the voltage goes below a threshold (because the rubber's resistance increases as it is stretched) you can have the Arduino signal a WAVE shield, MP3 shield, or other playback device.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 9
|
 |
« Reply #5 on: October 11, 2012, 07:51:33 pm » |
I'm interested in learning more bout the conductive rubber-I'll look into it.
I guess I'm not really clear on how the reading from whatever sensor part that I use translates into sound [or the steps I need to take to make that happen].
Will I be able to program the WAVE shield/MP3 shield/whatever playback device to have more than one option for the sound output or will it just play back one file repeatedly?
[sorry for all of the questions, just trying to figure things out]
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Boston
Offline
God Member
Karma: 3
Posts: 520
Arduino rocks
|
 |
« Reply #7 on: October 12, 2012, 07:51:14 am » |
There are basically two ways to make sound with an Arduino. One is to use tones. http://arduino.cc/en/Tutorial/ToneThe other way is to use a shield such as the Wave shield or an MP3 shield. These shields use an SD card to store files, so you can add as many sound files as you like. Last year I converted an old radio into an MP3 player. http://arduino.cc/en/Tutorial/Tone
|
|
|
|
|
Logged
|
|
|
|
|
Dubai, UAE
Offline
Edison Member
Karma: 20
Posts: 1627
|
 |
« Reply #8 on: October 12, 2012, 10:46:12 am » |
|
|
|
|
« Last Edit: October 12, 2012, 10:52:41 am by DuaneB »
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 9
|
 |
« Reply #9 on: October 12, 2012, 11:24:59 am » |
Thanks for all of these examples.
Here's a dumb question -- is the WAVE shield able to do everything alone (meaning react to the sensors/whatever I end up using) or is it just an add on that has to go with another board?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16579
Available for Design & Build services
|
 |
« Reply #10 on: October 12, 2012, 11:40:57 am » |
Just an add on - you need the Uno/whatever below to read the sensors and make decisions about what file to call up for playing.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 9
|
 |
« Reply #11 on: October 12, 2012, 05:03:13 pm » |
Awesome, I've purchased both pieces.
Any suggestions on speakers??--they need to be fairly small.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16579
Available for Design & Build services
|
 |
« Reply #12 on: October 12, 2012, 05:28:08 pm » |
Define "fairly small" in inches/mm/wattage, etc.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
God Member
Karma: 6
Posts: 918
Arduino rocks
|
 |
« Reply #13 on: October 13, 2012, 05:22:17 pm » |
I have tested/used some small 1.1" diameter 1.5w/2w max speakers before...
the WaveShiled.. (IMHO) has VERY low volume by default...
I would read up on doing the volume hack for it..
|
|
|
|
|
Logged
|
|
|
|
|
Boston
Offline
God Member
Karma: 3
Posts: 520
Arduino rocks
|
 |
« Reply #14 on: October 15, 2012, 08:29:36 am » |
This speaker or something similar should work fine. https://www.sparkfun.com/products/9151
|
|
|
|
|
Logged
|
|
|
|
|
|