Upload
lamthuy
View
217
Download
0
Embed Size (px)
Citation preview
BACKGROUND
https://sonification.com/tag/audiomostly/
● 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
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
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
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.
Hello MozziByte
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
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
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
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