Hi everyone,

Lucy Matchett, Nicole Yi Messier, and Joselyn McDonald (Snax_and_Macs) hooked up vibration sensors to an openFrameworks sketch to manipulate different components of the generated digital output. 

We used Arduinos, vibration sensors, resistors, and a paper mache sculpture. 

What you need to get started:

1 Arduino1

5 1 Megaohm resistors

4 vibration sensors 

Paper mache sculpture

Arduino and Processing Applications

Firmata Library for Arduino and Processing

SpaceBrew Library for Processing & openFrameworks 

Our Code

Step 1: Open openFrameworks sketch

1. Unzip the spacebrew_vibration folder and place it under myApps.

2. Make sure the spacebrew openFramework libraries are downloaded.  Follow the instructions here to do so. 

3. The sketch is set up to read all 5 analogue readings from arduino.  

4. To use these values in the sketch, place them in the draw value where ever you please. To map them, manipulate the int scale (scale = ofMap(sensor0, 0, 100, 1, 25);).

*In our code, we are manipulating the z-scale value of the output (code: ofScale(1,-1,scale);).  The image is output of the sketch. 

<p>I'm trying to do this on a TI Launchpad MSP430 instead of an arduino.. is that possible? First baby steps..</p><p>I've installed Processing, code::blocks &amp; openframeworks. Using Energia for the Launchpad, I've compiled the latest, standard Firmata on it and it seems to be running.</p><p>My PC's hyperterminal detects a Serial port (COM3) when I plug into the launchpad.</p><p>Before going any further, I'd like to see if the Firmata / serial communication actually works between the PC and the board... Is there a sample openframeworks exe that talks the 'Firmata' protocol that can be used to retrieve the version from the launchpad?</p>

About This Instructable


12 favorites


Bio: We're a group of designers, coders, and makers -- Alex Tosti, Lucy Matchett, Nicole Messier, and Joselyn McDonald. We enjoy physical computing, coding, Snacks, Our ... More »
More by Snax_and_Macs: Come Home! Connecting Distant Spaces EASILY over Web LED Felt Carrot with Soft Circuits Connect Arduino to Open Frameworks via Bluetooth
Add instructable to: