# MP3 player without an SD card

**URL:** <https://community.particle.io/t/mp3-player-without-an-sd-card/47682>\
**Category:** General\
**Created:** [February 9, 2019, 10:38pm UTC](https://community.particle.io/t/mp3-player-without-an-sd-card/47682 "2019-02-09T22:38:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff-Rice](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@Jeff-Rice](https://community.particle.io/u/Jeff-Rice)\
**Post date:** [February 9, 2019, 10:38pm UTC](https://community.particle.io/t/mp3-player-without-an-sd-card/47682/1 "2019-02-09T22:38:33Z")

</div>

Hello, I was recently looking around for a sound module and buzzer that would play mp3 files, and this is what I found:

> **[Useful Tf Card U Disk Mini Audio Mp3 Player Voice Sound Module For Arduino - Buy...](https://www.alibaba.com/product-detail/Useful-TF-Card-U-Disk-Mini_60730638891.html?spm=a2700.7724838.2017115.1.5dd4737dVjJbVN)**
>
> Useful Tf Card U Disk Mini Audio Mp3 Player Voice Sound Module For Arduino , Find Complete Details about Useful Tf Card U Disk Mini Audio Mp3 Player Voice Sound Module For Arduino,Mp3 Player Module,Sound Module,Voice Module from Other Electronic...

I was just wondering if there was a sound module out there that did not require an SD card to play mp3 files (maybe could be updated by cloud?) as well as an appropriate buzzer that would play the code. Please tell me if the one below can do that.

> **[Piezo Buzzer](https://www.adafruit.com/product/160)**
>
> Piezo buzzers are used for making beeps, tones and alerts. This one is petite but loud! Drive it with 3-30V peak-to-peak square wave. To use, connect one pin to ground (either one) and the ...

Thank you

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [February 10, 2019, 8:24am UTC](https://community.particle.io/t/mp3-player-without-an-sd-card/47682/2 "2019-02-10T08:24:17Z")

</div>

You could use a VS1053 based board like this

> **[VS1053 Codec + MicroSD Breakout - MP3/WAV/MIDI/OGG Play + Record](https://www.adafruit.com/product/1381)**
>
> This breakout board is the ultimate companion for the VLSI VS1053B DSP codec chip. The VS1053 can decode a wide variety of audio formats such as MP3, AAC, Ogg Vorbis, WMA, MIDI, FLAC, WAV ...

Although this is more expensive _and_ also features an microSD slot, you can send the data to the decoder from a RAM/flash based buffer too.

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [February 10, 2019, 9:14am UTC](https://community.particle.io/t/mp3-player-without-an-sd-card/47682/3 "2019-02-10T09:14:27Z")

</div>

Furthermore, like the piezo page mentions, they’re me t for beeps, tones and alerts. Do not expect that thing to play music nicely. It’ll sound more like Mario from the good old days, but annoyingly so.  
That said, it’s relatively easy to get that to play some tunes. Have a look at the internet button library, there should be an example in there. Alternatively, the Christmas tree shield library.

---

<div class="post-metadata">

**Author:** ![VideoLiam](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/videoliam/32/10331_2.png) [@VideoLiam](https://community.particle.io/u/VideoLiam)\
**Post date:** [February 10, 2019, 10:16am UTC](https://community.particle.io/t/mp3-player-without-an-sd-card/47682/4 "2019-02-10T10:16:03Z")

</div>

Hi,

You could use the Dfplayer module which is cheeper still about $5.00 and add a speaker.

[Dfplayer](https://www.dfrobot.com/wiki/index.php/DFPlayer_Mini_SKU:DFR0299)

There is a libary available, but you have to alter the pins in the examples sketch (Note to self-Need to learn how to edit the libary ) But I have managed to get it working…

It is just the sort of ticket to get devices to make sounds and even anouncements…

Liam

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [February 10, 2019, 12:31pm UTC](https://community.particle.io/t/mp3-player-without-an-sd-card/47682/5 "2019-02-10T12:31:51Z")

</div>

@VideoLiam, the module he has already referenced as a no-go due to the _need_ for SD is a DFPlayer clone 😉

Or have you figured out a way to send the actual MP3 data to the DFPlayer _without_ going via SD? That would be cool.

---

<div class="post-metadata">

**Author:** ![VideoLiam](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/videoliam/32/10331_2.png) [@VideoLiam](https://community.particle.io/u/VideoLiam)\
**Post date:** [February 10, 2019, 10:32pm UTC](https://community.particle.io/t/mp3-player-without-an-sd-card/47682/6 "2019-02-10T22:32:05Z")

</div>

Slight: Douh! on miss reading the no SD card bit…

But with that said… something is gona make me re-read the documentation tomorrow lunch time…

But that aside, were is he planing on getting the MP3 file from? I see he mentions the cloud… but that needs a data link… and the Particle family of devices don’t have MASSES of onboard storage, so with I doubt he planning on trying to upload a MP3 file over the cloud interface… 512 (I can not remember the exact limit) bytes at time… You could bolt on RAM, but I doubt that would be quick enough or cost soooo much. which makes the Dfplayer ideal for small devices…

Liam

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [February 11, 2019, 7:02am UTC](https://community.particle.io/t/mp3-player-without-an-sd-card/47682/7 "2019-02-11T07:02:40Z")

</div>

For short jingles and notification tunes a few KB should be able to spare for.

But I’m also not absolutely sure whether the no-SD demand is due to the fact that the DFPlayer does _not_ allow to update the SD (which the VS1053) or a the use of SD in general.  
If a _writable_ SD would be an option then bigger MP3s can be transfered (with some effort tho’).  
The mesh devices would even give you 2MB onboard flash to use (once APIs are exposed to facilitate that in user applications).

IIRC the chunk size is 1024 for WiFi and 512 for cellular devices.

---

<div class="post-metadata">

**Author:** ![Jeff-Rice](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@Jeff-Rice](https://community.particle.io/u/Jeff-Rice)\
**Post date:** [March 1, 2019, 2:26am UTC](https://community.particle.io/t/mp3-player-without-an-sd-card/47682/8 "2019-03-01T02:26:18Z")

</div>

@ScruffR Sorry to reply late, but I have been trying to understand what has been going on in this thread for a few days now… If I do use the piezo buzzer to play some simple tones, how would I do it? Is there a library available or some code to make it play some tunes?

I do not want an SD card, as I have to upload mp3 files to play to the photon. So if there is a different module that can do this, with different sound audio that works, please reference it. Thanks!

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [March 1, 2019, 6:08am UTC](https://community.particle.io/t/mp3-player-without-an-sd-card/47682/9 "2019-03-01T06:08:23Z")

</div>

> [@Jeff-Rice](#):
>
> I do not want an SD card, as I have to upload mp3 files to play to the photon

SD card and dynamic MP3 files are not mutually exclusive, so that sentence doesn't make much sense to me.  
However, while the module I suggested comes with an SD card slot noone forces you to use it - although I'd still recommend to use it for "buffering" the dynamic MP3 before playback.

But this is what I _ **already** _ said in my first post too

> [@ScruffR](#):
>
> also features an microSD slot, you can send the data to the decoder from a RAM/flash based buffer too.

* * *

> [@Jeff-Rice](#):
>
> If I do use the piezo buzzer to play some simple tones, how would I do it?

I didn't suggest the piezo buzzer, nor did @moors7. He just picked on on the buzzer you showed in your original post and also mentioned this

> [@Moors7](#):
>
> Have a look at the internet button library, there should be an example in there. Alternatively, the Christmas tree shield library.

---

<div class="post-metadata">

**Author:** ![Jeff-Rice](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@Jeff-Rice](https://community.particle.io/u/Jeff-Rice)\
**Post date:** [March 1, 2019, 6:26pm UTC](https://community.particle.io/t/mp3-player-without-an-sd-card/47682/10 "2019-03-01T18:26:44Z")

</div>

To use the library, I can just connect the piezo directly to the Photon _then_ use the library? Is there link on the wiring or how to do this? Thank you for your help.
