Transistor and Heat

For my project I used a lilypad and capacitive sensing to trigger a heating pad to turn on. Once the heating pad got hot enough heat sensitive fabric changed color. The heat sensitive fabric changed from pink to yellow as a reaction to the heat.

Inez Binkiewicz

Here is the code:

arduino2.jpg

Here is the system:

arduino1.jpg

 

 

Capacitive Sensing

Inez Binkiewicz

For my capacitive sensing project I used a lemon to conduct sensing. I also tried to use kombucha scoby that I cultivated, but it did not work.

This is my code:

#include <CapacitiveSensor.h>
/*
* CapitiveSense Library Demo Sketch
* Paul Badger 2008
* Uses a high value resistor e.g. 10M between send pin and receive pin
* Resistor effects sensitivity, experiment with values, 50K – 50M. Larger resistor values yield larger sensor values.
* Receive pin is the sensor pin – try different amounts of foil/metal on this pin
*/
int ledPin = 9;

CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2); // 10M resistor between pins 4 & 2, pin 2 is sensor pin, add a wire and or foil if desired
void setup()
{
pinMode(ledPin, OUTPUT);
//cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF); // turn off autocalibrate on channel 1 – just as an example
Serial.begin(9600);
}

void loop()
{
long start = millis();
long total1 = cs_4_2.capacitiveSensor(30);
Serial.print(total1); // print sensor output 1

if(total1> 100 ){
digitalWrite(ledPin, HIGH);
}else{
digitalWrite(ledPin, LOW);
}

//delay(500); // arbitrary delay to limit data to serial port
}

Here is the kombucha scoby:

 

 

kombucha.jpg

Here is a video of the capacitive sensing using a lemon:

 

 

 

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);
}

LilyPad Arduino Fabric Soft Switch

Inez Binkiewicz

For my project, I made a switch using LilyPad Arduino, alligator clips,  2 LEDs,  and conductive fabric. When the LEDs connected via alligator clips came into contact with the conductive fabric they turned the switch on and the LED would light up. Not closing the circuit loop would not turn the switch on and therefore not turn the LED on.

Here is a video of the created switch:

https://youtu.be/RJYemmFy__E

I used the example Button Code provided in Arduino Examples:

const int buttonPin = 2; // the number of the pushbutton pin
const int ledPin = 13; // the number of the LED pin
// Pin 13: Arduino has an LED connected on pin 13
// Pin 11: Teensy 2.0 has the LED on pin 11
// Pin 6: Teensy++ 2.0 has the LED on pin 6
// Pin 13: Teensy 3.0 has the LED on pin 13

// variables will change:
int buttonState = 0; // variable for reading the pushbutton status

void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT);
}

void loop(){
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin);

// check if the pushbutton is pressed.
// if it is, the buttonState is HIGH:
if (buttonState == HIGH) {
// turn LED on:
digitalWrite(ledPin, HIGH);
}
else {
// turn LED off:
digitalWrite(ledPin, LOW);
}
}