question for experts

ErnieM

Joined Apr 24, 2011
8,377
Which PIC?

What hardware?

What is your price point?

I've got stereo CD quality sound out of one PIC board. Was not cheap.
 

shteii01

Joined Feb 19, 2010
4,644
Well, you can start with the fact that you have audio signal. This means your highest frequency is 20 kHz. Now start looking for uC that has DAC, this DAC must be able to output signal that is 2-20 kHz.

If you want to make your life easier, you can reduce the frequency requirement to about 14-16 kHz. Most people don't hear 20 kHz. So now your DAC only needs to do 2-16 kHz.

Then there is a question of storage. How big is the sound file? If it is short, you might be able to fit it into uC memory. If it is long... you could interface sd card and read the sound file from sd card, but the access time is kinda slow... I don't have first hand experience with sd cards so google some, there might be examples on youtube and "stuff".

The DAC output will not be much. So you likely will need an amplifier. It could be a simple thing. Depends how loud you want it.
 

ErnieM

Joined Apr 24, 2011
8,377
Solutions will range from a mass storage element (such as an SD card) feeding an analog MP3 codec chip then onto power amplifiers, or bare bones by a timer interrupt trigger loading 8 bit samples into a PWM pin connecting to a cap and a speaker.

A wide range exists between those.

To choose, you need a level of quantity and a budget.
 
Top