11
MozziByte Noob Toot Stephen Barrass [email protected] sonification.com

MozziByte Noob Toot - sensorium.github.io · Navigate to your download location and open Mozzi-master.zip. Hello MozziByte. Hello MozziByte Insert the Arduino into MozziByte. Be careful

  • Upload
    lamthuy

  • View
    217

  • Download
    0

Embed Size (px)

Citation preview

Page 1: MozziByte Noob Toot - sensorium.github.io · Navigate to your download location and open Mozzi-master.zip. Hello MozziByte. Hello MozziByte Insert the Arduino into MozziByte. Be careful

MozziByte Noob Toot

Stephen [email protected]

sonification.com

Page 2: MozziByte Noob Toot - sensorium.github.io · Navigate to your download location and open Mozzi-master.zip. Hello MozziByte. Hello MozziByte Insert the Arduino into MozziByte. Be careful

BACKGROUND

https://sonification.com/tag/audiomostly/

Page 3: MozziByte Noob Toot - sensorium.github.io · Navigate to your download location and open Mozzi-master.zip. Hello MozziByte. Hello MozziByte Insert the Arduino into MozziByte. Be careful

● Super cheap !!!! - e.g. $3● Small and getting smaller e.g. 10x10mm (Pico, Beetle)● Low power e.g. 50 mA = 4 days on 5000mAh battery● Parallel mulitiplicity and scalability● Low latency – no Operating System overheads● With just 16 Mhz, 8 bit integer–Mozzi = 14 oscillators !● BUT Teensy floating point, TRE Arm Cortex runs linux● Graphic IDE + online Create editor + command line● Large Open Source community● Hundreds of additional libraries● Hundreds of additional shields

Pros and Cons

Page 4: MozziByte Noob Toot - sensorium.github.io · Navigate to your download location and open Mozzi-master.zip. Hello MozziByte. Hello MozziByte Insert the Arduino into MozziByte. Be careful

Hello Arduino

Arduino Create Web Editor https://create.arduino.cc/Install the Plugin https://create.arduino.cc/getting-started/plugin

OR Install the Software on your computer so you don't need the internet (Requires reboot)https://www.arduino.cc/en/Main/Software

Page 5: MozziByte Noob Toot - sensorium.github.io · Navigate to your download location and open Mozzi-master.zip. Hello MozziByte. Hello MozziByte Insert the Arduino into MozziByte. Be careful

Hello Pro Micro

Plug Pro Micro by USB cable to your laptop.For more info about Pro Micro seehttps://www.sparkfun.com/products/12640

Select the Board Tools→Board→Leonardo(Pro Micro mimics a Leonardo)

Load an ExampleExamples->Basics->BlinkReplace LED_BUILTIN with 17

Just for fun speed it up by changing 1000ms delay to 100ms

Page 6: MozziByte Noob Toot - sensorium.github.io · Navigate to your download location and open Mozzi-master.zip. Hello MozziByte. Hello MozziByte Insert the Arduino into MozziByte. Be careful

Hello Mozzi

Download the Mozzi sound synth for Arduino to your computerhttps://sensorium.github.io/Mozzi/

In the Arduino Tool, navigate to Sketch->Import Library.

At the top of the drop down list select Add Library.

Navigate to your download location and open Mozzi-master.zip.

Page 7: MozziByte Noob Toot - sensorium.github.io · Navigate to your download location and open Mozzi-master.zip. Hello MozziByte. Hello MozziByte Insert the Arduino into MozziByte. Be careful

Hello MozziByte

Page 8: MozziByte Noob Toot - sensorium.github.io · Navigate to your download location and open Mozzi-master.zip. Hello MozziByte. Hello MozziByte Insert the Arduino into MozziByte. Be careful

Hello MozziByte

Insert the Arduino into MozziByte.Be careful not to bend the legs.

USB connector on the Arduino goes OPPOSITE the Audio jack on MozziByte.

Plug in headphones. Brace yourself :)

Look in Examples->Mozzi->BasicsSinewave – try changing the frequencyVibrato – try changing the rate

Try out these examples. Fiddle with parameters. Fun.

Examples->SynthesisFMSynthPacketSynthResonantSample

USBUSB

AudioAudio

Page 9: MozziByte Noob Toot - sensorium.github.io · Navigate to your download location and open Mozzi-master.zip. Hello MozziByte. Hello MozziByte Insert the Arduino into MozziByte. Be careful

Hello Piezo

Red wire to Anolog 3Black wire to GND

Piezo_FrequencyThe pitch follows the pressure on the piezo sensor.

Piezo_FrequencyEchoAdds an echo effect

Piezo_SampleTriggerPiezo triggers sample – pitch is changed by LDR

A3A3

Page 10: MozziByte Noob Toot - sensorium.github.io · Navigate to your download location and open Mozzi-master.zip. Hello MozziByte. Hello MozziByte Insert the Arduino into MozziByte. Be careful

Light Sensor

The circuit:

+5V ---| LDR A0 ---| Resistor GND ---|

Create a Light Sensor using a LDR (light sensitive resistor) in series with a normal resistor to form a resistor ladder.

Download VolumeLDR.ino code to the MozziByteChange the loudness of a sinewave with a Light Sensor

A0A0

A0A0

Page 11: MozziByte Noob Toot - sensorium.github.io · Navigate to your download location and open Mozzi-master.zip. Hello MozziByte. Hello MozziByte Insert the Arduino into MozziByte. Be careful

Beyond Hello

Add another Light Resistor :))Solder LDR2 + resistor to Analog input 6 = D7 label

LDRx2_Wavepacket.inoLDR1 changes the pitch and LDR2 changes the brightness of an FM synth

LDRx2_Piezo-FMSynth.inoUse the Piezo to Trigger the 2 LDR Wavepacket Synth.

D7D7A6A6

A3A3

A0A0