User:Thijshijsijsjss/Pen Plotting Panache/twitchplaysplotter: Difference between revisions

From XPUB & Lens-Based wiki
(Create twitchplaysplotter project page)
 
(Add serialport setup code)
Line 11: Line 11:


===serialport===
===serialport===
*https://www.npmjs.com/package/serialport
We use the [https://www.npmjs.com/package/serialport serialport] package to communicate with the serialport the plotter is connected to:
 
<syntaxhighlight lang=javascript>
const { SerialPort } = require('serialport')
 
const port = new SerialPort({
    path: '/dev/ttyUSB0',
    baudRate: 9600,
})
 
</syntaxhighlight>


===tmi.js===
===tmi.js===
* https://tmijs.com/
* https://tmijs.com/

Revision as of 11:08, 8 February 2024

twitchplaysplotter is a pen plotter project inspired by TwitchPlaysPokemon in which a pen plotter can be controlled through the chat of a Twitch livestream. This project, worked on by Rosa, Victor and Thijs, was initiated both to experiment with the collaborative and performative nature of plotters, and to facililate participation of pen plotter enthusiasts who were not able to make it to the 2024-02-12 pen plotting party physically.

  • Git repository containing the project can be found here
  • The twitch channel can be found here

This page will describe the project, provide some documentation and some imagery.

Setup

Node.js packages

serialport

We use the serialport package to communicate with the serialport the plotter is connected to:

const { SerialPort } = require('serialport')

const port = new SerialPort({
    path: '/dev/ttyUSB0',
    baudRate: 9600,
})

tmi.js