Best model of Arduino (or similar) to run intensive Mozzi sketch

238 views
Skip to first unread message

Matt Bradshaw

unread,
Sep 2, 2015, 9:11:37 AM9/2/15
to Mozzi-users
Hi all. Have been playing with Mozzi over the last couple of weeks and it's awesome! Never thought I would be able to get such complex sounds out of an Arduino.

I've written the basis for a synth guitar (six oscillators, adjustable ASDR, some fun glitchy distortion effects), but now I want to connect a whole load of sensors and I think I've found the limit of my Arduino Uno's performance; when I try to do all the digitalRead() commands required, the audio starts to sound nasty. I suspect I could optimise my code slightly and squeeze a bit more performance out of the Uno, but just in case I can't figure that out, I wanted to ask:

What's the best model of Arduino for running Mozzi? Would a Teensy 3.1 be able to run more complicated sketches than an Uno?

Tim Barrass

unread,
Sep 3, 2015, 2:55:06 AM9/3/15
to mozzi...@googlegroups.com
Yep, a Teensy3.1 runs at 72MHz compared to 16MHz Uno.  Much faster, using the same code, so much more can be done.


--
You received this message because you are subscribed to the Google Groups "Mozzi-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozzi-users...@googlegroups.com.
To post to this group, send email to mozzi...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mozzi-users/bc29d2f5-0cb6-4ecb-9edb-a6fa870ba611%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matt Bradshaw

unread,
Sep 3, 2015, 8:15:28 AM9/3/15
to Mozzi-users
Excellent, thanks for the info, and also thanks for all your work on this fantastic project! Will share a video of my "guitar" once it's assembled in a few weeks.

Dan snazelle

unread,
Sep 3, 2015, 10:41:22 AM9/3/15
to mozzi...@googlegroups.com
Sorry to jump in but I have always wondered about the teensy 

If it can run the same code, is it as simple as porting your uno code to the chip and VOILA! You have a faster  program OR are there different registers , pinouts, timer settings  etc?


Thanks for any info 

Sent from my iPhone

Matt Bradshaw

unread,
Sep 7, 2015, 5:57:39 PM9/7/15
to Mozzi-users
I've just got the Teensy 3.1 working with Mozzi - so far it doesn't seem like much needs adjusting. You have to download and include a library called ADC (this is explained in a comment in the Mozzi examples), and I found I had to boost my output value (I think because the Teensy audio output is 12 bits rather than 8). The pinout seems very similar. Haven't adjusted my code much since getting the Teensy running, but I was generating quite a distinctive sound before with the Uno, and the Teensy seems to sound pretty much exactly the same but without the glitches I had with the Uno.
Reply all
Reply to author
Forward
0 new messages