• 0
jgoglio

Getting Started w/ Audio on Zybo

Question

Hi everyone,

 

I have seen discussion on this topic already in previous posts, but I am hoping someone has made a little progress and just hasn't posted yet.

 

I'm hoping to be able to play audio (SFX & music) in a pong game I've made with Zybo. Does anyone have tips/experience on how to achieve this?
FYI: I have an SD card, so that would be an option for audio file storage.

 

Thanks for your time and effort! I am enjoying Zybo immensely so far.

-Josh

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 1

Hi Josh,

A good reference may be the DMA audio demo with the zybo located here https://reference.digilentinc.com/learn/programmable-logic/tutorials/zybo-dma-audio-demo/start

It will at least show you the I2S controller and the initialization sequence of the codec. You could use the SD card but it may be worth trying to load the sounds into the DDR on startup if there is enough space.

If your project doesn't use the arm core, the guitar looper demo sets up a different codec but the only difference is in the start up i2C writes. Namely this project uses the I2S interface through HDL. That demo can be found here https://reference.digilentinc.com/learn/programmable-logic/tutorials/nexys-video-looper-demo/start

Good luck! Sounds like a fun addition to a pong game! After listening to all 33 sounds....... I have concluded my favorite blip is pongblipD#5

https://www.freesound.org/people/NoiseCollector/packs/254/?page=1#sound

- Sam

 

Edited by sLowe

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now