Skip to content

PUT-PTM/STMwavPlayerMR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

STMwavPlayerMR

Overview

The project of simple .wav player based on STM32f4-DISCOVERY board. It plays .wav files from SD card.

Description

The idea to play .wav files was implement the two-way cyclic list. It contains information about files. You don't need to know the "name" of file, you only need to use one of external switches to switch into next or previous music file or pause/resume playing music. If you use the user button, you switch into random mode of playing .wav files. We use SPI for sending data from SD card to STM32F4 because SD card module doesn't support SDIO communication. It uses DMA module for smoother playback of music. To control the volume of songs we use the potentiometer. We also add Nokia 5110 LCD screen which displays the name of our project, shorten name and current time of playing song. What is more, the simple error handling was implemented. Types of errors are displayed on LCD screen. When you spot blinking:

  • green LED - cable fault, SD Card isn't inserted into SD Card Module or SD Card isn't formatted to FAT32,
  • orange LED - SD Card has been removed during listening music,
  • red LED - SD Card doesn't include .wav files.

Demo

https://www.youtube.com/watch?v=0rwHNLLLHSQ

Tools

  • CooCox CoIDE, Version: 1.7.8

How to run

To run the project you should have hardware:

  • STM32f4-DISCOVERY board,
  • SD Card Module and SD Card formatted to FAT32,
  • Headphone or loudspeaker with male jack connector,
  • Rotary potentiometer - linear (10k ohm),
  • 3 switches,
  • (optionally) Nokia 3310/5110 LCD screen.

How to use?

  1. Connect STM32F4-DISCOVERY board with SD Card Module in this way:
   STM32 <---> SD Card Module
   GND  <---> GND
   3V   <---> 3V3
   PB11 <---> CS
   PB15 <---> MOSI
   PB13 <---> SCK
   PB14 <---> MISO
   GND  <---> GND
  1. Connect also potentiometer (GND, PA1, VDD) and 3 switches (PA5, PA7, PA8).
  2. Plug your SD Card with .wav files into the module.
  3. If you want, you can connect Nokia 3310/5110 LCD screen in this way:
   STM32 <---> SD Card Module
   GND  <---> GND
   GND  <---> BL
   3V   <---> VCC
   PB10 <---> CLK
   PC3  <---> DIN
   PC14 <---> DC
   PC13 <---> CE
   PC15 <---> RST
  1. Build this project with CooCox CoIDE and Download Code to Flash.
  2. When you notice the fault alarmed by blinking LEDs, you should fix it and press RESET button.

How to compile

The only step is download the project and compile it with CooCox CoIDE.

Attributions

License

MIT

Credits

  • Monika Grądzka
  • Robert Kazimierczak

The project was conducted during the Microprocessor Lab course held by the Institute of Control and Information Engineering, Poznan University of Technology.

Supervisor: Tomasz Mańkowski

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •