A small noise/drone synth with percussion mode. Made using the Mozzi library and two Arduino Nanos.
Project showcase by Daniel Sinderson
Arduino-based digital hardware synthesizer modules. Goal was to design something to be cheap and super easy to build. First iteration.
Project in progress by Daniel Sinderson
Hi, I'm glad you're trying it out!
The input on D3 is for an external trigger. It's an optional input in the code so that you could trigger the internal envelope with a 0-5V trigger from a different piece of hardware. It can safely be ignored.
Hi and thanks! Sorry to hear that you're getting noise though. The most likely culprit is the PWM frequencies which will be 7.8KHz or 3.9KHz depending on the output (which is irritatingly high pitched in either case).
Which values did you use for the low-pass filter on the outputs? I made a mistake when uploading the schematics so the filter values of 47nF and 470 ohm won't filter the PWM as set in the code (fc is ~7204Hz with these values). The updated filter values are 0.1uF and 1K ohm (for an fc of about 1591Hz). I made a note in the project but I should really get around to uploading new schematics. This is my bad.
If you've already soldered things in place, it might be worth seeing what kind of signal you get with a higher PWM frequency before you start desoldering. Go to the setup() function in the code and replace this
TCCR0B = TCCR0B & B11111000 | B00000010; // set PWM freq on pin 5/6 to ~7.8kHz
TCCR1B = TCCR1B & B11111000 | B00000010; // set PWM freq on pin 9/10 to ~3.9kHz
TCCR2B = TCCR2B & B11111000 | B00000010; // set PWM freq on pin 3/11 to ~3.9kHz
TCCR0B = TCCR0B & B11111000 | B00000001; // set PWM freq on pin 5/6 to ~62kHz
TCCR1B = TCCR1B & B11111000 | B00000001; // set PWM freq on pin 9/10 to ~31kHz
TCCR2B = TCCR2B & B11111000 | B00000001; // set PWM freq on pin 3/11 to ~31kHz
If neither of these things work just let me know. Good luck!
Got it. Yea, the libraries are
1. AceButton v1.4.2
2. Encoder v1.2 (and yea, it's the PJRC Paul Stoffregan one)
I'll have to add all of this in the main text of the project. Thanks for sticking with it!
Or connect with your social account:
New here? Create an account