- Tested with Processing v3.5 on OSX 10.14, with Node.js 15.14.0 and npm 7.7.6.
- Based on project by Aaron Koblin: https://github.com/koblin/AxiDrawProcessing
- Uses CNCServer by @techninja: https://github.com/techninja/cncserver
Note: Instructions are for Mac OS
- Install and Update Hombrew (detailed instructions here). Open Terminal and type:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Update Homebrew (this could take a while):
brew update
- Install Node.js:
brew install node
- Clone or Download CNCServer:
git clone https://github.com/techninja/cncserver.git
- Install NPM (Node Package Manager):
cd cncserver
npm install
-
Install Processing
-
Plug in the AxiDraw to your computer
-
Start the Node CNCServer to open communications with your AxiDraw. You should hear the motors click on after running this command:
sudo node cncserver --botType=axidraw
- Run
AxiDraw_Mouse.pde
If not working:
- Verify you can control your machine through AxiDraw's Inkscape plugin.
- Verify you are running the
node cncserver
withsudo
:
sudo node cncserver --botType=axidraw
This example shows you how to control the AxiDraw from external apps, phones, and tablets over OSC.
I control touch devices using TouchOSC. To use TouchOSC:
- Download the app from your repsective app store.
- Download the free TouchOSC Editor
- In the editor, open the
touchosc_xy_pad.touchosc
file the Processing sketch's/data
folder. - Sync from the Editor to your Device following these instructions.
- Select the
touchosc_xy_pad
layout from your device's layout options. - Connect the Processing sketch to Touch OSC using these instructions.
- The Processing sketch is listening on port
12000
. Be sure your TouchOSC outgoing port is set correctly.
- The Processing sketch is listening on port