p5.serialserver is a p5.js library that enables communication between your p5.js sketch and a serial enabled device, for example, an Arduino microcontroller.
This repository is part of the p5-serial project, for more info please visit https://github.com/p5-serial/p5.serial.github.io/.
In order to follow these steps:
- Connect an Arduino microcontroller or any other serial device to your computer.
- Clone or download this repository.
- Follow the steps to use either the Node.js version, or the Processing version.
- Open the terminal and navigate to this repository.
- Install the dependencies with the command
npm install
. - Start the server with the command
node startserver.js
.
- Install the latest Processing app, available at https://processing.org/.
- Navigate to the p5_serialserver/ folder on this repository and open the file p5_serialserver.pde with the Processing app.
- Run this app and follow the instructions on it.
After running the server with Node.js or Processing, you can connect a client to the server.
For this you need to use the companion library p5.serialport available at https://github.com/p5-serial/p5.serialport, and follow the instructions over there.
Info about contributing is available at the main repository of this organization: https://github.com/p5-serial/p5.serial.github.io/.