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:
- Make sure the Arduino is running the CNCShieldServer sketch.
- Open
cncpatch.maxpat
in Max 7. - Select the correct Arduino serial port from the dropdown, then wait a couple of seconds for the Arduino to boot.
- Press the green Go button to enable the motors.
- Drag the sliders to issue motor commands.