welcome: please sign in
location: Diff for "MiniArDSP"
Differences between revisions 5 and 6
Revision 5 as of 2013-01-18 05:42:03
Size: 1395
Editor: guest
Comment:
Revision 6 as of 2013-01-18 05:44:53
Size: 1641
Editor: guest
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
The follow schematic is the basic version to get started. There will eventually be a better version with a dual opamp, and gain, mix, feedback, and level knobs. But that might take a bit to finish. The following schematic is the basic version to get started. There will eventually be a better version with a dual opamp, and gain, mix, feedback, and level knobs. But that might take a bit to finish.  The 3.9k and 1M resistors should be 1% (or better) if possible.
Line 15: Line 15:
The following is an Arduino library (just a first rev, nothing fancy). Download the zipped file, and uncompress it. The entire folder needs to be placed in you ''libraries'' folder in your user directory. If you are not sure where this is, check out our description under the The following is an Arduino library (just a first rev, nothing fancy). Download the zipped file, and uncompress it. The entire folder needs to be placed in you ''libraries'' folder in your user directory. If you are not sure where this is, check out our description in the [[http://wiki.openmusiclabs.com/wiki/AudioCodecShield|CodecShield Wiki]]. Right now there is only one example in the library, and it is a tremolo effect.

==== Example code ====

Minimalist Arduino DSP

About Minimalist Arduino DSP

This is the the most basic setup for doing decent quality audio effects with an Arduino. The system is based upon both our PWM tutorial and our ATmega ADC tutorial. The basic setup is a 10 bit value read in from ADC0, and played out via a 16 bit, Dual PWM on pins 9 and 10. there are 2 buttons, on pins 2 and 3, which can be used to modify parameters. The reason for buttons and not knobs, is that the ADC is already completely consumed with the analog audio signal coming in. This is a more focused version of our basic Arduino PWM setup, targetted at effects pedals.

Hardware setup

The following schematic is the basic version to get started. There will eventually be a better version with a dual opamp, and gain, mix, feedback, and level knobs. But that might take a bit to finish. The 3.9k and 1M resistors should be 1% (or better) if possible.

pwm_basic_sm.jpg

Arduino library

The following is an Arduino library (just a first rev, nothing fancy). Download the zipped file, and uncompress it. The entire folder needs to be placed in you libraries folder in your user directory. If you are not sure where this is, check out our description in the CodecShield Wiki. Right now there is only one example in the library, and it is a tremolo effect.

Example code

MiniArDSP (last edited 2013-09-16 16:48:45 by guest)