Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

AVR WAV player – with LCD display and keys support

Status
Not open for further replies.

Vermes

Advanced Member level 4
Advanced Member level 4
Joined
Aug 2, 2011
Messages
1,163
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,316
Activity points
22,318


Presented device is a WAV audio files player. It was realized based on Atmega32 microcontroller, despite the charge size is about 8-9kB. Program was written in C. The player supports any memory cards MMC/SD (including MicroSD, which can be inserted in adapter, as showed in the pictures). Two cards are used here: one with a capacity of 32MB and MicroSD 2GB placed in the blue adapter.
The player supports alphanumerical LCD display 2x16, on which there are current information displayed, such as: operation mode (play/stop), volume (adjusted in the range of 1-4), the exact duration of the track minutes and seconds as well as the name of played WAV file).



The whole is powered by +3,3V. The system additionally supports 3 keys and 8 LEDs which are simply control indicator.
Schema:



The system has two keys to change the volume in four simple ranges from 1 to 4. Additionally, there is also one NEXT key, that is used to switch to another track.
Speed of sampling in this player is maximum 22,050kHz. But the device plays WAV files with any smaller sampling, both STEREO and MONO.
Hardware SPI is used to communicate with SD card. The processor is clocked by 16MHz quartz. Playing stereo is supported by two PWM outputs of Timer1 (OC1A and OC1B). There are capacitors 100nF connected to the pins outputs.
Program works based on PetitFAT.

 

Attachments

  • AVR_WAV_PLAYER_HEX.rar
    9.8 KB · Views: 158

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top