Current Courses

Misc

 
Home

Max/MSP Workshop weblog

xml

openGL sprite-like graphics, part 3

Here's the max patch for part 3 of the tutorial.

I haven't had a chance to write up the tutorial itself, so for now, just download it, try it out - then examine the patch and see if you can figure out how it all works.

Download file

openGL sprite-like graphics, part 2

Part 2 of this week's tutorial.

Download file

Check back soon for part 3.

openGL sprite-like graphics, part 1

Part 1 of this week's tutorial.

Download file

Check back tomorrow for part 2.

switch vs gate

a little demo patch
Download file

max patches for 9/11 class

Download zip archive

Here's the movie version of patch12:
Download file

And here's a version with a jit.wake option (patch13):
Download file

Max patch from 9/4 class

Here's the introductory patch that we built in the September 4th class.
Download file

counting loops

For Marc.

loopreport.mxb

Max Jitter Fix

Jitter is incompatible with Java 1.6
A fix or this from the processing forums:


1) On Windows, find the file C:\Program Files\Cycling '74\MaxMSP 4.6\Cycling '74\java\max.java.config.txt

2) Open it with a text editor (Wordpad works best)

3) Find the line that says: max.jvm.option -Xms16m

4) Change it to read: max.jvm.option -Xms64m

5) Save the file

All-in-one intro to Max

Here is a concise all-in-one Max primer, designed around a Quicktime player patch that we built during the Max/MSP workshop last semester:
IntroToMaxThumb.jpg
(click for full-size version)

And here is the actual Max patch.

links for controlling a servo

Link to ITP Physical Computing Servo page.

If you search the Arduino site for 'servo', you can turn up a couple of other methods as well, but I think Tom Igoe's method (above) is the best.

Luma key patch v2, for Jorge

This version has some extra added bells and whistles for Jorge's project.

Download patch

Max & Arduino serial communication, new & improved, with notes

(Fixed a bug 3/26/07, so if you downloaded before, try again)

Download patch & script

Just in case you have any trouble opening the Arduino script, here it is for you to cut and paste:


//Arduino to Max example - to be used with accompanying Max patch

int incomingByte = 0; // for incoming serial data

void setup() {
Serial.begin(9600); // opens serial port, set baud rate
}

void loop() {
if (Serial.available() > 0) { // send data only when a byte is received
incomingByte = Serial.read(); // read the incoming byte
Serial.print("I received: "); // say what you got
Serial.println(incomingByte, DEC);
}
}

fix for serial on windows maybe...

I think the newest version of the serial object for Windows may solve various problems for the WinTel tribe:

Link to Max/MSP/Jitter Incremental Upgrades page.

Relay Circuit Diagram

Here's are some circuit diagrams for driving relays from a microcontroller. Make sure you're using a 5-volt relay (this refers to the coil, not the load circuit), and make sure that the relay has a high enough rating for the load that you're driving.

This circuit is necessary if you are using a relay with a coil that needs more power than the microcontroller can supply (this includes most miniature electromechanical relays):
relayCircuit.gif

Troubleshooting:
• Make sure that you have the pins correctly labeled on the relay; different relays have different configurations.
• The diode protects the circuit in case the polarity is reversed. The stripe on the diode should be towards the 5v side.
• The base pin on the transistor is usually the center pin; consult documentation to distinguish the collector from the transmitter.
• If the relay is working correctly, you should be able to hear a little 'click' when you trigger it (except when using a solid-state relay).

Some relays (such as reed relays and solid-state relays) have coils that can be switched directly from the microcontroller, in which case you can use a less complex circuit:
relay_lamp.gif

Finally: if you're switching an AC device, PLEASE BE CAREFUL. Make sure you've got the coil working BEFORE you hook up the AC load. Make sure you have correctly labeled all the pins on the relay - NEVER connect AC voltage directly to the relay coil. Build your AC circuit BEFORE you plug it in. If you're not sure, ask someone to check it for you first.

QuickTime Folder Player

This patch (when saved in a folder containing a bunch of Quicktime files) will automatically play each movie, one after another. It uses the 'loopreport' attribute, which causes jit.qt.movie to send the message 'loopnotify' out of its right outlet whenever it gets to the end of a movie (actually when it gets to the end of a loop, but by default the loop is set to the entire movie).

Download patch

Electronics Resources

Microcontrollers
Arduino Home Page
Arduino Booklet
Wiring Home Page
Wiring Electronics Reference
Parallax Home Page (Basic Stamp)
BasicX Microcontroller
Software
Processing Home Page
Suppliers
Jameco Electronics
Digi-Key
Mouser Electronics
Acroname Robotics
Trossen Robotics (Phidgits, Etc)
Suppliers (Local)
All Electronics (Van Nuys)
Fry's Electronics (Burbank)
Radio Shack (everywhere)
Periodicals
Make Magazine
Nuts & Volts Magazine
Servo Magazine
Robot Magazine
Books
Getting Started in Electronics
Practical Electronics for Inventors
Physical Computing: Sensing and Controlling the Physical World with Computers
Robot Builder's Sourcebook
Robot Builder's Bonanza
Labs
ITP Physical Computing
Tom Igoe's Physical Computing Site

great sound FX

A wonderful MSP patch by Paul Hertz that produces all kinds of cheesy science fiction sound effects. It's also a great tool for learning how MSP works.

Link

QuickTime+Audio Recorder - new & improved, with notes

Everything you need to make some of those newfangled "talkies" that everyone's so excited about.

Download patch

photobooth patch - new & improved!

Here is another way of doing the photobooth trick WITHOUT using OpenGL -- it's much simpler and works beautifully. Includes some documentation.
Download photobooth2.pat

This is the original OpenGL-based patch, in case anyone wants to compare:
Download photobooth.pat

Luma key patch, new & improved, with notes

Download Max patch