5. E-TEXTILES AND WEREABLES I#

This was my first encounter with electronics, at first to understand the language, codes and understand this new world was not easy, but once you manage to light your first LED, that micro moment of happiness encourages you to continue researching and exploring this new e-way. In this documentation I will include my annotations, diagrams and all the links that were useful for me to understand and experiment with e-textiles.

Electronics / basic concepts#

The electronics have their own language and symbols with which we must begin to familiarize ourselves:

Electric current is the movement or passage of electricity along the electric circuit from the electricity generator to the device where it will be used, which we will call the receiver, through the conductors. In order for the electric current to originate, it is necessary that the generator produces an electromotive force that creates a potential difference between the terminals or poles of the generator:

Electrical circuit: it is a set of elements connected together by which an electric current can circulate.

The elements that form a basic electrical circuit are:

To simplify the drawing of electrical circuits, diagrams with symbols are used. The symbols represent the elements of the circuit in a simplified and easy to draw way.

Symbols of the most common elements used in electrical circuits.

Multimeter, also called multimeter or tester, is a portable electric instrument for directly measuring active electrical quantities, such as currents and potentials (voltages), or passive, such as resistance, capacitance and others.

Sensors#

A sensor is an electronic device that is constantly measuring a physical variable (temperature, distance, etc.) and transforms it into an electrical signal.

Digital Sensor#

Once the theory was understood, it was time to put it into practice, I decided for my first sample to make a machine embroidered circuit with a cloth button sensor that allows the turning on and off of 3 LEDs. The first step was to turn on the first LED and analyze which was the best option in terms of diagram, operation of the circuit and textile materials to be used:

Multiple LEDs in parallel

LEDs connected in parallel use a cable to connect all the positive electrodes of the LEDs used to the positive cable of the power supply and another cable to connect all the negative electrodes of the LEDs used for the negative cable of the power supply. Wiring things in parallel has some distinct advantages over wiring things in series. If you wire a bunch of LEDs in parallel instead of dividing the power supplied between them, they all share it. Then, a 12V battery connected to four 3V LEDs in series would distribute 3V to each of the LEDs. But that same 12V battery connected to four 3V LEDs in parallel would deliver 12V to each LED, enough to burn the LEDs safely!

The wiring of LEDs in parallel allows many LEDs to share only one low-voltage power supply. We could take those same four 3V LEDs and connect them in parallel to a smaller power supply, for example, two AA batteries that emit a total of 3V and each of the LEDs would get the 3V they need. In summary, the serial wiring divides the total power supply between the LEDs. Wiring them in parallel means that each LED will receive the total voltage that the power source is emitting. Some warnings … parallel wiring drains your power supply faster than serial wiring because they end up drawing more current from the power source. It also works only if all the LEDs you are using have exactly the same power specifications. DO NOT mix or match different types / colors of LEDs when wiring in parallel. Taking into account the operation of a circuit of LEDs in parallel, I decided to use 3 equal, of White color, these are the characteristics:

WHITE LED:
- 20 mA
- 3.0 - 3.2 V
- 12000 - 14000 mcd

Calculate the Resistance / Formula:

R = (V1 - V2) / I

R for my circuit:

R = (9V-3.0) / (0.2A x 3)
R = 100 Ω

You can also use

Fabric Circuit Construction, Step by step:

Circuit Sample + Finished digital sensor

Analog Sensor#

As I mentioned earlier, an analogue sensor within a circuit allows reading a range of data and information (INPUT) and consequently generating an effect (OUTPUT). For this it is necessary to use software and hardware, we discover and experiment with Arduino in principle.

Arduino

Arduino is a platform for the creation of open source electronics, which is based on hardware and free software, flexible and easy to use for creators and developers. This platform allows to create different types of microcomputers of a single plate to which the community of creators can give them different types of use. Arduino, has what is called an input interface, which is a connection in which we can connect different types of peripherals on the board. The information of these peripherals that you connect will be transferred to the microcontroller, which will process the data that arrives through them. It also has an exit interface, which is responsible for taking the information that has been processed on the Arduino to other peripherals. These peripherals can be screens or speakers in which to reproduce the processed data, but they can also be other boards or controllers.

FLORA electronic platform

FLORA is the Adafruit Arduino compatible microcontroller, designed to empower incredible clothing devices projects. FLORA is designed around the ATMEGA32U4 microcontroller with V 3.3 logic and has a built-in USB and USB HID which allows it to function as a mouse or keyboard to connect directly to the equipment. It is easily programmed via USB using the Arduino IDE.

This was my graphic that helped me understand how this type of microcontroller works.

In the beginning we explored the basic codes of the library to understand the language and functioning of Arduino, in a simple circuit with an LED, here are some examples:

void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}
int led = 9;           // the PWM pin the LED is attached to
int brightness = 0;    // how bright the LED is
int fadeAmount = 5;    // how many points to fade the LED by

// the setup routine runs once when you press reset:
void setup() {
  // declare pin 9 to be an output:
  pinMode(led, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  // set the brightness of pin 9:
  analogWrite(led, brightness);

  // change the brightness for next time through the loop:
  brightness = brightness + fadeAmount;

  // reverse the direction of the fading at the ends of the fade:
  if (brightness <= 0 || brightness >= 255) {
    fadeAmount = -fadeAmount;
  }
  // wait for 30 milliseconds to see the dimming effect
  delay(30);
}

Bend Sensor#

For my Circuit + analog sensor sample, I decided to build a Bend Censor that could be placed on the wing of a felt hat (which I had previously molded as part of a material scan) to achieve the ignition of 3 micro-LEDs positioned in the helmet of the same.

Neoprene folding sensor construction step by step:

Graph of the circuit and its components

Arduino Code / Bend Sensor + Led

void setup() {
  // initialize serial communication at 9600 bits per second:
  pinMode(9,OUTPUT);
  Serial.begin(9600);
}

// the loop routine runs over and over again forever:
void loop() {
  // read the input on analog pin 0:
  int sensorValue = analogRead(A0);
  Serial.println(sensorValue);
  // print out the value you read:
  sensorValue = constrain(sensorValue,300,600);
  int ledOut = map(sensorValue,300,600,255,0);
  analogWrite(9,ledOut);

  delay(1);        // delay in between reads for stability
}

e-Hat#

Step by step of the application of the components and construction of the circuit on the hat:

Final Result#

To see this sensor in action have a look at the following video. The dancer has fabric bend sensors: