Go Down

Topic: audio with arduino due  (Read 287 times) previous topic - next topic

Energisse


I want to make music with an arduino due and with a sd card


I succeeded to do it on an arduino uno but the sound was of poor quality

but on the arduino due a library is not compatible how do I do?

Sorry for my English

DVDdoug

I've never used the Due.

It has a DAC so that's a LOT better than trying to get analog from PWM.    It's a 12-bit DAC which isn't "terrible" but it's not CD quality either.


MarkT

And the other issue is the DAC on the Due isn't great, its got sparkle codes and doesn't output rail to rail
either...  An external I2S DAC is probably the best approach for the Due - not sure if someone's got a library
for that though.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

pjrc

I want to make music with an arduino due and with a sd card
Any chance you could explain "want to make music"?

Does this mean simply playing 1 file from the SD card?

Or do you wish to compose music, perhaps with many small files for individual notes, percussive sounds, maybe other effects?

Or something else I'm not imagining?

MarkT

Another way to generate high quality audio is to generate digital class D directly, using PWM and
noise-shaping techniques.  No need for a DAC at all.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Go Up