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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s