Paja

Icon

Rapid prototyping for music, art and design work

Love Match – Touchsensor and Flash

Lovematch

Description:
This program calculates the love-potential between two people 🙂
Two touchsensors are connected to Arduino. When they are touched, the running program measures the values of the pressure-intensity during 5sec. The maximun and minimum of the measured values are saved to variables. Each second during the 5sec, the program adds the (Max – min) to a TotalSum and resets max and min. After the 5th sec. a function drawHeart is called which creates a heart on the screen calculating the size according to the TotalSum values we obtained. Got it? 🙂

Material/Software:
Arduino microcontroller & IDE
Processing IDE
Flash
2 x Flexiforce touchsensor

Code/Files:
Arduino/Processor/Flash-files
(flash server connection and processing code by Aleksi Hyvönen and Viljo Malmberg)

Video Lovematch

Melanie Wendland, Jan Wolski

7-digit display – random numbers

This is not a very meaningful interaction, but I was playing with different in- and outputs and transferring information from one source to another.
I connected a 7-digit display to Arduino and made it display random numbers from 1 to 9.
Then I added the slidelong-touchsensor in order to create the random numbers.
Additionally I connected a potentiometer, which determines the speed of the display. You need a resistor for the display, otherwise it gets to hot.

Creating the numbers:
In your code have to define which LED goes to which input. I gave each LED a number from one to seven and created an array, which contains the binary codes of each number I want to display (see photo). For example number 1 is LED 1 off, LED 2 on, LED 3 on, LED 4, LED 5, LED 6, LED 7 off (in binary: 0110000). More info in the code.

Binary System for number display

Analog input:
The slidelong-touchsensor gives number from 0 on one side to 1024 on the other side, depending how you connect 5V and GND.
The potentiometer gives as well numbers from 0 to 1024.

Arduino Code rtf-file

Video Number display

Social links powered by Ecreative Internet Marketing