nRF52_pwm_audio Wiki
Application to demonstrate PWM audio functionality on nRF52.
Brought to you by:
newtom
Welcome to your wiki!
This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
The wiki uses Markdown syntax.
The included program will demonstrate the functionality of the nrf_pwm_audio module.
Upon start, it will play back a sentence "Please use the buttons on the DSK!". By pressing buttons 1, 2, or 3 the program will play back "Sample one" (sampled at 7812 Hz), "Sample two" (sampled at 15625 Hz), or "Sample three" (sampled at 31250 Hz), respectively. By pressing button 4 any current playback will be stopped.
To hear the output, you should connect a headphone between Vdd (not GND!) and the output pin (by default: GPIO pin 3).
Possibilities to reduce static noise:
To use own audio clips, convert any digital audio to 8-bit signed integer format at any of the supported sampling rates, save as headerless RAW data and convert to .c/.h using e.g. bin2c. For the audio part you may want to use the free software Audacity.
Last edit: Tamas Harczos 2019-10-03