5. E-textiles¶
Objectives¶
- References and Concept development
- Understand how we can produce soft circuits, sensors and actuators
- Learn how to embed electronics on fabrics
- Study and learn soft-hard connections
- Discover necessary materials, components, tools
- Explore and replicate existing projects
Checklist¶
- Build at least one digital and one analogue soft sensor, using different materials and techniques.
- Document the sensor project as well as the readings got using the AnalogRead of Arduino
- Integrate the two soft sensors into one or two textile swatches using hard soft connections
- Document the circuit and its schematic
- Document your swatches / samples
- Upload your arduino code as text
- Upload a small video of the swatches functioning
- Integrate the swatch into a project (extra credit)
Setting up Arduino¶
Digital Sensor¶
Any electronic sensor in which the output gives an OPEN or CLOSE state. A switch is a digital sensor that gives an Off(open) or On(close) output. The clasp of a necklace, a safety pin Open open or closed etc can be used as a switch.
Improvising with available materials¶
I decided to make a collar to demonstrate digital sensor. I made some connections from Barcelona and planned to do the rest back home. I only had 3 months(Nov 22-Dec 22, Feb 1-March 30) for completing all assignments and project. I had some assignemnets pending when got back to India. I brought some conductive thread to do the project as it is not available at home but it was confiscated(among some other things from my electronics kit) by the officers in New Delhi Airport. Although there was no problem at Barcelona and Abu Dhabi airports. Indian airport security is very stringent. So I had to improvise and decided to find out what all I have/ can get and use it for E-textiles and Wearables.
Testing some copper tape and LED.
Tried to connect the LEDs serially.
Using the multimeter I checked for connections. It seems good to go.
Safety Pin as a Digital Sensor¶
Instead of a switch I used a safety pin, the battery was connected to the thread with a copper wire. It was not 100% good but workable.
Cat Collar¶
I put the collar on Manjan when he was asleep. Here he is half awake and looking pawsome like always!
Analog Sensor¶
The analog sensors give a continuous output signal proportional to the measurement.
Eontex Fabric¶
An Eontex fabric is a conductive, nonwoven microfiber for use in e-textiles. These conductive fabrics are created by coding a fabric substrate in a durable and lightweight conductive polymer. NW 170 SLPA is a non woven conductive material with piezo resistive properties this means that as you press on it the resistance the material changes this makes it great for things like soft pressure sensors.
To find the resistance between a voltage divider circuit¶
Voltage dividers can be used to allow a microcontroller to measure the resistance of a sensor. The sensor is wired in series with a known resistance to form a voltage divider and a known voltage is applied across the divider.
void setup() {
// put your setup code here, to run once:
pinMode(A0,INPUT);
pinMode(12,OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
if(analogRead(A0) > 2000){
digitalWrite(12, HIGH);
}
else{
digitalWrite(12,LOW);
}
Serial.println(analogRead(A0));
delay(100);
}
#include <analogWrite.h>
void setup() {
// put your setup code here, to run once:
pinMode(A0,INPUT);
pinMode(12,OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int value = analogRead(A0);
Serial.println(value);
int mappedValue = map(value, 600, 4095, 0, 255);
Serial.println(mappedValue);
int consValue = constrain(mappedValue, 0, 255);
Serial.println(consValue);
analogWrite(12, consValue);
delay(100);
}