DMS 8013: No words


I did this work before the Post-it messages one but I didn’t upload it till now. It is also a piece of work based in serial communication between Arduino and Processing.

No words is is an interactive communication between Arduino and Processing, which purpose is to replace the used of words. Basically Arduino has a potentiometer that send data from it to Processing, which converts the data in a graphic. 

See the result below

– the Potentiometer works well with the software

YouTube Preview Image

– the Graphic processing

YouTube Preview Image

See below the code:


void setup() {
// initialize the serial communication:

void loop() {
// send the value of analog input 0:
// wait a bit for the analog-to-digital converter
// to stabilize after the last reading:

import processing.serial.*;
float xPos = 0; // horizontal position of the graph
float yPos = 0; // vertical position of the graph

Serial myPort;
// change the number below to match your port:
String portName = Serial.list()[2];
void setup () {
myPort = new Serial(this, portName, 9600);



void serialEvent (Serial myPort) {
// get the byte:
int inByte =;
// print it:
yPos = height – inByte;
void draw () {
// draw the line in a pretty color:
line(xPos, height, xPos, yPos);
line(xPos, height, xPos, yPos);
// at the edge of the screen, go back to the beginning:
if (xPos >= width) {
xPos = 0;
// clear the screen by resetting the background:

} else {
// increment the horizontal position for the next reading:

* Obviously this code is not mine. But if I am honest, I don’t remember the exact source where I took it from as I have been checking many websites, many different codes, I’ve been constantly changing the code, so I think the best thing to do is to post the link I used as a reference: