If you have trouble installing the p5 SerialControl program with windows
take the following steps:
Once it is installed, open up a command prompt and type: npm install p5.serialserver
Once that is done, you now have to navigate to the directory where it was installed and start the serial server:
cd node_modules cd p5.serialserver
-
node startserver.js
Keep command prompt running.
Try one of the examples from the synthesis class or one of the examples here: https://github.com/vanevery/p5.serialport/tree/master/examples
In the sketches for p5 make sure to change the port to whatever your port is in the Arduino IDE (I.E. COM3).
That line is serial.open("NAMEOFYOURPORT");
Test and make sure it works!
More here: https://github.com/vanevery/p5.serialport/wiki
Resources: