Analog Sensor: Stroke Sensor

Inez Binkiewicz

1.jpg

2.jpg

I made a stroke sensor that involved using conductive thread, resistive thread, conductive fabric, base fabric, and a Led. I used felt as a base fabric because of its thickness and sturdiness, which allowed the threads to stay in place and not move around. I first cut two strips of conductive fabric and sewn it to the fabric base using conductive thread. I then altered the conductive thread that I had previously used to attach the conductive fabric in order to create frills or hairs that stood out of the base fabric on the other side. After that, I used resistive thread and created the same kind of hair effect in the middle of the base fabric strip, where there was no attached conductive fabric. I made a loop design with the resistive thread in order to cover more surface area, which made it easier to have the conductive and resistive thread make contact. When I stroked the threads, having the conductive thread touch the resistive I essentially connected the circuit which as a response lit up the lilypad led which was also connected to the conductive fabric via conductive thread. I want to expand on this project and create an interactive toy or teddy bear, which would cause a series of LEDs to light up via a stroke sensor. This sensor can be implemented in even very small objects as it only requires a small coin cell battery connected to the sensor via conductive thread to power the LED.

Below is a diagram that shows how the stroke sensor works.

Code from class:

int analogPin =AO;
int ledPin =9;
void setup() {
// put your setup code here, to run once:
pinMode(analogPin, INPUT);
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}

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

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