Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitluni/ULPSoundESP32
https://github.com/bitluni/ULPSoundESP32
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bitluni/ULPSoundESP32
- Owner: bitluni
- Created: 2019-04-07T18:38:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-21T19:04:48.000Z (almost 4 years ago)
- Last Synced: 2024-07-31T22:45:42.215Z (3 months ago)
- Language: Objective-C
- Size: 2.16 MB
- Stars: 177
- Watchers: 14
- Forks: 26
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ULP Sound Player
## Introduction
These sketch show how to use the Ultra Low Power coprocessor (U.L.P.) of the ESP32 in order to play music, and relieve main processor's core of this task. Only a lightweight task refill from time to time the ULP separate memory with instruction which contains samples. That could be usefull for videos games, where graphics can monopolize both 2 cores.This awesome video explain how it works :
https://www.youtube.com/watch?v=6PGrsZmYAJ0## Setup
Just connect your speaker to pin 25 if you use the mono mode, or connect left speaker to pin 25 and right one to pin 26. Then, just upload the corresponding sketch to your ESP32.
## Convert Your Sound
Sample array can be easily replaced with your sound :
- You can use this online converter which is straightforward : https://bitluni.net/wp-content/uploads/2018/03/WavetableEditor.html
- Or use audacity & an hexadecimal editor for tuning and a better undestanding of how it works.
Be carefull, ESP32 has only 4 MB of Flash, which can contain only few seconds of sound (depending of the sampling rate, stereo/mono mode etc...).