Summary of Capacitive Sensing + Open Frameworks + SPACEBREW
This article details a project using Arduino and OpenFrameworks with Spacebrew to create tactile, capacitive sensing interactions. The system captures human touch via custom sensors, processes the data through Processing, and transmits it to OpenFrameworks for visual projection. Key components include specific software libraries and conductive materials like twine and chicken wire to build unique interactive surfaces such as Soft Circuit Pom Poms and MoonScape sculptures.
Parts used in Capacitive Sensing Interactive Projections:
- Arduino
- Processing Software
- OpenFrameworks
- Capsense Library for Arduino
- SpaceBrew Library for Processing
- SpaceBrew Library for OF 1 2
- Conductive material for capacitance detection
- Resistors
- Twine
- Conductive thread
- Chicken wire
- Plaster of paris
This is a step-by-step on how to connect Arduino to OpenFrameworks using Spacebrew.
More specifically our project focuses on the awesomeness of Capacitive Sensing to alter OF projections to create an awesome tactile experience!
What the process will involve:
Arduino -> Processing -> SpaceBrew -> OpenFrameworks
What you will need:
Software:
Arduino
Processing
OpenFrameworks
SpaceBrew Library for Processing
Hardware:
Arduino
Anything conductive you want to detect capacitance with!
Resistors
Step 1: Capsense with the arduino
First you will want to set up your Cap Sense circuit.
You can create as many inputs as there are digital pins (If you wish to have more you will have to implement a multiplexer TUTORIAL LINK ).
The Cap Sense library allows you to turn two of the Arduino’s pins into a Capacitive Sensor i.e. Sensors that can detect the electrical capacitance of the human body!
This allows us to create interesting touch sensors to send input to the Arduino.
Setting up the circuit:
- The first diagram shows the general set up of circuit with one input. You will want to connect the resistor between two pins, here we have done it between 2 & 3.
- Then connect which ever conductive material you wish to be your sensor to the resistor on the pin 3 side.
- We are keeping pin 2 as our common send pin which will be used for all our sensors.
- Then set up all other sensors in the same way except all having one connection to pin two and then the next free digital pin (See diagram 2)
*** It can be good to just test if it is working by having an exposed wire as your sensor!
THE CODE
Download the CapSense library here
After you have downloaded the library copy the folder into your Arduino library folder.
You can download our code here
(ALL code is commented
Step 2: Our Capacitive Sensors!
You can detect capacitance with anything conductive!
We wanted to create something tactile, interesting and weird for the user to touch so we implemented some crafting techniques! We made Soft Circuit Pom Poms.
Soft Circuit Pom Pom Materials:
1. Twine
2. Conductive thread
** by distributing the conductive thread with regular threads and resistant materials it creates greater connections when you grab the ball or run your hand through it. IE. allowing more electricity to connect to the sensor, giving a greater value output.
MoonScape
1. Chicken wire
2. Plaster of paris
** the plaster of paris created a small barrier of resistance between the wire and the hand, meaning that values wouldn’t be picked up until you ran your hand over the object.
For more detail: Capacitive Sensing + Open Frameworks + SPACEBREW
- How does the system connect Arduino to OpenFrameworks?
The process involves sending data from Arduino to Processing, then to SpaceBrew, and finally to OpenFrameworks. - What is the main focus of this project?
The project focuses on using capacitive sensing to alter OpenFrameworks projections and create a tactile experience. - Can I use anything to detect capacitance?
Yes, you can detect capacitance with anything conductive. - How many inputs can be created with the Cap Sense library?
You can create as many inputs as there are digital pins available on the Arduino. - What is the best way to increase connection values when grabbing a sensor?
Distributing conductive thread with regular threads and resistant materials creates greater connections and higher value output. - How does the MoonScape setup affect sensor values?
The plaster of paris creates a barrier of resistance so values are not picked up until a hand runs over the object. - Which pins are used for the general circuit setup?
Pin 2 serves as the common send pin while other sensors connect to free digital pins. - What materials are needed to make Soft Circuit Pom Poms?
You need twine and conductive thread to create these tactile sensors.


