Go Down

Topic: Help (Read 901 times) previous topic - next topic

JoninAstephy1

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.

CrossRoads

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.
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.

CrossRoads

Maybe this for the accelerometer
http://www.amazon.com/Virtuabotix-MMA7361-Three-Accelerometer-Module/dp/B0066XLWDE/ref=pd_sim_t_8
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.

JoninAstephy1

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.

dxw00d

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

Go Up