Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Play WAV File


  • Please log in to reply
6 replies to this topic

#1 QuantumPhysGuy

QuantumPhysGuy

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts
  • LocationKentucky, USA

Posted 26 September 2012 - 12:15 AM

I'm fairly new at electronics but have been developing in .NET for years. I have a project I am working on where I want to be able to play a simple wav file from a SD card. I'm pretty sure I need some sort of DAC but after that, I'm not sure where to start. Does anyone have any suggestions?

#2 Coding Smackdown

Coding Smackdown

    Advanced Member

  • Members
  • PipPipPip
  • 78 posts
  • LocationLewisville, TX USA

Posted 27 September 2012 - 01:01 PM

Check out this thread. It should give you a good idea of how to play a WAV File. http://forums.netdui...-finally-works/ Cheers!
Brewing Award Winning Beer with a Netduino!
http://diybrewery.com

#3 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 27 September 2012 - 01:19 PM

Take a look at (for external hardware solutions):

https://www.sparkfun.com/products/9534

or

https://www.sparkfun.../products/11125

or

https://www.sparkfun.../products/10628

or you can probably add an AD7397 (10-bit DAC) or even go for a AD5330 Parallel 8-Bit DAC breakout board. There is an example here with the Arduino but can be done on the Netduino the same way most likely. http://www.sparkfun.com/tutorials/160

#4 QuantumPhysGuy

QuantumPhysGuy

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts
  • LocationKentucky, USA

Posted 28 September 2012 - 01:42 AM

After some thinking, do you think we would be possible to export the spectrum of the wav into a txt and play the spectrum back using the onboard PWM of the netduino go? The spectrum export is MUCH smaller than a WAV file and contains the frequencies and pule of each tone. Good idea or should I go with a DAC?

#5 carb

carb

    Advanced Member

  • Members
  • PipPipPip
  • 352 posts
  • LocationCrystal River, Florida

Posted 28 September 2012 - 01:53 AM

QuantumPhysGuy, What kind of wav file are you wanting to play? What type of output / quality are you looking for? It if fairly easy to send a textfile containing notes to be play on a piezo crystal (code is available on the forum that basicly will get you started). If you want stereo output to speakers you will need hardware to do this. There are several on the forum with postings in this area (Hanzibal for one). Chuck

#6 QuantumPhysGuy

QuantumPhysGuy

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts
  • LocationKentucky, USA

Posted 28 September 2012 - 12:08 PM

QuantumPhysGuy,

What kind of wav file are you wanting to play? What type of output / quality are you looking for?

It if fairly easy to send a textfile containing notes to be play on a piezo crystal (code is available on the forum that basicly will get you started). If you want stereo output to speakers you will need hardware to do this. There are several on the forum with postings in this area (Hanzibal for one).

Chuck


It is a wav file that is a simple beep about one second in length. It contains about 255 notes, I want these series of notes played on a piezo buzzer. I have simulated the beep already on a piezo but it is not exactly the same sound. I have a feeling to get the "depth" of the sound I am looking for I will have to use a DAC.

I have attached the wav file and the exported spectrum in a zip file.

Attached Files



#7 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 28 September 2012 - 01:14 PM

Sounds Like an EKG Beep. I have a feeling you are going to need a DAC and a speaker to retain the quality.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.