Pages: [1]   Go Down
Author Topic: Help  (Read 666 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am looking for help programming.

I need the board to play sounds.

On power up it needs to play a certain sound and then switch to a hum sound. When the board is movedit needs to switch to a swing sound. when it is struck it needs to play a clash sound. When it is powered of it needs to play a certain sound.

Basiclly it is going in a lightsaber ( like from star wars) Any help is needed.

The wiring will be






                speaker
                       l                              Swing Sensor (accelerometer)
                       l                                     l
    -----------------------                           l
    l     Board              l-----------------------
    l_______________l-------------------------------------------LED
          l
          l-------------------------------Power Switch
      batteries


Any help coding this will get you a free or discounted light saber from The Force Forge.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 518
Posts: 26338
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Take a look at this module
http://www.mdfly.com/index.php?main_page=product_info&cPath=9_53&products_id=806
Looks like it'd be simple to interface with.
Can also Stop file playback, so you could change sounds with change in detected action.

No suggestions on the accelerometer yet. Ihink Sparkfun has some breakout boards or modules for that.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 518
Posts: 26338
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe this for the accelerometer
http://www.amazon.com/Virtuabotix-MMA7361-Three-Accelerometer-Module/dp/B0066XLWDE/ref=pd_sim_t_8
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

THank you however The board can only be a most 1 in wide. Im looking to use a arduino board just need help writing the code for it.
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try an Arduino Nano, with one of these: http://www.robotshop.com/arduino-nano-mp3-board.html
Logged

Pages: [1]   Go Up
Jump to: