Holiday Notice: Elecrow will be on holiday starting January 26th (GMT+8). the last shipment day for service orders is January 21st. Orders can still be placed during the holiday, but deliveries will be delayed. [Learn More]

user-img

SEKSAN PINTAPRASAHT

  • 2 Projects
  • 3 Followers
  • Oct 03,2024
+ Follow

PicoSoundPlayer

RaspberryPICO + PCM5100 Circuitpython

PicoSoundPlayer
 
  • thumbnail-img
  • thumbnail-img
 

Hardware Components

  • RaspberryPICO

    raspberry
    X 1
  • PCM5100

    X 1

Story

UPDATE:2024/12/20

https://www.youtube.com/shorts/m6Y4_jlA9D8

PicoSoundPlayer

In this project, we will use the Raspberry Pi Pico along with the PCM5100 DAC to play MP3 files and output high-quality sound through a speaker! We'll control the music playback using a Python program that allows the Raspberry Pi Pico to read MP3 files from an SD Card and send the audio through the PCM5100 DAC.

Main components:

- Raspberry Pi Pico for processing music playback.

- PCM5100 DAC to convert digital audio signals to analog output.

- MP3 Decoder to read and play MP3 audio files.

- High-quality speakers for sound output.

Key features:

- Smooth MP3 playback via the PCM5100 DAC.

- Control the start/stop of music playback

- Supports continuous playback from a list of MP3 files.

Raspberry Pi Pico is highly versatile for audio projects. In this project, we will use Raspberry Pi Pico with the PCM5100 chip, a DAC (Digital-to-Analog Converter) used to convert digital signals to analog audio. This chip connects via the I2S (Inter-IC Sound) protocol, commonly found in high-quality audio devices such as music players and headphones. Additionally, we will use the CircuitPython library to play MP3 files, controlling the sound mute/unmute function using the Soft Mute (XSMT) feature.

ฺBasic Theory of I2S:

I2S is a standard protocol used for transmitting digital audio data between various devices, which consists of three signals:

  1. Bit Clock (BCK): This is used to define the timing for transmitting data bits.
  2. Word Select (WS) or also known as LRCK (Left-Right Clock): This indicates the direction of the data, specifying whether it is audio data for the left (Left) or right (Right) channel.
  3. Data: This consists of the audio data bits transmitted between the devices.

The transmission of audio data through I2S offers the advantage of high audio quality and reduces data loss during communication, making it popular in high-quality audio devices such as headphones, sound systems, and music players.

 

 

PCM5100 is a high-precision DAC chip from Texas Instruments, used to convert digital signals from the I2S protocol into analog audio. It delivers high-quality audio up to 32-bit resolution with a maximum sampling rate of 384 kHz.

Main features of PCM5100:

·         Converts digital signals into high-quality analog audio

·         Supports I2S protocol

·         Features Soft Mute to control muting without creating "pop" or "click" sounds

·         Reduces noise with ZeroCross and Soft Mute technologies, ensuring smooth volume adjustment

CIRCUIT:

 

CODE:

CODE :

https://github.com/YakrooThai/RaspberryPICO/blob/main/Ep8_PCM5100code1.py

https://github.com/YakrooThai/RaspberryPICO/blob/main/Ep8_PCM5100code2.py

You can contact

Please follow my YouTube channel. Still a newbie to make a YouTube channel.

by just clicking on SUBSCRIBE button. Thankyou

https://www.youtube.com/@Yakroo108

PicoSoundPlayer

RaspberryPICO + PCM5100 Circuitpython

1.7k
 
6
0
0

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 0 )
  • Like( 6 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.