0% found this document useful (0 votes)
12 views16 pages

Arduino_Max

This document outlines the steps for setting up serial communication between an Arduino and MAX software, including wiring, coding, and monitoring data flow. It details how to use buttons and a potentiometer to control audio playback and volume in MAX. Additionally, it suggests improving the patch with a 'onebang' and 'delay' to prevent multiple triggers of audio playback.

Uploaded by

zengdeyu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views16 pages

Arduino_Max

This document outlines the steps for setting up serial communication between an Arduino and MAX software, including wiring, coding, and monitoring data flow. It details how to use buttons and a potentiometer to control audio playback and volume in MAX. Additionally, it suggests improving the patch with a 'onebang' and 'delay' to prevent multiple triggers of audio playback.

Uploaded by

zengdeyu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

ARDUINO > MAX

Serial Communication
STEP 1 Wiring the Arduino
STEP 2 Write and upload the Code:
Prepare the data to send to MAX using serial.print()
STEP 3 Open Serial Monitor:
Check the data is being exported in the correct format
Press the buttons and turn the potentiometer to see the values change

Press to open the


serial monitor

Button 1 Button 2 Potentiometer reading


STEP 4

Close the Arduino Software

BUT

Keep The Arduino Connected to your Computer


n.b. The data will be still flowing into your computer without the Arduino software open,
we will use MAX to receive it.
STEP 5 Open MAX patch
named serialCommunication.maxpat

1. Lock the patch


STEP 6 1: Open the MAX Console
2: Press the print message

Press ‘print’
Open Max Console
STEP 6 1: Look for ‘usbserial’ in the list
2: Note down the port letter (in this case ‘d’)
STEP 7 1: Unlock the patch
2: Change the letter in the serial object to match
STEP 8 1: Lock the patch
2: Turn on the toggle to start serial communication

2. Turn On toggle

Flow of data

You should see numbers


change here when you
prese the Arduino buttons
1. Lock the patch and potentiometer.
Now we we use the data from the Arduino to control audio in MAX
- The buttons will trigger the audio to play

- The potentiometer will control the volume


STEP 9 Drag in two separate audio tracks

Open audio library


STEP 10 Copy the rest of this patch
STEP 11 1. Lock patch
2. Turn on Audio
3. Interact with the Arduino to play sounds and control volume

2. Turn on Audio

1. Lock the patch


STEP 12 Improve the patch with a ‘onebang’ and ‘delay’
This will fix the audio from triggering multiple times

‘onebang’ only
allows one bang
through until reset

Pressing this button


resets the ‘onebang’
to allow another
Delays the bang through
‘onebang’ reset
by half a second
Sound In Space
Brief:
Develop a sound installation, artwork or design which considers the space in the
design / meaning of the work

The space itself will become the instrument, sounds can be triggered through its use
by people or the environment itself.

You might also like