E-TEXTILES II AND WEARABLES

SAY IT AGAIN

cubetas

  • VOLTAGE, the power with which electrons move depends on the difference between the amount of electrons on one side and the other ( + and ground are this two sides). More volts means more difference of electrons between buckets ( using the analogy of two cuvettes of water to explain electricity).
  • GND (ground or earth) would be the empty bucket, where electrons always want to go.
  • RESISTANCE, Following the analogy of the water buckets, the width of the diameter of the tube through which the water runs from one bucket to the other. The materials have different resistance. The distance of the routes also affects resistance, more distance, more resistance.
  • CURRENT, how much water passed through that tube.

OMH law relates these three interdependent concepts

  • CIRCUIT, Path that the electrons travel on. Starts, happen some things and ends (which is usually gnd).

    • ANALOG, the values that we can read from the environment are analogous, as the number pi extends to infinity. To understand each other, we simplify them by shortening the numbers behind the comma. Infinite values.
    • DIGITAL, summary chain of discrete numbers. It can be understood in a mathematical way and used. It becomes information that we can work with. Finite values of fine numbers.
  • RESOLUTION, how fine is the expression of that value.

  • BIT, binary information unit.

  • To not to make mistakes with the values, 1000000—————10000—————1—————-1000—————————1000000
    MICRO MILI Amper MIL MEGA

  • WART communication protocol used by the arduino.

  • USB, Universal Serial Bus.

  • POTENTIOMETER OR VARIABLE RESISTANCE A resistance whose resistance we can modify by moving the knob

ARDUINO VOCABULARY

LINK TO RESOLVE ANY DOUBT ABOUT ARDUINIO REFERENCES tap

  • FLASH, Record program information to Arduino

  • CONDITIONAL, a condition that according to if it's true or false, it takes one decision or another is made (A or B).

  • LOOP, cycle that repeats. You don't say go right foot, then go left foot, go right, go left. What you say is forward right foot and then left foot in loop until you get to work.

  • {} unite things in square brackets.

  • INT, whole numbers.
  • CHAR, Characters, letters.
  • DOUBLE, large numbers.
  • FLOAT, numbers with decimal point.
  • STRING, string of letters.
  • VOID, Analogy drawer of socks, t-shirts and panties. The information is grouped into drawers, each drawer contains a certain type of information, we name each drawer and we tell it to keep it there the information we want. That is the VARIABLE, with the name of the drawer and the information stored there. EXAMPLE: INT CAL (whole numbers / sock) Drawers can only save one item CHAR Letter = a (save in letter a drawer) if I say CHART letter = b (delete a and put b) If I say STRING letter = ab (keep ab as a word, not a and b autonomously)

  • FUNCTIONAL LOOP, We define the actions of the elements.

  • ; Mark that the line we wrote was finished.

  • IF, if this happens do that. The condition between parentheses must always be detailed.

  • // everything that begins with these two lines, are messages for humans, Arduino does not read it.

  • FOR, how many times we repeat the loop and in what way for (int i = 0; i <NUMPIXELS; i ++) {// For each pixel ...

  • SHOW, It's like saying: action!

  • DELAY, pause. Indicate in milliseconds 1 second has 1000 milliseconds if I put 20 in the code it will stop 50 because 1000 between 20 is 50.

  • ANALOGWRITE, write intermediate values.

ACTUATOR/OUTPUTS

An actuator is a component that is responsible for moving and controlling a mechanism or system, for example by opening a valve. In simple terms, it is a "mover".

VISUAL

  • LEDs
  • Neopixel
  • Fiber optics
  • Thermochromic Ink

Arduino exercise to explore Neopixel possibilities

NEOPIXEL is Adafruit's brand for individually-addressable RGB color pixels and strips using a single-wire control protocoL.

  • Add new libraries. ADAFRUIT NEOPIXEL

newlibrary

  • ADAFRUIT NEOPIXEL SIMPLE

conexions

NEOPIXELCONEXIONS

Code

NEOPIXEL1

Result

  • ADAFRUIT NEOPIXEL STRANDTEST

Same conexions previous exercise

Code

NEOPIXEL2

Results

SOUND

  • SPEAKER
    To know more about how a speaker works here

Arduino exercise to explore speaker possibilities

Conexions

SPEAKERCONEXIONS

Code

speaker

Results

MOTION

INPUTS

  • LDR PHOTORESISTENCE, Component that works as a resistor by varying this depending on the light that is affected Semiconductor device that varies its resistance when giving light, decreasing when giving light and increasing when removed. Long reaction time.
    To know more:

Cómo funciona
Cinecia Bit

Conexions

FOTORESISTENCIACONEXIONS

code

void setup() { // put your setup code here, to run once: pinMode(A0, INPUT); pinMode(3, OUTPUT);

Serial.begin(115200);

}

void loop() { // put your main code here, to run repeatedly: int luz = analogRead(A0); Serial.println(luz);

if (luz < 700) { digitalWrite (3,HIGH); }

else if (luz>700) { digitalWrite (3,LOW); } }

fotoresistencia

results

Conexions

POTENCIOMETERCONEXIONS

code

potenciometro

Results

Code

potenciometroled

Results

Code

potenciometroled1

void setup() { // put your setup code here, to run once: pinMode(A0, INPUT); pinMode(3, OUTPUT);

Serial.begin(115200);

}

void loop() { // put your main code here, to run repeatedly: int potenciometro = analogRead(A0); Serial.println(potenciometro);

analogWrite(3, potenciometro/4);

digitalWrite(3, HIGH); delay(potenciometro); digitalWrite(3,LOW); delay (potenciometro); }

Results

Code

potenciometroled2

void setup() { // put your setup code here, to run once: pinMode(A0, INPUT); pinMode(3, OUTPUT);

Serial.begin(115200);

}

void loop() { // put your main code here, to run repeatedly: int potenciometro = analogRead(A0); Serial.println(potenciometro);

analogWrite(3, potenciometro/4);

digitalWrite(3, HIGH); delay(potenciometro); digitalWrite(3,LOW); delay (potenciometro); }

Results

TO SEE THE VALUES THE INPUT TAKES,

  • MONITOR SERIE, to display in numbers the values collected by a sensor
  • SERIAL PLOTTER,to display in a graph the values collected by a sensor
  • graf

PERSONAL PROJECT OF THE WEEK

My motivation for the week has been to start the tests and samples to make a wig for the Queen of the Night. The Queen of the Night is a famous character from the Opera Die Zauberflöte written by Wolfgang Amadeus Mozart This is her famus area

The idea is to create a wig with integrated fiber optic that increases the intensity of its light when the singer is not illuminated and lowers it by being under the spotlights. That would be done using a photoresistor as input and LEDs with the optical fiber as output. It would also move when the singer arrived at her highest notes using a microphone as an input and SMA as the output

wanted visual effect

move

Stetics

stetica

Step by step

OUTPUT SMA

  1. Train the SMA to take the form you want when applying the power. Shape memory alloys are metals that change shape when they are heated to a certain temp. They behave like regular metals when cool and return to preset shape when heated. There are two types of SMA: - Untrained flexinol will contract by 10% of its length when heat is applied. - Trained flexinol also contracts by 10% but has been “trained” into a shape through a heating process. When heated, it will return to the shape you trained it to. The variables that affect your movement are:
    Material Substrates. Generally any lighter weight paper or fabric will yield best results.
    Diameter Size. The higher the diameter of the wire, the more power you will need to change its state.
    Length. The resistance increases as the length increases.

sma

  • Screw it into a fairly long rod held at the ends with wire or nuts depending on the thickness of Nitinol.
  • Apply heat by heating it with a camping gaz. Use special silicone gloves and tweezers to prevent burns.
  • After about 10 minutes and when we have seen the Nitinol has become red, put the rod in a cold water bottle.
  • When it has cooled down, we must check if the process was successful. Enter Nitinol in boiling water or apply power with the power supply.
    I tried it with three different Nitinol and this was the result:

    • The thicker which I have no reference but it was 23cm long, began to react at 4 volts
    • The 0.012 '' medium (1 foot) 16cm long, reacted at 3 volts
    • The 0.00'' (1 foot) 32cm long, reacted at 7 volts
  • Build the circuit. I used Liza's one on the slider

liza

mine

  • Understand what is a Mosfet a transistor and a diode
  • I have done the conections with copper tape on linnen fabric
  • To insulate the overlapping copper, I used thermo-insulating tubes

You can find more extended explanation about the circuit on my week 13 documentation

IMPUT PHOTORESISTENCE OUTPUT OPTIC FIBER

1- Make connections simply on the breadboard

circuit

2- Program the arduino

arduinocode

This week din't use ATtiny but if you want to know more about this microcontrolaor, look at my week 13 documentation