Max Stepper Scripting

The cncpatch.maxpat Max/MSP patch emonstrates sending motion commands from a laptop to the CNCShieldServer Arduino Sketch running on an Arduino.

The patch files can be found in the cncpatch folder, and are also available in a single zip file.

The top-level file is cncpatch.maxpat, which will open select-serial.maxpat as an abstraction.

Steps:

  1. Make sure the Arduino is running the CNCShieldServer sketch.
  2. Open cncpatch.maxpat in Max 7.
  3. Select the correct Arduino serial port from the dropdown, then wait a couple of seconds for the Arduino to boot.
  4. Press the green Go button to enable the motors.
  5. Drag the sliders to issue motor commands.