element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Summer of FPGA
  • Challenges & Projects
  • Design Challenges
  • Summer of FPGA
  • More
  • Cancel
Summer of FPGA
Blog Audio Synth #5 - Testing the I2S PCM5102 DAC Decoder Board
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: a33333
  • Date Created: 17 Jan 2022 9:22 AM Date Created
  • Views 8147 views
  • Likes 6 likes
  • Comments 1 comment
Related
Recommended

Audio Synth #5 - Testing the I2S PCM5102 DAC Decoder Board

a33333
a33333
17 Jan 2022

Table of Contents

  1. Audio Synth #1 - The project
  2. Audio Synth #2 - Board introduction and IDE setup
  3. Audio Synth #3 - Arduino to CmodS7 COMM Test
  4. Audio Synth #4 - Use PWM to control LED
  5. Audio Synth #5 - Testing the I2S PCM5102 DAC Decoder Board
  6. Audio Synth #6 - Sound generation with CmodS7
  7. Audio Synth #7 - Design challenge ends, project continues

===========================================================

With only two weeks left before the challenge deadline, I was starting to get a bit worried but last weekend I finally got the I2S decoder board in the mail! Before connecting the DAC board to the CmodS7 board, I would like to make sure I have a functional DAC board. This is going to be a short blog about how I tested the board. 

PCM5102 Board

For sound generation I am going to use a PCM5102 Board which seems pretty popular with the Raspberry Pi and Arduino communities. 

I found the datasheet online: https://www.ti.com/lit/ds/symlink/pcm5102.pdf?ts=1641308262216&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FPCM5102

Comparing my DAC board layout with the application circuits on page 26, it looks like my board is pretty similar to figure 38, with the SCK pin of the IC connected to the audio source. Probably that pin can be shorted to ground using a solder blob on one of the few pads on the board.   

Testing the board

To test the board I used an old Raspberry Pi 3 running Raspbian Stretch OS. I found some pretty good instructions on this blog: https://blog.himbeer.me/2018/12/27/how-to-connect-a-pcm5102-i2s-dac-to-your-raspberry-pi/

I connected the board according to the instructions, except for the VIN pin of the DAC module, which I connected to 3V3 instead of 5V. I read that PCM5102 is 5V tolerant but I will be using 3V3 from CmodS7 in my future tests anyway, so I powered the board to 3V3, just the way it is supposed to be used. The next picture shows my DAC board connected to the Raspberry Pi. The audio output of the DAC board is connected to an inexpensive amplifier. 

 image

And here is a close-up of the board:

image

The next picture shows the audio interfaces being detected on the Raspberry Pi:

image

Card 0 corresponds to the audio output of the Raspberry Pi. Card 1 is my DAC (pcm5102a-hifi-0).


I was able to play with aplay command a few sample files. I did not use a HiFi system to do the testing. On my inexpensive portable amp, the sound quality is acceptable (no audible distortions, etc…). The next picture shows the output of the bash shell on the Pi while playing one of these files.

image

Now I know I have a functional DAC card and I can move forward.

  • Sign in to reply
  • DAB
    DAB over 3 years ago

    Interesting board.

    I look forward to hearing some audio and seeing some scope traces of waveforms.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube