Hi, any advice? I had some electronics course this semester, so now I know the low pass filter at the output should cut out everything above 657 Hz (if I did the math right) - isn't it quite low?Any help appreciated.Rado.
But I will appreciate overall advice
1-NEVER connect the DAC pins directly to the speaker. If you do so, you shall burn them.2-Use an amplification circuit between the DAC pins and the speaker.3-The LM386 based amplifier recommended by Arduino is very simple and should make it for you. Anyway, I'd recommend you to consider using the SPI or I2C serials of Due connected to an Audio Codec device (i.e. Wolfson WM8731 ~US$19) as an alternative.
Over the last couple years I've been developing an audio library for Teensy 3.2. It's similar in capability to Due, but uses a completely different chip, so the code isn't directly compatible. The Teensy has a Cortex-M4 and this library uses the M4's DSP extensions for the audio processing (Due has Cortex-M3 which lacks the DSP instructions). There's also a shield with a codec chip, which is needed for good quality sound output.Last year we made a workshop and huge tutorial video showing the major features.https://www.youtube.com/watch?v=wqt55OAabVsThe section about oscillators and envelops starting at 25:04 might be interesting for your synthesis needs. The library is capable of running many of these oscillators and envelops and other effects simultaneously.But unlike Arduino Due, a limited number of pins are available. You might need to add extra hardware like a 2nd board and communicate between them with serial. In fact, if you go this route, you might use the Due with its many analog pins for connecting all those pots and have it send data by serial to the Teensy which could perform the synthesis work.Even if you don't use this, hopefully the video is at least interesting?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16