Final Project Proposals

First Proposal: ColorTalk earphones or earphone attachments

IMG_6057

This would actually be a continuation of a project from another class. I’ve made one rough physical prototype already (pictured above) The earphones allow users to communicate via a color and light language. For example, 2 quick blinks of pink equates to a flirty wink.

Ideally, I’d like for either the headphones (or attachment if it’s not built into the headphones) to be bluetooth enabled and connected to an app so the LED color and animations could be changed. It would not involve the production of sound, only perhaps the building of a circuit with speakers if I made the whole thing from scratch. I’d like to play with 3D printing the headphone forms.

I’m not sure if this is too ambitious for my current skill level with the amount of time we have left in the class. However, I’m interested in making a more viable prototype for this project, so thought this might be a good opportunity.

2nd Proposal: Updated Pomodoro Timer

0469_002.jpg

The timer I currently use for the Pomodoro time management method is neither bright nor obnoxious enough to get my attention when I need to stop working. I’d like a timer that lights up, vibrates, and makes noise. And maybe even walks off…..

3rd proposal: Curtain Timer

I have blackout curtains in my bedroom. They’re great for keeping out the bright lights of the city at night. However, come morning, it’s harder for me to wake up because my body still thinks it’s dark outside. I’d like to develop some sort of pulley system that I can program to open and close my blinds at certain times of the day. Not sure how to make it aesthetically pleasing though. Maybe I can go a bit steampunk with gears.

0469_001.jpg

Thanks!

Catherine

Wk 10 HW Exercises

Hey y’all! This week we got familiar with our Adafruit Huzzah boards as we begin to dive into the world of IoT. Had issues with the wifi, but was able to get the board to light up just fine.

I was not able to get my board to connect to the wi-fi, but I believe other people were having issues with the wi-fi connection as well. Here’s the message I got on the serial monitor every time I tried to connect.

Wait for WiFi... ...........
WiFi connected
IP address:
192.168.250.61
connecting to 192.168.1.1
connection failed
wait 5 sec...
connecting to 192.168.1.1
connection failed

Here’s a copy of my code:

// We start by connecting to a WiFi network
WiFi.mode(WIFI_STA);
WiFiMulti.addAP("MFA PoD", "il0vedesign");

Serial.println();
Serial.println();
Serial.print("Wait for WiFi... ");

while (WiFiMulti.run() != WL_CONNECTED) {
Serial.print(".");
delay(500);
}

Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());

delay(500);
}

void loop() {
const uint16_t port = 80;
const char * host = "192.168.1.1"; // ip or dns

Serial.print("connecting to ");
Serial.println(host);

// Use WiFiClient class to create TCP connections
WiFiClient client;

if (!client.connect(host, port)) {
Serial.println("connection failed");
Serial.println("wait 5 sec...");
delay(5000);
return;
}

// This will send the request to the server
client.println("Send this data to server");

//read back one line from server
String line = client.readStringUntil('\r');
Serial.println(line);

Serial.println("closing connection");
client.stop();

Serial.println("wait 5 sec...");
delay(5000);
}

Thanks!
Catherine

F-wings, an Optical Show

P2290643

Hey y’all!

For my Halloween Costume, I made light-up fairy wings using the following ingredients:

  1. 12 and 24 gauge wires for the frame
  2. White stockings/tights to cover the frame
  3. .75 mm fiber optic cables to provide light patterns on the wings
  4. Neopixel RGB LED strips
  5. 3D printed couplings to make sure the fiber optic cable ends were flush with the LED strip
  6. Flora micro-controller to control the light animations
  7. 330 Ω resistors and wires to connect LED strips to Flora
  8. Foam board as a base and cover for the electronics on the middle
  9. Ample amounts of hot glue to connect the fiber optic cables and LED strips to the couplings
  10. Arduino code for the light animations
  11. Nylon thread to sew the fiber optic cables in place on the wings
  12. External battery pack to power wings

 

Some new skills I learned doing this project:

  • How to use a 3D printer.
  • How to work with end-glow fiber optic cables and what the different types of fiber optic cables are.

My biggest challenges with the project were:

  • 3D printing the couplings. It took a fair amount of time to measure everything and build the shape in Tinkercad.
  • Soldering wires in my circuit and to the Neopixels. Either the wire was popping off, or the “input ” copper pad kept melting, or the wire would break where the wire insulation ended. I ended up having to redo parts of the circuit several times.
  • The battery pack I used kept shutting down power after about 1.5-2 min because my circuit didn’t draw enough power.

 

Special thanks to Ted, Helen, and Pantea for helping me finish my costume. Thank you to Becky and Rhea as well for helping me put my costume on. I wouldn’t have made it to the parade without all of you!

 

Process Photos:

Halloween Wings Circuit-2.png

#include 

#define PIN 6

// use define instead of integer because PIN not changing, so treat as a constant.
// variables change, but constants don't. Constants take up less space.
// if doing a variable need an equal sign and a semicolon at end

#define NUM_LEDS 8

#define BRIGHTNESS 80

// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_RGB Pixels are wired for RGB bitstream
// NEO_GRB Pixels are wired for GRB bitstream, correct if colors are swapped upon testing
// NEO_RGBW Pixels are wired for RGBW bitstream
// NEO_KHZ400 400 KHz bitstream (e.g. FLORA pixels)
// NEO_KHZ800 800 KHz bitstream (e.g. High Density LED strip), correct for neopixel stick
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_GRB + NEO_KHZ800);

// Adafruit_NeoPixel strip is like the "int" on regular arduino

void setup() {

// Always have to use strip.begin and strip.show when coding neopixels

strip.setBrightness(BRIGHTNESS);
strip.begin(); // Intitialize the pixels
strip.show(); // Initialize all pixels to 'off'
//use strip.show(); every time want to change the strip color

//for setup, "strip" is the name of the object we named above "Adafruit_Neopixel strip = [...]"
}

void loop() {
// Some example procedures showing how to display to the pixels:
colorWipe(strip.Color(255, 0, 0), 50); // Red
// 50 at end is the wait time
colorWipe(strip.Color(0, 255, 0), 50); // Green
colorWipe(strip.Color(0, 0, 255), 50); // Blue
colorWipe(strip.Color(0, 0, 0, 255), 50); // White

rainbowFade2White(3,3,1);
}

// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
//uint32_t is a special type of data but essentially just a fancy integer
//c is the name of the integer, and turns colorwipes in code earlier into a local function call
for(uint16_t i=0; i<strip.numPixels(); i++) {
//for loop starts at 0 and counts up by 1 until reaches until it reaches strip.numPixels
// which is the max number of pixels set at beginning
strip.setPixelColor(i, c);
strip.show();
//update all the pixels
//if put strip.show outside for loop, all the colors will show at once
delay(wait);
//wait
}
}

void rainbowFade2White(uint8_t wait, int rainbowLoops, int whiteLoops) {
float fadeMax = 100.0;
int fadeVal = 0;
uint32_t wheelVal;
int redVal, greenVal, blueVal;

for(int k = 0 ; k < rainbowLoops ; k ++){

for(int j=0; j<256; j++) { // 5 cycles of all colors on wheel

for(int i=0; i< strip.numPixels(); i++) {

wheelVal = Wheel(((i * 256 / strip.numPixels()) + j) & 255);

redVal = red(wheelVal) * float(fadeVal/fadeMax);
greenVal = green(wheelVal) * float(fadeVal/fadeMax);
blueVal = blue(wheelVal) * float(fadeVal/fadeMax);

strip.setPixelColor( i, strip.Color( redVal, greenVal, blueVal ) );

}

//First loop, fade in!
if(k == 0 && fadeVal < fadeMax-1) { fadeVal++; } //Last loop, fade out! else if(k == rainbowLoops - 1 && j > 255 - fadeMax ){
fadeVal--;
}

strip.show();
delay(wait);
}

}

delay(500);
for(int k = 0 ; k < whiteLoops ; k ++){

for(int j = 0; j < 256 ; j++){

for(uint16_t i=0; i < strip.numPixels(); i++) { strip.setPixelColor(i, strip.Color(0,0,0, j ) ); } strip.show(); } delay(2000); for(int j = 255; j >= 0 ; j--){

for(uint16_t i=0; i < strip.numPixels(); i++) { strip.setPixelColor(i, strip.Color(0,0,0, j ) ); } strip.show(); } } delay(500); } void whiteOverRainbow(uint8_t wait, uint8_t whiteSpeed, uint8_t whiteLength ) { if(whiteLength >= strip.numPixels()) whiteLength = strip.numPixels() - 1;

int head = whiteLength - 1;
int tail = 0;

int loops = 3;
int loopNum = 0;

static unsigned long lastTime = 0;
while(true){
for(int j=0; j<256; j++) {
for(uint16_t i=0; i<strip.numPixels(); i++) { if((i >= tail && i <= head) || (tail > head && i >= tail) || (tail > head && i <= head) ){ strip.setPixelColor(i, strip.Color(0,0,0, 255 ) ); } else{ strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255)); } } if(millis() - lastTime > whiteSpeed) {
head++;
tail++;
if(head == strip.numPixels()){
loopNum++;
}
lastTime = millis();
}

if(loopNum == loops) return;

head%=strip.numPixels();
tail%=strip.numPixels();
strip.show();
delay(wait);
}
}

}
void fullWhite() {

for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, strip.Color(0,0,0, 255 ) );
}
strip.show();
}
// Slightly different, this makes the rainbow equally distributed throughout
void rainbowCycle(uint8_t wait) {
uint16_t i, j;

for(j=0; j<256 * 5; j++) { // 5 cycles of all colors on wheel
for(i=0; i< strip.numPixels(); i++) {
strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
}
strip.show();
delay(wait);
}
}

void rainbow(uint8_t wait) {
uint16_t i, j;

for(j=0; j<256; j++) {
for(i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, Wheel((i+j) & 255));
}
strip.show();
delay(wait);
}
}

// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
uint32_t Wheel(byte WheelPos) {
WheelPos = 255 - WheelPos;
if(WheelPos < 85) {
return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3,0);
}
if(WheelPos < 170) { WheelPos -= 85; return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3,0); } WheelPos -= 170; return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0,0); } uint8_t red(uint32_t c) { return (c >> 8);
}
uint8_t green(uint32_t c) {
return (c >> 16);
}
uint8_t blue(uint32_t c) {
return (c);
}

 

led-fiber optic couplings.png

P2290654

Wk 8 HW, Costume Update

I’m sorry I’m posting this one a bit late! Updates on my costume – couplings have been 3D printed, and tights are on my wings. Otherwise, I’m a bit behind on the other aspects of my costume. The circuit isn’t too complicated, so I don’t anticipate issues building it. The fiber optic cables attachment and coding are where I could have issues.

Catherine

Fiber Optic Wing Progress

Current wing state of affairs:

A. Wire structure for wings almost complete

IMG_6230.jpg     IMG_6232.jpg

B. Circuit laid out in TinkerCad (replace Arduino board with Flora micro-controller in real life) and started playing with coding a little bit. Contemplated doing the wings with one LED strip, but decided to have the animations and color changes symmetrical on the wings, so I broke it into 2 strips. Also mapped out what LEDs and fiber optic cables will be assigned to which wing parts.

IMG_6231.jpg

Halloween Wings Circuit.png

C. Most of my supplies have come in, but I’m still waiting on a few.

Project to do list:

  1. Finish wire frame for wings.
  2. Attach tights to wings.
  3. Build circuit with LEDs.
  4. Build code for wing animations.
  5. Create couplings for fiber optic cables to LEDs.
    • Likely
  6. Create housing for circuits and cable couplings.
  7. Create pouch to hold battery pack and circuit housing attached to wings.
  8. Lay out Fiber optic cable pattern and sew onto wings.
  9. Make method of attachment for wings to body:
    • Either elastic straps over shoulders or a piece to insert into a corset like in the tutorial referenced in my brainstorming post.

 

Excited to see how this turns out!

Catherine

Week 6 HW: Halloween Costume Ideas

My first thought was “WINGS.”

After doing some research, I found LED and fiber optic lit wings. And dresses. And make-up. Needless to say, I’m now obsessed with fiber optics in costumes because they look so cool (when not overdone). I think they’d be perfect for the Halloween Parade. They also don’t seem to be super complicated to work with. Famous last words.

My 3 ideas are:

  1. Wings with LEDs in the center and fiber optic cables used to form light pattern on the wings
  2. Rocket booster back pack with LED’s attached
  3. Dino hood/back piece with either just LEDs or fiber optics on the spine

Below are sketches of ideas and potential wing shapes.

 

If I make wings, I will somewhat be following this Instructables tutorial, but don’t want to make an exact copy of them. If it’s not too complicated, I’m toying with the idea of adding a microphone sensor so the color changes with volume of sound. It would be a slower transition color change than the LED’s that respond to music though. I’m ordering an adafruit Flora microcontroller and LED strip to use in the costume. For power, I intend to use a 6V coin cell battery and mount that with the the other electronics in a box. I will most likely rely on the battery pack toggle switch to control power.

At this point, I’m not sure how I want to program the colors for the costume.

Here are some other inspiration costumes:

https://www.instructables.com/id/Lightwings-Fiber-Optic-Fairy-Wings/

https://www.instructables.com/id/Moving-Glider-Wings/

https://www.instructables.com/id/Made-with-Magic-Fiber-Optic-Wings/

https://www.instructables.com/id/Fiber-Optic-Makeup/

https://www.instructables.com/id/Fiber-Optic-Dress/

https://www.instructables.com/id/Jellyfish-Skirt/

Here’s a key resource link as I (hopefully) learn to use them for my project:

https://www.instructables.com/id/The-Beginners-Guide-to-Fiber-Optics/

Catherine

Wk 5 HW

This week saw the rise of Inspector Gadget and the re-emergence of Lite Brite. (90s childhood anyone?)

A.k.a I made a motor spin and a Neopixel strip light up with Arduino.  😀

Initially had some issues with getting the motor to spin when I used a 1K ohm resistor. After some troubleshooting and help from Chester at the VFL, switched to 100 ohm resistor and everything was hunky-dory.

I’m now low-key obsessed with soldering, so had fun putting more stuff together with hot metal and wires.

Neopixel coding is still pretty mysterious to me, but the rainbow lights are worth the struggle. I understand how to change colors and pulse times (I think). Functions and come of the color loops were hard to understand, so I’d like to review that in class if we have time.

Looking forward to the next lesson!

Catherine