+ Post New Thread
Results 1 to 9 of 9
  1. #1
    Member level 4
    Points: 849, Level: 6
    3wais's Avatar
    Join Date
    Sep 2011
    Location
    Alexandria,Egypt
    Posts
    70
    Helped
    3 / 3
    Points
    849
    Level
    6

    AVR mp3 player project

    I want to make an mp3 player using avr but I have some questions .


    I have seen many on the internet using some mp3 decoder ICs. Can the decoding be done on software (16Mhz atmega) aside with controlling a graphical LCD and keypad or pushbuttons (is the processing speed sufficient)?

    Also do I have to use a RTOS ?? generally how to decide whether to use RTOS or not ??

    •   AltAdvertisment

        
       

  2. #2
    Advanced Member level 4
    Points: 6,490, Level: 19

    Join Date
    Feb 2011
    Posts
    1,170
    Helped
    284 / 284
    Points
    6,490
    Level
    19

    Re: AVR mp3 player project

    I doubt that it is possible to achieve on an ATmega, at least not for real-time processing.
    This is why people use a decoder ic, or a far more powerful CPU - plus you'd need more RAM than
    available on a usual ATmega..
    Last edited by sky_123; 27th May 2012 at 19:18.



  3. #3
    Member level 4
    Points: 849, Level: 6
    3wais's Avatar
    Join Date
    Sep 2011
    Location
    Alexandria,Egypt
    Posts
    70
    Helped
    3 / 3
    Points
    849
    Level
    6

    Re: AVR mp3 player project

    would using a STM32F2xx with 120Mhz max frequency do the job ??



    •   AltAdvertisment

        
       

  4. #4
    Advanced Member level 4
    Points: 6,490, Level: 19

    Join Date
    Feb 2011
    Posts
    1,170
    Helped
    284 / 284
    Points
    6,490
    Level
    19

    Re: AVR mp3 player project

    Maybe, but you have to ask yourself, do you have the expertise (and time) to take the specification and write the C code to decode MP3?
    If not, then you may wish to use open source. If you go down that road, then chances are that most open source implementations may use (in places) functions that are part of libraries available for Linux. So, you'd have to either run Linux on your CPU, or alternatively write those functions yourself.
    If you are willing to do that, then yes a 120MHz CPU may do the job possibly. I don't know anything about ST
    devices, so if you went the Linux route then of course the device must be capable of that - does it have a memory
    management unit? If not, then you can't run conventional Linux on it anyway...


    1 members found this post helpful.

    •   AltAdvertisment

        
       

  5. #5
    Advanced Member level 4
    Points: 12,255, Level: 26
    Achievements:
    Created Blog entry 7 years registered
    thannara123's Avatar
    Join Date
    Jan 2010
    Location
    Nedumkandam, India, India
    Posts
    1,428
    Helped
    117 / 117
    Points
    12,255
    Level
    26
    Blog Entries
    2

    Re: AVR mp3 player project

    I Respect You



  6. #6
    Advanced Member level 5
    Points: 33,525, Level: 44
    Achievements:
    Created Album pictures Created Blog entry 7 years registered
    tpetar's Avatar
    Join Date
    Sep 2010
    Location
    Pancevo-Belgrade, Serbia
    Posts
    6,427
    Helped
    1732 / 1732
    Points
    33,525
    Level
    44

    Re: AVR mp3 player project

    See this project:

    MP3 player with ATmega64 VS1011a and Samsung E700 color Display
    http://digitalelectronicsandprogrami...1011a-and.html
    “Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine.” Nikola Tesla



  7. #7
    Administrator
    Points: 69,285, Level: 64
    Achievements:
    Created Album pictures Created Blog entry 7 years registered
    bigdogguru's Avatar
    Join Date
    Mar 2010
    Location
    Southwest, USA
    Posts
    9,832
    Helped
    2355 / 2355
    Points
    69,285
    Level
    64
    Blog Entries
    4

    Re: AVR mp3 player project

    Quote Originally Posted by 3wais View Post
    I have seen many on the internet using some mp3 decoder ICs. Can the decoding be done on software (16Mhz atmega) aside with controlling a graphical LCD and keypad or pushbuttons (is the processing speed sufficient)?
    I would tend to agree with sky_123 that the ATMEGA would most likely not provide the required MIPS or architecture to decode an MP3 in real time, especially with the other tasks you mention.

    It is doable with a higher performance microcontroller/processor like an ARM as the following example demonstrates using an ARM7TDMI (AT91SAM7S256) and the open source Helix routines:

    ARM MP3/AAC Player

    Helix Community

    The above example utilizes a CODEC which brings up several other performance issues, of course the use of simple demodulated PWM output would alleviate many of these of these issues, the audio quality would be rather poor in comparison.

    Therefore, if the exercise is a proof of concept, it can be done. However, both audio quality and performance would most likely be sacrificed.

    Quote Originally Posted by 3wais View Post
    Also do I have to use a RTOS ?? generally how to decide whether to use RTOS or not ??
    RTOSs are typically implemented to efficiently manage multiple tasks through, however RTOSs do come with a price, consuming both precious cycles and resources of the microcontroller. When implementing a task such as MP3 decoding with limited resources to begin with, the implementation of an RTOS may not be of any benefit.


    BigDog
    The Edge... there is no honest way to explain it, because the only people who really know where it is are the ones who have gone over.
    -- Hunter S. Thompson



    •   AltAdvertisment

        
       

  8. #8
    Member level 2
    Points: 429, Level: 4

    Join Date
    Aug 2013
    Location
    india
    Posts
    43
    Helped
    0 / 0
    Points
    429
    Level
    4

    Re: AVR mp3 player project

    hi.did you find the way for solve this problem?I need help basicly. I have to find a way for making an mp3 with avr plz help me plzzzzzzzzzzzzzzzzzzzzzzzz
    Last edited by ghoola; 7th August 2013 at 15:44. Reason: edit



  9. #9
    Member level 2
    Points: 429, Level: 4

    Join Date
    Aug 2013
    Location
    india
    Posts
    43
    Helped
    0 / 0
    Points
    429
    Level
    4

    Re: AVR mp3 player project

    hi.i have a request i can't find vs1003 in proteus what should ido?



--[[ ]]--