MozziByte is an audio shield for the Arduino Pro Micro microcontroller.
This small, cheap and robust platform allows designers, artists, musicians, makers and students to rapidly prototype and create innovative and imaginative sonic products, sound art installations, boutique synthesisers and sound toys.
The MozziByte plugs the Arduino into an audio amp for instant sonic gratification using the Mozzi synth library.
Or explore sonic ideas by adding sensors, switches and knobs on the breadboard, so the sounds respond to light, force, acceleration, or anything else that can be sensed.
For inspiration check out the Gallery on the Mozzi site.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Ingredients
Step 2: Insert the Arduino Into the MozziByte
- Insert the pins of the Arduino Pro-micro into the socket strips on the MozziByte.
- The USB connector on the Arduino sits above at the white battery connector on the MozziByte. Check the alignment by making sure that pin AO goes into socket AO. Take care not to bend the pins when inserting into the sockets.
- Connect the USB cable to the Arduino.
- Plug the earphone jack into the audio socket on the MozziByte.
Step 3: Arduino Web Editor
- Install the Arduino Web Plugin.
- Register an account on the Arduino Web Editor, and then Login
- Connect the Arduinoto your Computer using the USB cable
- Blink the LED on the Arduino
- Click on Examples->01.Basics and choose the Blink example to load it into the Editor.
ADD THIS LINE to the Blink example code above the setup() routine (see image).
#define LED_BUILTIN 17 // address of the LED on Arduino Pro-micro
Under the Tools menu click on Board and selectPro-micro, or if its not there then Leonardo
Press the tick button to compile the code for the Pro-micro.
Under the Tools menu click on Port and select the USB port that your Arduino is connected to.
- Press the arrow>to upload the code into the Arduino.
- The two red LEDs will blink as the code uploads.
- One LED will continue to blink, once every second.
- More info on using the Arduino Web Editor.
- Change the speed of blinking
- look at the loop() routine in the code.
- change delay(1000) to delay(100). This makes the LED blink 10x faster- every 100ms..
- change how long the LED stays on by changing the duration of the the other delay function to 100ms too. Now it will blink very quickly !
Step 4: Mozzi Synth Library
- Download the Mozzi Synth Library for Arduino from https://sensorium.github.io/Mozzi/download/. Choose the YELLOW button which links the latest development version on GitHub. Click the GREEN button that says Clone or Download, then click on DOWNLOAD ZIP. The Mozzi-master.zip file will appear in your Downloads folder.
- Import Mozzi into the Arduino Web Editor. First click on Libraries, then press the up arrow button to import the Mozzi-master.zip file. Now click the Custom Library tab to see Mozzi and a folder of Examples.
- Lights, Action, Sound. In Mozzi Examples clickon the 01.Basics folder and select the Sinewave example to load it into the editor. Click the arrow > to upload the code into the Arduino. Put on your earphones and you should hear a sound :) Its just a boring sinewave tone which is as annoying as a mosquito buzzing around your head in the dark.
- Change the pitch of that whining MozziByte sound by changing the frequency in the setup() routine (see image).
Step 5: Play :)
Try playing around with various parameters to change the sounds.
Step 6: Next Steps
The next (upcoming) MozziByte Instructable will show you how to add knobs and sensors to create your own interactive sound toy.