Giter Club home page Giter Club logo

stmwavplayermr's Introduction

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

stmwavplayermr's People

Contributors

gradzka avatar kazimierczak-robert avatar monisia avatar

Stargazers

tiretrak avatar Hoang Van Binh avatar

Watchers

James Cloos avatar Maciej Olejnik avatar Kishan Joshi avatar Giangiacomo Zaffini avatar Tomasz Mańkowski avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.