question for experts

Discussion in 'Embedded Systems and Microcontrollers' started by sayf alawneh, Aug 24, 2014.

  1. sayf alawneh

    Thread Starter New Member

    Aug 4, 2014
    20
    0
    i wanna generate a certain sound using pic microcontroller its a bird's sound is that possible and how please ?
     
  2. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,387
    497
    Do you have a recording of it?
     
  3. sayf alawneh

    Thread Starter New Member

    Aug 4, 2014
    20
    0
    yes i have a recording for it , but can the pic microcontroller play the sound with the same quality of the record ???
     
  4. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,387
    497
    Probably not.
     
  5. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    Which PIC?

    What hardware?

    What is your price point?

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

    Expert

    Jul 18, 2013
    10,518
    2,369
    ...Or do you mean cheep cheep? :)
    Max.
     
    THE_RB likes this.
  7. sayf alawneh

    Thread Starter New Member

    Aug 4, 2014
    20
    0
    how much it costs, and can u tell me the tips please
     
  8. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,387
    497
    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.
     
  9. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,518
    2,369
    It may be for the birds, not humans?
    Max.
     
  10. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,387
    497
    I have not considered that. Well. At least now the OP is informed.
     
  11. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    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.
     
  12. THE_RB

    AAC Fanatic!

    Feb 11, 2008
    5,435
    1,305
    Storage medium, and loading of the storage is a big issue.
     
Loading...