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
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum PSoC 4 Pioneer Kit Community Project#051 – Music Player
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 27 subscribers
  • Views 2426 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#051 – Music Player

cy.wbz
cy.wbz over 12 years ago

Hello!

 

Today we are expanding on the SD card example that we posted last week. In that earlier example we showed you the new customer SD component used to interface with the SD card. In this example we want to expand on that example to play music, stored on the SD card, through a Speaker.

  • PSoC 4 Pioneer Kit
  • Sparkfun Prototype Shield
  • SD Card Breakout Board
  • VS1033D Breakout Board
  • 2 gig SD card

 

image

 

Forum Post Attachments:

 

At the bottom of this post we are including the following items:

  • Example Project Zip File
  • Zip File of Images
    • Project Schematic
    • Component Configurations

 

Components Used:

 

The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:

  • SD Card
  • CODEC Interface (SPI)
  • CyPins

 

The components are configured by right clicking on the component in your Top Design schematic view and selecting Configure. Please enable the following selections in the Configuration windows for the listed components above.

 

Firmware Description:

 

The main.c firmware is included in the example project. Please review the commented sections for more details.

 

In this example we expand on our earlier example. We have developed another custom component to interface with the MP3 codec board over the SPI interface.

 

This project makes the CY8CKIT-042 function as a Music Player. Like any music player we need a mass storage capability to store our songs. In this example we use the SD card to store our music. The PSoC4 reads the song files one by one and send it to the CODEC chip over an SPI bus. The player plays each song in order starting with the first song on the SD card. The user has the ability to go to the next some using the ‘NEXT_SONG’ button. On pressing the button the current song is skipped and the next one starts playing immediately.

 

Also remember, before using the SDCard, you’ll have to format it with SDFormatter tool. This is a onetime activity.

 

https://www.sdcard.org/downloads/formatter_3/sdfmt3_1.zip

 

Hardware Connections:

 

In this example the user will need to connect the SD Card breakout board and MP3 Codec board to the Sparkfun breadboard. This board will then connect into the Pioneer kit. The speaker needs to be wired up to the breadboard and then connected to the MP3 codec board as an output. The following image provides the wiring diagram to enable this design.

 

image

 

Test Your Project:

 

Program the example into the PSoC 4 kit. The music will play out of the speaker. Use the button on the sparkfun breadboard to switch between songs.

 

I hope this example can help you in your design.

 

Best,

Matt

Attachments:
Music_Player_with_SDCard.zip
2514.Project Images.zip
imageVS1033D_CODEC_Datasheet.pdf
imageSDCard_V1_0.pdf
  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 11 years ago

    Hi,

    Me and my buddy are having a hard time doing this project. we manage to get all the wiring and soldering down. Now the programming part is very difficult. We uploaded the main.c code from the link and we replaced some of the code with the updated patch that was required. Is there anything else we need to get done?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 11 years ago

    Hi,

    Me and my buddy are having a hard time doing this project. we manage to get all the wiring and soldering down. Now the programming part is very difficult. We uploaded the main.c code from the link and we replaced some of the code with the updated patch that was required. Is there anything else we need to get done?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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