Flashlight! – updated

DSC02359

My object is a flashlight that lights up when you squeeze (more you squeeze, brighter it gets). I decided to hack a flashlight and use the structure, led, and its lens inside.

DSC02324     DSC02325Battery pack cable soldered to the battery connection structure of flashlight.

DSC02327     DSC02333Arduino connected with led, and placed on a piece of laser-cut acrylic. LED/lens glued as well.

DSC02335     Parts of the flashlight.

DSC02340     DSC02341Top cover laser-cut and sowed on to the whole structure.

DSC02348

DSC02350      DSC02354

And here’s the sketch:

#include <Adafruit_NeoPixel.h>
const int analogInPin = A9; // Analog input pin that the potentiometer is attached to
Adafruit_NeoPixel strip = Adafruit_NeoPixel(10, 6, NEO_GRB + NEO_KHZ800);
int sensorValue = 0; // value read from the pot

const int analogOutPin = 6;

int outputValue = 0;

void setup() {
Serial.begin(9600);
pinMode(9, INPUT_PULLUP); 
strip.begin();
strip.show();
}

void loop() {
sensorValue = analogRead(analogInPin);

if (sensorValue > 101){
analogWrite(analogOutPin, 0);
}
if (sensorValue < 100){
analogWrite(analogOutPin, 10);
}
if (sensorValue < 95){
analogWrite(analogOutPin, 20);
}
if (sensorValue < 90){
analogWrite(analogOutPin, 30);
}
if (sensorValue < 85){
analogWrite(analogOutPin, 50);
}
if (sensorValue < 80){
analogWrite(analogOutPin, 75);
}

if (sensorValue < 75){

analogWrite(analogOutPin, 100);
}
if (sensorValue < 70){
analogWrite(analogOutPin, 125);
}
if (sensorValue < 65){
analogWrite(analogOutPin, 150);
}
if (sensorValue < 60){
analogWrite(analogOutPin, 180);
}
if (sensorValue < 55){
analogWrite(analogOutPin, 200);
}
if (sensorValue < 50){
analogWrite(analogOutPin, 220);
}
if (sensorValue < 45){
analogWrite(analogOutPin, 240);
}
if (sensorValue < 40){
analogWrite(analogOutPin, 255);
}

Serial.print(“sensor = “);
Serial.print(sensorValue);
Serial.print(“\t output = “);
Serial.println(outputValue);
delay(2);
}

void colorWipe(uint32_t c, uint8_t wait) {
for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, c);
strip.show();
delay(wait);
}
}

Laser-cut Light-up Jockstrap

Sorry this is really late…..

This is a product for all those bois that have ever dared to go to an underwear party or a circuit party, and want to be the center of attention.

g5-circuit-party-taipei-2013-1                                   Look thats him on top!

I picked this because I think its a fun idea that hasn’t been done.  I also picked it because I am fairly confident that I can construct a jockstrap

These are my materials:

image

Lycra, Elastic, Arduino board, motion sensor, pixels, and pixel strip.

imageThe front pouch is made of two pieces of fabric and will house the Flora board and the battery pack.  The Pixel strips will be on the sides of the jockstrap and the waist band will have a laser cut logo.

Tshirt + Nightlight

Originally I wanted to create a body-shaped pillow that would light up / pulsate in the area that the human heart is located, giving it a comforting “life” for the user while sleeping. Instead, I plan on designing a plush, hanging light with fabric repurposed from a Tshirt—a light similar to the white, charging light located on the front of the MacBook Pro, slowly fading in and back out. The design I have in mind is a pod shape connected to a wire or conductive thread ( if other pods are to be attached on the strand )

Image

Terrarium Light

I have gotten the idea of making a light up terrarium mobile in my head and I’m not quite ready to give it up.  It has been brought up to me that I may have trouble dealing with messy wires that may make this project difficult.  I am hoping that I will be able to work around that issue by using conductive thread or yarn to hang the objects from my mobile.  I want to make a mobile that has hanging pods for air plants.  These pods will light up.  Here are a few photo inspirations:

Screen Shot 2013-09-30 at 1.46.47 PM

Screen Shot 2013-09-30 at 1.47.01 PM

Screen Shot 2013-09-30 at 1.55.34 PM

I plan on sewing little pods to hold the air plants.  I also plan on making a push on-off switch that would be one of the elements hanging from the mobile.  Below are some material possibilities:

 

Screen Shot 2013-09-30 at 1.47.24 PM

Screen Shot 2013-09-30 at 1.47.41 PM

Screen Shot 2013-09-30 at 2.22.18 PM

Privacy Notifying Plush Light

Last time I had avoided sexual connotations while I was making my awkward privacy device.. But this time it is kind of impossible with these new words: “night light” and “plush”.. Well, Becky told that any project would be possible as soon as they include sewing and lights. But I thought I can make a “love notifying” hanger which receives the data from the movement sensor embedded into the bed and sends this data to the LED containing sweet plush door hanger. On the other hand, is it too crazy?

Make It Bigger

The word that I’m continuing to use is “Party Favor”. Taking from the last project and the idea of “connection” , I want to create a life size plushy nightlight. My proposal is to create a plushy that can light up if you press or hold their hand. I also want to take it outside and have it be sensitive to touch and pressure so it’s heart or head can light up. I have been working with a plushy called ” Big Head” for the past few years. My interest is to provide comfort and joy through the physical connection that we had as kids playing with our stuff animals. 

Here is a picture of ” Big Head”

CIMG4714

Project Proposal – Flash light

My word was Halloween and Animated Gif, but I wanted to change my word to Flash Light.

IMG_3581

It would be made with soft material on the outside, so when I squeeze the handle, the light gets brighter or dimmer depending on how much pressure is being applied to the handle.

It’ll need some sort of structure inside to hold the led, arduino, and battery, and the fabric will act as a diffuser for the bright led.

Super hero running headband here I come!

I have big dreams to make a running headband (my take on a superhero mask) to wear this winter that changes color when I change speeds. To do that, I will have to get a lot better at sewing with conductive thread. I resewed my acceleramotor a bunch of times, but still, when I tried it out on the multimeter — something was not right!

Photo1 (1)

Eventually, I got so frustrated that I took an x-acto knife to the thread. In a moment of NOT sewing zen, I stabbed myself with the x-acto knife. But I found a bandaid and persevered.

In order to practice the acceleramotor and keep my sanity, I decided to practice with alligator clips. I changed the threshold to 1 so that the neopixel that I attached would light up a lot.

Photo1

 

I have a lot more practicing to do, but I’m enjoying every step of the Arduino adventure!

Accelerometer Tests

This week I played around with the accelerometer and the code from the sparkle skirt.  First, I made sure that my sewing connections were good between the accelerometer board and Flora main board.  I then connected the Flora to a pixel strand.  I had some difficulty getting everything up and running.  After testing all of my connections I was able to narrow it down and I discovered that the mini USB port of my Flora is not working.  Thankfully, I had a little help from a friend and Wolfgang let me use his Flora.  Wolfgang was also gracious enough to take some time to explain some of the code functions to me.  Code still feels like a foreign language at this point so I appreciate any help I can get.

I was able to get the sparkle skirt code up and running on the pixel strip.  I changed the code to reflect the number of pixels in the strip.  I altered the colors and I lowered the move threshold all the way to 4 so that it was more sensitive.  Here is the part of the code I altered:

Screen Shot 2013-09-23 at 3.14.57 PM

 

Here is the result

For my plush nightlight, I am thinking of making a plush terrarium mobile.  Terrariums are typically used to house and display small wonders.  Rather than enclose objects inside a structure, I want to make a mobile out of plush wonders.  I want the wonders to light up either as you approach the mobile or depending on the sound level in the room.  Mobile