Noise generator ported to run on small AVR, also Arduino compatible

Feeling a bit left out because he didn’t have a PICAXE on hand, [Rob Miles] decided to port the Luna Mod code so that it would work on an AVR chip. He chose to build his around an ATtiny45, but also mentions that this is Arduino compatible.

This case layout is a bit different from the original Make version, but we like this look just a bit better. It might not satisfy your need for that hipster looking enclosure, but the repurposed macadamia nut box looks seems it was built for this purpose. Take a look as the video after the break to see the final product and hear it spewing newly composed¬†cacophony. [Rob] is sharing the sketch as a dropbox file but we’ve also included our own hosted link after the break in case is stops working.

Source Code

Comments

  1. default says:

    Love it!

  2. EATY1 says:

    Me too, Like the auduino project some years ago.

  3. rob says:

    This is about as much fun as you can have for $5. The kids love it.

  4. bandwagon says:

    I thought just about all code for AVR was “Arduino compatible”. Am I wrong in this assumption?

  5. rob says:

    I programmed the attiny via the Arduino IDE and ArduinoISP so they’re even more the same.

  6. Alan says:

    Sounds great. A question on the code though – What am I missing? I can’t see a main(), and some of the functions are not defined or provided – are they Arduino library functions? I intend to implement this on an avr but not an arduino, so should I just work out my own functions for those not given?

  7. I started pulling some electronics together last night to build one of these… got it mostly done except for the brain and power source. It looks freaking awexome so far, unlike any Luna Mod I’ve ever seen.

    I think I’ll take a stab at making the code even better ;-)

    @Alan – This link (same as above) has Arduino IDE compatible code that doesn’t have a “main”. The PDE file compiles for me just fine:

    http://dl.dropbox.com/u/32611590/Arduino/Sketches/lunaMod45remix.pde

  8. rob says:

    The sketch was written directly in the Arduino IDE so the layout is a little different than you may be used to but I didn’t use any libraries or anything fancy so it should be easy to modify/translate.
    Someone smarter could definitely clean the code up a bit as well. If you look at Paul Badger’s synth code there is a ton of inspiration for tweaking the output.

  9. Well I got my Arduino programmed last night with the lunaMod45remix sketch, and it was a ton of fun. Now I just need to finish the construction.

    The code is infinitely tweakable. I started tweaking and couldn’t stop. Then I went to compare the port to the original picaxe basic code. There are definite differences in the way the code runs, which I think makes the sound much different than the original Luna Mod. I came up with some variations that sounded wicked cool, so I’m thinking of making something that will handle presets, among other options. I’ll update when I’m further along.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 93,771 other followers