p5.serialserver
v0.0.34
Published
A serial server for p5.serialport.js
Downloads
80
Readme
p5.serialserver
About
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/.
Installation
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.
Node.js 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
.
Processing version
- 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.
Use
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.
Contributions
Info about contributing is available at the main repository of this organization: https://github.com/p5-serial/p5.serial.github.io/.