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:

History

first: empty project default tip

2014-11-16, by mimi3 [Sun, 16 Nov 2014 02:27:00 +0000] rev 0

first: empty project