Wave Player application using PWM out.

Dependencies:   mbed

Information

Under construction

Description

This is a simple wave player application using PWM port.

Spec.

  • Input data: WAVE file converted by foobar2000.
  • Data length: 16bit, 8bit.
  • fs : 32kHz,44.1kHz,48kHz.
  • Channel: Stereo, mono
  • Output data: PWM 11bit resolutuon. fs and Channel are the same as input data.

Board

NUCLEO-F411RE

Using Library

Terminal base CUI

UART Terminal (e.g. Tera Term) base operation, /media/uploads/mimi3/wave_player_pwm_cui_terminal.png

Tera Tem settings

  • Serial om port: Baudrate 115200bps.
  • Main Menu - [Setup] - [Terminal] dialog:

New-line settings.

/media/uploads/mimi3/terraterm-new-line-settings.png

Operation

KeyOperationon Playon Stopon Pause
0 - 9Select a music or Folder.-o-
b, ESCBack to root folder.-o-
b, ESCStop playing.o-o
l(el), EnterList files.-oo
pPause or Play.PausePlayPlay
qQuit player mode.ooo
rRepeat current song.ooo
sStop playing.o-o
., > , SpaceNext song.ooo
<Previous song.ooo
[Back to top of music.ooo
cRepeat all music in folderooo
1 - 4Play slowly 4 step.o-o
5 - 7Play rappidly 3 step.o-o
hHelp menu.-oo

Playing music

Now You are hearing the sound from PWM port of mbed board.

Music01:

Music02:

Music03:

Files at this revision

API Documentation at this revision

Comitter:
mimi3
Date:
Sun Nov 16 02:27:00 2014 +0000
Commit message:
first: empty project

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 2878df0860f1 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Nov 16 02:27:00 2014 +0000
@@ -0,0 +1,9 @@
+#include "mbed.h"
+
+
+
+
+int main() {
+    
+    
+}
diff -r 000000000000 -r 2878df0860f1 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Nov 16 02:27:00 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89
\ No newline at end of file