Raspberry pi – OpenFrameworks


openFrameworks on raspberry pi 3 test example.

Connect your raspberry pi 3 with a mouse and a keyboard. Connect up the screen to raspberry and open the terminal and type: pi as the username and raspberry the default password. If you use ssh from another computer type:

ssh pi@raspberrypi.local

then write your password to login to raspberry pi.

the default password is raspberry

Follow the instructions bellow to install openFrameworks on raspberry pi.

raspberry pi 3 – openFrameworks – getting – started

for armv7 follow this: https://openframeworks.cc/setup/raspberrypi/raspberry-pi-getting-started/


reboot raspberry with:

sudo reboot

then login again using pi as the username and raspberry as the password if your password is the default one or use ssh from your laptop.

If your installation was successful type the following to compile your first app:

pi@raspberrypi:~ $ cd /home/pi/openFrameworks/examples/graphics/polygonExample

make run

and voila!

Author: Vasilis Agiomyrgianakis

Created: 2016-12-04 Sun 21:33

Arduino – Node.js

Testing Arduino Uno – Node.js

Serial Monitor messages to terminal.

First download and install node.js on your computer.

Then build Node.js server

Install serialport. Open terminal and type:

npm install serialport

Create a java script file named server1.js and use the code below:

var serialport = require('serialport');
var portName = '/dev/tty.usbmodem1421';
var sp = new serialport(portName, {
    baudRate: 9600,
    dataBits: 8,
    parity: 'none',
    stopBits: 1,
    flowControl: false,
    parser: serialport.parsers.readline("\r\n")

sp.on('data', function(input) {

Make sure that the portName is the right one. To check this go to Arduino IDE and navigate to Tools->Serial Monitor

Then open terminal and cd to the directory of the server1.js file and execute the file using the below code:

node server1.js

and voila!

Author: Vasilis Agiomyrgianakis

Created: 2016-12-04 Sun 21:10