Skip navigation

…technology and code

STORMRAISER: cavi e board

What technology we used:

5 tilt sensors
1 hairdryer
1 servo motor
1 projector
2 Arduino boards
1 computer (Arduino + Processing)

_

How it works:

Tilt sensors can detect movements. We put a tilt sensor inside each bracelet and connected every tilt to one of the Arduino board.
The sensor perceives the movement of people arms and sends a signal to the Arduino software; every time the sensor switches on (tilt turned on/off not off/on) Arduino sends, through a serial port, a message to Processing that starts to count the signals.
Every two seconds (our choosen lapse of time) Processing calculates the frequency and uses this number to control three outputs: speed regulation of the servo motor (with a second Arduino), hairdryer on/off switch and projection changes on the ceiling (with the first Arduino).

Our Processing code is flexible: for example we calibrated our system to work with 5 tilt sensors, but just increasing a value can change the program. We put a restriction on the higher limit, but this value is very simple to adjust too.

STORMRAISER: schema prototipo
_

Software:

  • sr_PROCESSING.pde (runs on Processing software)
    receives data from ARDUINO_1
    calculates the frequency
    sends frequency value to ARDUINO_1 and ARDUINO_2
    creates the projected visual effects
  • sr_ARDUINO_1.pde (runs on Arduino software)
    receives signals from Arduino board (connected to tilt sensors)
    sends data to PROCESSING
    receives frequency value from PROCESSING
    switch on/off the hairdryer
  • sr_ARDUINO_2.pde (runs on Arduino software)
    receives frequency value from PROCESSING
    regulates the speed of the servo motor

STORMRAISER: Arduino e Processing

_
Download:

STORMRAISER_code [.zip - 8KB]

To use the code you have to upload sr_ARDUINO_1.pde on the Arduino board connected to the sensors and the hairdryer; the second file called sr_ARDUINO_2.pde has to be uploaded on the second Arduino board connected to the servo motor.

When the two Arduinos are ready, you can start sr_PROCESSING.pde

_

STORMRAISER | concept | mood | in the real world | physical prototype
technology and code | problems | final reflections | credits