Your shopping cart is empty!
Play MP3 File on Maker Pi Pico Using CircuitPython
- Idris Zainal Abidin
- 13 Apr 2021
- 2614
Introduction
CircuitPython has released a stable version for the Raspberry Pi Pico which is version 6.2.0. The latest firmware has a built-in library for audiomp3. So for this tutorial, I would like to play MP3 files using Maker Pi Pico. Ok let’s try!
Video
This video shows how to play MP3 files on Raspberry Pi Pico / Maker Pi Pico.
Hardware Preparation
This is the list of items used in the video.
- Maker Pi Pico
- Raspberry Pi Pico - Pre-soldered Headers
- Maker Pi Pico Base
- 6W Stereo USB Powered 3.5mm Jack Speaker - Black
- Grove - Mini PIR Motion Sensor
Sample Program
This is CircuitPython sample code to play MP3 file on GP18 when button GP20 is pressed. Please replace with your MP3 file name and duration. Refer to the video for more detail.
Thank You
References:
- CircuitPython Essentials - CircuitPython MP3 Audio
Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.
"Please be reminded, this tutorial is prepared for you to try and learn.
You are encouraged to improve the code for a better application."