Veronika’s CapSense

I was trying to create a food-defining plate, but could not get steady CapSense reading, so decided to make an”anti-thief” plate. The idea behind this simple solution is that the plate starts crying and blinking when someone touches YOUR cookies.

Unfortunately, my buzzer lacked a ground cable and my LED was so dim that not even the most cowardly thief would hesitate when stealing my food. But hey, now I know at least 2 ineffective systems!

I have also marinated tomatoes and put them on my plate. That may not be much for the development of spatial interactivity, but! That was my first self-made fermented food.

img_20170205_225435

img_20170205_213941

veronika01

The code (above) is quite simple. I have tried to make a more complex code for the food-defining plate, but could not check completely whether it works or not.

veronika02

Analog Sensor

I used conductive tape and paint in order to create an analog sensor. One of the two LEDs is lighted by the circuit, according to the voltage of the potentiometer.

int inputPin = A0;
int WhiteLED = 13;
int RedLED = 3;

void setup() {
pinMode(inputPin, INPUT);
pinMode(WhiteLED, OUTPUT);
pinMode(RedLED, OUTPUT);
Serial.begin(9600);
}

void loop() {
// put your main code here, to run repeatedly:
int value = analogRead(inputPin);
int ledValue = map(value, 0, 1023, 0, 255);
Serial.println(ledValue);

if (ledValue >= 100) {
analogWrite(WhiteLED, ledValue);
digitalWrite(RedLED, LOW);
delay (1000);
}

else {
analogWrite(RedLED, ledValue);
digitalWrite(WhiteLED, LOW);
delay (1000);
}
}

On the reading: Biology-inspired designs

Hello, all! During the last class, I have mentioned several projects or ideas that you may find inspirational.

GIY or Grow It Yourself trend

1. TED: Don’t build your home, grow it!
by Mitchell Joachim

2. TED: Grow Your Own Clothes
by Suzanne Lee

Also

Check out this cool project made by one of the students at IAAC, Barcelona. It is green wall units with moss inside that produces electricity. (Yes, moss, the very normal one.)

Moss Voltaics from Elena Mitro on Vimeo.

Soft Switch

img_20170120_195344
This picture represents what was meant
to be done but was not (kind of).

PROJECT THAT IS

My circuit with a soft switch has two LEDs, the green, and the red ones. Depending on whether the switch is opened or closed, one of them blinks S.O.S. signal in Morse. One of the lights uses a conductive thread as a resistor.

The red cable connected to the strip of fabric is the switch.

dsc_0025

DSC_0021.JPGI have also developed the second iteration that was supposed to become the project itself. It did not for I have forgotten the USB cable at the lab. Nevertheless, I present it here. I cannot check whether the system works, but it did not change much from before; I only used other conductors compared to the first tryout.

PROJECT THAT IS NOT

Do you know this guy?

1000509261001_1253139612001_bio-mini-bio-salvador-dali-sfPhoto via http://www.biography.com/people/salvador-dal-40389

His name is Salvador Dali and he was commonly considered to be rather crazy. (Although some people say that he was just very insightful about how art market worked.) Anyway, he was one of the most renowned artists of the 20th century. His works were surreal. I would even say they were magical! And I personally believe that the source of his magic was his… mustache.

Don’t believe me? See it yourself!

I admire him so much that I keep his photo in my room. If I connect the picture to the energy source, his eye would light up and blink hello!

dali_01

However, I can drive him crazy by connecting his mustache for once I do it, Segnor Dali’s eye becomes bright red and starts flashing SOS:

Dali_03.jpg

The frame is not connected to electricity now, but trust me, the system should work. Here is the back of the frame:

Dali_06.jpg

Below is the process (or, rather, thinking) picture:

Dali_05.jpg

SCRIPT

#define brightLED 13
#define dimLED 10
#define buttonPin 5

int signalLONG = 400;
int signalSHORT = 100;

// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(brightLED, OUTPUT);
pinMode(dimLED, OUTPUT);
pinMode(buttonPin, INPUT);
}

// the loop function runs over and over again forever
void loop() {
if (digitalRead(buttonPin) == HIGH) {
// SOS
// short x3
digitalWrite(brightLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalSHORT); // wait for a second
digitalWrite(brightLED, LOW); // turn the LED off by making the voltage LOW
delay(signalSHORT); // wait for a second

digitalWrite(brightLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalSHORT); // wait for a second
digitalWrite(brightLED, LOW); // turn the LED off by making the voltage LOW
delay(signalSHORT); // wait for a second

digitalWrite(brightLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalSHORT); // wait for a second
digitalWrite(brightLED, LOW); // turn the LED off by making the voltage LOW
delay(signalLONG);

// long x3
digitalWrite(brightLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalLONG); // wait for a second
digitalWrite(brightLED, LOW); // turn the LED off by making the voltage LOW
delay(100); // wait for a second

digitalWrite(brightLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalLONG); // wait for a second
digitalWrite(brightLED, LOW); // turn the LED off by making the voltage LOW
delay(signalSHORT); // wait for a second

digitalWrite(brightLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalLONG); // wait for a second
digitalWrite(brightLED, LOW); // turn the LED off by making the voltage LOW
delay(signalLONG);

// short x3
digitalWrite(brightLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalSHORT); // wait for a second
digitalWrite(brightLED, LOW); // turn the LED off by making the voltage LOW
delay(signalSHORT); // wait for a second

digitalWrite(brightLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalSHORT); // wait for a second
digitalWrite(brightLED, LOW); // turn the LED off by making the voltage LOW
delay(signalSHORT); // wait for a second

digitalWrite(brightLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalSHORT); // wait for a second
digitalWrite(brightLED, LOW); // turn the LED off by making the voltage LOW
delay(1000);
}

else {
// SOS
// short x3
digitalWrite(dimLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalSHORT); // wait for a second
digitalWrite(dimLED, LOW); // turn the LED off by making the voltage LOW
delay(signalSHORT); // wait for a second

digitalWrite(dimLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalSHORT); // wait for a second
digitalWrite(dimLED, LOW); // turn the LED off by making the voltage LOW
delay(signalSHORT); // wait for a second

digitalWrite(dimLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalSHORT); // wait for a second
digitalWrite(dimLED, LOW); // turn the LED off by making the voltage LOW
delay(signalLONG);

// long x3
digitalWrite(dimLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalLONG); // wait for a second
digitalWrite(dimLED, LOW); // turn the LED off by making the voltage LOW
delay(signalSHORT); // wait for a second

digitalWrite(dimLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalLONG); // wait for a second
digitalWrite(dimLED, LOW); // turn the LED off by making the voltage LOW
delay(signalSHORT); // wait for a second

digitalWrite(dimLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalLONG); // wait for a second
digitalWrite(dimLED, LOW); // turn the LED off by making the voltage LOW
delay(signalLONG);

// short x3
digitalWrite(dimLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalSHORT); // wait for a second
digitalWrite(dimLED, LOW); // turn the LED off by making the voltage LOW
delay(signalSHORT); // wait for a second

digitalWrite(dimLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalSHORT); // wait for a second
digitalWrite(dimLED, LOW); // turn the LED off by making the voltage LOW
delay(signalSHORT); // wait for a second

digitalWrite(dimLED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(signalSHORT); // wait for a second
digitalWrite(dimLED, LOW); // turn the LED off by making the voltage LOW
delay(1000);
}
}

Made and described by Veronika Volkova.

There is only one difference between a madman and me.
The madman thinks he is sane. I know I am mad.

– Salvador Dali