MP3 or easy music code for CPB & Arduino

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
omnistraight
 
Posts: 6
Joined: Wed May 11, 2022 10:33 pm

MP3 or easy music code for CPB & Arduino

Post by omnistraight »

Hey y'all, I noticed that there's a way to play MP3s with CircuitPython and some really simplified ways of adding simple songs with MakeCode, but I'm not seeing anything similar for Arduino. I'm using a Circuit Playground Bluefruit, and I thought it would be cool to be able to play simple 8-bit fight game themes from it, but we're using Arduino for our course. Is there a way to do this?

Thanks!

User avatar
mikeysklar
 
Posts: 14165
Joined: Mon Aug 01, 2016 8:10 pm

Re: MP3 or easy music code for CPB & Arduino

Post by mikeysklar »

Between the CPB & Arduino mix you won't have an easy way to play MP3s.

The CPB uses an nRF52840 which does not have a DAC. The CircuitPython code is using PWM to play MP3s.

There is an Adafruit_MP3 library, but. It requires an M4 based chip and works with some Teensy models.

https://github.com/adafruit/Adafruit_MP3
https://learn.adafruit.com/native-mp3-d ... on-arduino

Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”