Two Way Serial Communication Max/Arduino With Led Feedback


The Skull Kontroller has several different patches that can be switched on and off. It was necessary to know the internal state of the Max patch i.e. to know which patches are off and which are on. This can be achieved through visual feedback using LED’s.This meant having a two way flow of data across a serial connection. When a switch (linked to the Arduino) is activated it switches a toggle in Max that then sends out a number representing a letter in ascii. This is communicated serially from Max to the Arduino. Once in the Arduino’s serial buffer it interacts with the following code:

incomingByte = Serial.read();
// if it’s a capital H (ASCII 72), turn on the LED: // nb must be capitals
if (incomingByte == ‘H’) { // is there a way to encapsulate these in a for loop
digitalWrite(ledPin, HIGH);
// Serial.print (“on”);
}
// if it’s an L (ASCII 76) turn off the LED:
if (incomingByte == ‘L’) {
digitalWrite(ledPin, LOW);
// Serial.print (“off”);
}

When a relevant “letter” is sent by Max and received by the Arduino the appropriate led is switched on. The leds will be integrated in the switches as shown here:

and here:

The Max code:

———-begin_max5_patcher———-
7213.3oc6cs0jiaak94w+Jv14gXuUO8R.d26Cob4jcS1xtrqcR1Z2JSJWrkX
2M8PQphjZ5oSp7eeAvATMojHvgRjTWZ4ob2Mknn.9NW.NWv47O9p2cy84eIt
7Fx2R9qj28t+wW8t2IeIwK7N00u6lEQeYVZTo71tIK9476+0atEdqp3uTIe4
BRYzhk+ve32W+NKipl8TR1i+RQ7rJ3KfZY6bm0sDpOS7Kep3mLq6rH+M0GJY
t7gw+BdOk5V+nxVsHIKMtRN.rTu3C4YUYQKhkefuqHIJswsmupp99opWEdop
WVFCClatY82p3QUl72kuAkOzDu5+7q9JwOtEIpLKewh3rpsfk+RYLo5ojRxr
7rLNPjjm8wrpbRQ7x7hJ9aESRxphKxhR+XVYUTULI+A4Kye7DIF9wr6il8IB
+CId4nh4qRxx+XVT1bwCspHOkjFOu71Ol8TzxpjYjGhimK+HwUyt6iY4YxOX
4mVklR9D7IRiKpGpoI7wU9pL430uahmuSnj1YGH+EyW9KK6tndN6j5Q6I0yZ
7IQEwKx+b7bxSbDs7onOEuSjg0Mx3YK4issD+xShRB97cAKggmK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8o0kw9Xv
I2dNl7baJk27pCkphYO89zompFXhpNstgxGCN41ywjaXSY0lWMDHnIeKxlVS
P7wXolaOGShjKrABxBFTDzjGyXSq2d7w3wL2d5nBGul7fMu5P0rfwMP9GA+k
YxcYro0UO9XvI29FztvlxEMu5PopXbjf+QvYYl7UFyahC.Olna1SbhAEYHU0
6VEXV4UGJO3HLXO3zSAwXJbuBkM0yuA9Iu5PwOLREt8jCTjQ.MjgsGNMyXH2
9GA2qYx6Zro02P9XvI2dNlXdM0L27pCkphwoQ9GAuqYx4Zro00PnhN0zppCU
5TLwVViJar5aX2gjGhAIatHMnpu5PkTwv661S9LlUS8uMu5PkTw3GP+igCSM
IoNs9KECLI4So8eK.gpC.Hc8UGJKHlQqa3dIv34GzH26jWcngMEytq7CmdVP
iwMcZUC5gZa7S7XBki4mXW1gAmbl3wDCq9iILEJPkgt8bYUeYRXSccqURXot
5PGrAivf8PGSX38mzQDCyPJXhUkhYwnvoUsUHpkblVtoPLpHBmV0VnNudgSL
NgJ1eGhpT9E+yu5+GikCqvB
———–end_max5_patcher———–

Comments (0)

Skull Kontrol Max Patch – Controlling Data Flow


When swapping between patches that are controlled by the same set of sensors the audio has been “jumping”. When switching a patch off the last used sensor value is stored in the patch. The new patch is then used but also switched back off. When the original patch is now switched back on the sensor value is different to the stored sensor value and the audio skips or jumps as the patch updates to the new setting. To ensure smooth operation of the instrument it was necessary to remove this unwanted jump. The solution involved comparing the incoming sensor data with the stored value using several if statements. If the incoming sensor data reached a +/- 5 threshold around the stored value then the incoming sensor data began to update the controls within the patch.

Here are the “p range” subpatch if statements:

The patch also contains a method for freezing the sensor value by triggering the gate. If a useful sensor value is reached then the gate can be triggered locking the value within the patch.

The patch also contains a method for storing and recalling preset using the “autopattr”, “pattrstorage”, and “preset” objects.
Auopattr automatically names dials and sliders in the patch.
Their values are stored in PotentVal within pattrstorage.
These values can be updated and assigned to buttons in the preset object. Click “store 1” to store the current values from each pot.
Change the position of the dials and then press “1” (or turn Preset to 1 or press button 1 on the preset object) to recall the stored values.

The Max for Live potentiometers are useful because they have integrated labels – name and value!

Here’s the code:


----------begin_max5_patcher----------
4482.3oc6cs0iaijc941+JJHrXyLvs6gEuHREjEAIal.jG1cFDXj7vzKFPIV
RhioXokjpa2Y28+dNWJJQJQJwtsDkngMfUKQVE4o9NWpy4T29au6tQS0eVkO
R7OK9Ewc282d2c2QWBuvclee2nUgedVRXNUrQyzqVoRKFcOeuB0mKnq+usQu
NrnHSDtoPuJrHdVXRxKhzvUpbQTbXRtHLMRjmDGoxxEwohhkJATkYKe3wzOt
TEmIdJLYCT5vLkHuPmohvh8y5B388+DlHdNtXIbA50f2ObghqZtprpyBSESU
hMqiBKfpiuQfviWjB+nPKltonPmt6smAUsPnm9apYEOH9iIwy9j3wQz6VHeb
DVE9GXomsIKCnjxW07L8JgJb1RwZcAPG+wkgoK3RtVmGWDqSE54zu207gekR
u1b38fuguSmIJ1jAMSlVf2nT.WiKCSu3UZff+drvYJDmoaZfLl7J4OIwopY5
MoDSRFXtZ5lU5MEIpBhmZYt5bcZQd7+mhJp8CkWl3QwoK9U3cUvhJRqItv8E
t1zejdSv+X648fk3uXpVbDIW.z5GjVip7JPQBVjICvkQ6Ho3zRJRhW6e7t2g
eb+Wnf4G0hBUdwio+mwfTiXFwjM3o5ywErLXIT+AQpFjcY9HAkkBKYwKVVHV
hbQfPDfPHv6YwJ71ONZsHij.XtCvaMLbSMY.uTjXAHeBuLPfNG3gDeE.e5VP
KpnjYBWMWaTL.Yr+r94cM.nBpLiFj.zBDqTEYn.aXVwVoMQwyZAfsSqnzQ57
hvo5mT0IcflYhmTAA.cM72H389+hhs6PD3Nf7.qAPRdLUBMEiJZn38+vG7Jw
i4GHdJ9tCQzu+9c.C7jxgGUI9BR3PCOU8b4aBztCgRmo2rX41VJ27wpVnWul
qI.rOg5raexDMOUgjeFT93EKTbS7iHmPMeNz5ieRAVtLUE.pMQwZth+1lUqw
p9LhGLEh+bpp3Y0VDJKVuAUuWoiPD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BtkkqRliI6RnSqcVpW1i+iolNony.cb
2Sx3Ks4XIG8hiTIurPLGJgy3NAx8wgX+E4.CwNfc4zbHGEbLKMAt21sEW9Pz
jSJ1IZJ1W58USN2hdVmo38NYmsNlLwx1POZRUBj8PLeWljp3XF.Ha6Se91DX
cwClW5Z2CgyaaZs7Y6jm0wNiS7mbEGtGW29Xajk65q5gWdqfw0brXK2s2JCC
q8AI8b41HaAvlOjLGKOl8Oeuq4VCc0fU+.6cc9R8ljHATE9foqbA5qoTOWj8
uxNC7Bz6e4gKm.ONFP.lJO5ovBb7sIWvv8juKbFCLaBEbx587OJZa+0ZDdk6
XmAcHJWquRAAedCVj157OUTtSthpcv0WGlQVjpp.RwtveEhjo9db42UdjOVZ
DCS+zE0sayQ7qr19UYatcO9KYbkoGX8kIMit6O8wLX7IV4TsLmwlTaokb37E
q44J1Ab7tRSAt2fzjcGno.Y+RSxtPSV8KMY0AZxO3FjllzqzjemoIYuQSimz
Ud2MFMMwsWoo8dcsrV66UwoIcwjoeuRRxtPRA8qUb6tHMsmo9KNM0EKA1St8
nIYOy6bFnzjS+1Cri0smLdm7nyoe8JXuW2MAN42E6SN8qWA9Ackl5Qd2jau9
V5hy3td8KIYa2AOU52fV1CBZasU0u5ctcwloiS+RScwKydVfxoS8A2u1wc8u
AEnF2E2w6W+B7rtAwIutX0b7WRmKvO9Gu6+mP.TQ4
-----------end_max5_patcher-----------
Comments (0)

Dust Soundtrack Performed at La MaMa, New York

Dust still

Dust still


The Dust soundtrack created in Max MSP was used in the performance of Dust by Surface Area Dance Theatre at La MaMa, New York on 29/05/11 and 05/06/11.
These performances were part of the Moves Dance Festival.

La MaMa
74A East 4th Street
(btw Bowery & 2nd Ave)
New York, NY 10003
212.475.7710
http://lamama.org/

www.surfacearea.info

Comments (0)

Smoke Machine Worship

3000 Watts is where its at!

[youtube]http://www.youtube.com/watch?v=5AuAuMeRfjg[/youtube]

Comments (0)

Site Visit – Stage 3 Northern Stage

Stage





Comments (0)

Switch – Off Red / On Green


Comments (0)

Test Circuit For Lighting LEDs In The Push Buttons


This works really well but is going to be a problem to work into the Arduino and Max code. Each pin will have to be addressed separately to switch on the relevant LED. At the moment the code uses a for loop and one variable x that represents all of the sensor readings at seperate times…. Also, a digital input pin will be lost to the led. Ways of resolving this loss could be to multiplex or to use an Arduino mega or header board for Atmega120 (http://www.sparkfun.com/products/35)

Testing the set up as part of the skull kontroller interface

Comments (0)

Skull Kontrol – Production Timeline

Open the image in a window by itself (click on it a few times) to see the full size production schedule.
Made with Beedocs – Timeline 3D
http://www.beedocs.com/

Comments (0)