xtephanie-xinyi-blog
xtephanie-xinyi-blog
Project4 Input via Microphone with Square wear
26 posts
Don't wanna be here? Send us removal request.
xtephanie-xinyi-blog · 7 years ago
Text
Project: Proof-of-Concept
My final project is “Escaping Veil” to help women to get away from a terrible marriage. I have tried to sew a shape “NO” on a piece of fabric at first and I will sew this shape on the veil for my final project. My goal for the project is that sewing the shape of “NO” on the veil which is controlled by a button. Next step I will make the line more straightly and sew it on the veil. For my final project, there will be a big “NO” on the veil when the bridge presses the button to resist a terrible marriage.
Tumblr media
0 notes
xtephanie-xinyi-blog · 7 years ago
Text
Project: DotStar Halloween
Her name is Angela, the Angle Among the Devil.
There are two lighting patterns to separately show the two sides of Angela.
Red lights represent Devil and Purple represent Angle.
Tumblr media Tumblr media
0 notes
xtephanie-xinyi-blog · 7 years ago
Photo
Tumblr media Tumblr media
Her name is Angela, the Angle Among the Devil.
There are two lighting patterns to separately show the two sides of Angela.
Red lights represent Devil and Purple represent Angle.
2 notes · View notes
xtephanie-xinyi-blog · 7 years ago
Photo
Tumblr media Tumblr media
Her name is Angela, the Angle Among the Devil.
There are two lighting patterns to separately show the two sides of Angela.
Red lights represent Devil and Purple represent Angle.
2 notes · View notes
xtephanie-xinyi-blog · 7 years ago
Text
// SquareWear-DotStar-Scanner // // RGB Demonstration for 6 DotStar // Pixels attached to the SquareWear // Mount Holyoke College // iDesign Studio Fall 2017 // // Peter F. Klemperer // October 25, 2017
#include <Adafruit_DotStar.h> #include <SPI.h>
#define NUMPIXELS 18 // Number of LEDs in strip
// Here's how to control the LEDs from any two pins: #define DATAPIN    11 #define CLOCKPIN   7
Adafruit_DotStar strip = Adafruit_DotStar(                           NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BGR); // The last parameter is optional -- this is the color data order of the // DotStar strip, which has changed over time in different production runs. // Your code just uses R,G,B colors, the library then reassigns as needed. // Default is DOTSTAR_BRG, so change this if you have an earlier strip.
void setup() {
#if defined(__AVR_ATtiny85__) && (F_CPU == 16000000L)  clock_prescale_set(clock_div_1); // Enable 16 MHz on Trinket #endif
 strip.begin(); // Initialize pins for output  strip.clear();  strip.show();  // Turn all LEDs off ASAP }
void loop() {  blink_red();
 //light_all_RGB(50,128,128);  //pulse();  //scanner(); }
// blink_red // // blink 6 dotpixels red and // off every 2 seconds. void blink_red() {  // set pixels red  strip.setPixelColor(0, 128, 0, 70);  strip.setPixelColor(1, 128, 0,70);  strip.setPixelColor(2, 128, 0, 70);  strip.setPixelColor(3, 128, 0, 70);  strip.setPixelColor(4, 128, 0, 70);  strip.setPixelColor(5, 128, 0, 70);  strip.show();  delay(1000);  strip.setPixelColor(0, 128,0,0);  strip.setPixelColor(1, 128,0,0);  strip.setPixelColor(2, 128,0,0);  strip.setPixelColor(3, 128,0,0);  strip.setPixelColor(4, 128,0,0);  strip.setPixelColor(5, 128,0,0);  strip.show();  delay(1000);  strip.setPixelColor(0, 128, 0, 70);  strip.setPixelColor(1, 128, 0,70);  strip.setPixelColor(2, 128, 0, 70);  strip.setPixelColor(3, 128, 0, 70);  strip.setPixelColor(4, 128, 0, 70);  strip.setPixelColor(5, 128, 0, 70);  strip.show();  delay(1000);  strip.setPixelColor(0, 128,0,0);  strip.setPixelColor(1, 128,0,0);  strip.setPixelColor(2, 128,0,0);  strip.setPixelColor(3, 128,0,0);  strip.setPixelColor(4, 128,0,0);  strip.setPixelColor(5, 128,0,0);  strip.show();  delay(1000);  strip.setPixelColor(0, 128, 0, 70);  strip.setPixelColor(1, 128, 0,70);  strip.setPixelColor(2, 128, 0, 70);  strip.setPixelColor(3, 128, 0, 70);  strip.setPixelColor(4, 128, 0, 70);  strip.setPixelColor(5, 128, 0, 70);  strip.show();  delay(1000);  strip.setPixelColor(0, 128,0,0);  strip.setPixelColor(1, 128,0,0);  strip.setPixelColor(2, 128,0,0);  strip.setPixelColor(3, 128,0,0);  strip.setPixelColor(4, 128,0,0);  strip.setPixelColor(5, 128,0,0);  strip.show();  delay(1000);  strip.setPixelColor(0, 128, 0, 70);  strip.setPixelColor(1, 128, 0,70);  strip.setPixelColor(2, 128, 0, 70);  strip.setPixelColor(3, 128, 0, 70);  strip.setPixelColor(4, 128, 0, 70);  strip.setPixelColor(5, 128, 0, 70);  strip.show();  delay(1000);  strip.setPixelColor(0, 128,0,0);  strip.setPixelColor(1, 128,0,0);  strip.setPixelColor(2, 128,0,0);  strip.setPixelColor(3, 128,0,0);  strip.setPixelColor(4, 128,0,0);  strip.setPixelColor(5, 128,0,0);  strip.show();  delay(1000); }
void blink_red_blue() {  // set pixels red  for(int i = 0; i < NUMPIXELS; i++ )  strip.setPixelColor(i, 128,0,0);
 strip.show();  delay(500);  // set pixels blue  for(int i = 0; i < NUMPIXELS; i++ )  strip.setPixelColor(i, 0,0,128);
 strip.show();  delay(500); }
// light_all_RGB // // lights each dotstar according to the RGB color // provided. // // (0,0,0) is black // (255,255,255) is brightest white. // // inputs: red   - ranges from 0 to 255. //         green - ranges from 0 to 255. //         blue  - ranges from 0 to 255. void light_all_RGB( uint8_t red, uint8_t green, uint8_t blue ) {  for ( int i = 0; i < NUMPIXELS; i++ ) {    strip.setPixelColor(i, red, green, blue);
 }  strip.show(); }
// pulse // // incrementally brighten the dotstars from off // to blue, then decrementally dim the dotstars // from blue to off. void pulse() {  for ( int color = 0; color <= 0x000080; color++ ) {    for ( int i = 0; i < NUMPIXELS; i++ ) {      strip.setPixelColor(i, color);
   }    strip.show();    delay(8);  }  for ( unsigned int color = 0x800000; color >= 0; color--  ) {    for ( int i = 0; i < NUMPIXELS; i++ ) {      strip.setPixelColor(i, color);
   }    strip.show();    delay(8);  } }
// scanner // // trace a red light up and down the // length of the DotStar Pixel. void scanner() {  for ( int i = 0; i < NUMPIXELS; i++ ) {    // black    strip.setPixelColor(i - 1, 0,0,0);    // red    strip.setPixelColor(i, 128,0,0);    strip.show();    delay(50);  }  for ( int i = NUMPIXELS - 1; i >= 0; i-- ) {    strip.setPixelColor(i, 128,0,0);    strip.setPixelColor(i + 1, 0,0,0);    strip.show();    delay(50);  } }
0 notes
xtephanie-xinyi-blog · 7 years ago
Text
Tumblr media Tumblr media
Lab 7: Halloween Masks
In this lab, I have learned how to change the light patterns of velcro light and how to make masks.
2 notes · View notes
xtephanie-xinyi-blog · 7 years ago
Text
Tumblr media
Lab 7: Halloween Masks
In this lab, I have learned how to change the light patterns of velcro light and how to make masks.
2 notes · View notes
xtephanie-xinyi-blog · 7 years ago
Text
Lab 7: Halloween Masks
In this lab, I have learned how to change the light patterns of velcro light and how to make masks.
2 notes · View notes
xtephanie-xinyi-blog · 7 years ago
Photo
Tumblr media
In this lab, I have learned how to change the light patterns of velcro light and how to make masks.
1 note · View note
xtephanie-xinyi-blog · 7 years ago
Text
Project 6: Eye Design
Characters: Tom & Jerry
Story: Tom is a cat and Jerry is a mouse. They are enemies and they don’t like each other. Jerry is afraid of Tom, so when Tom appears in his insight, he runs away immediately. And also, Jerry is a naughty boy and he always tries to make Tom angry, so he is chased by Tom all the time.
Difficulty : Using the light sensor is new and because it is depend on the environment therefore kind of difficult.
Tumblr media Tumblr media
0 notes
xtephanie-xinyi-blog · 7 years ago
Photo
Tumblr media
0 notes
xtephanie-xinyi-blog · 7 years ago
Video
tumblr
0 notes
xtephanie-xinyi-blog · 7 years ago
Photo
Tumblr media
This a fancy shinny hat controlled by volts. All the four LED lights controlled by different volts. 
I do complete my goals which are a fancy hat and 4 Led lights controlled by 4 different volts.
0 notes
xtephanie-xinyi-blog · 7 years ago
Photo
Tumblr media Tumblr media
There are 4 LED lights controlled by different volts and a microphone is connected .
In the process, I have separated 4 LED lights by the pin mode and then to be controlled by different volts 
0 notes
xtephanie-xinyi-blog · 7 years ago
Video
tumblr
Unfortunately, my square wear is broken. This is my sound before it is broken.
Maybe there exists some short circuits related to the metal wire and I am so sorry about that.
I have planed to do a shinny bag but the square wear is broken. It is such a pity.
I will try hard in next week project.
0 notes
xtephanie-xinyi-blog · 7 years ago
Photo
Tumblr media
This is my bag but unfortunately, square wear is broken. 
0 notes
xtephanie-xinyi-blog · 7 years ago
Photo
Tumblr media Tumblr media
From this lab, I have learned how to make short melody by using the Arduino and I have already set “happy birthday” song. The video cannot sent through email so there is only a picture.
I really need to make an improvement for the understanding of the notes and computer language in the Arduino.
0 notes