Name-Ashley Villagrana Argumental names 1. “Chill Feeler”, 2. “Therapeutic Massager”, 3. “MetalHead+RelaxomaticShoulderCushion”, 4. “NewEnhancedWavelength(NEW)” or call it “(NEW) Feel” Materials: -3 motors? -3 toy servos? -Flexible wire from home depot. -Some Hard mendable wire from home depot. -Some really strong glue -Another Bread Board -Another switch. -Neck Pillow Purpose: To give another feel and edition…
Category: Past Student Work
Final Project Proposal and Sketches
For my final project proposal, I would like to continue off my first creative switch project of the LED land which I am very passionate about. I want this advanced on a much bigger scale physically as well as its functionality. So far I have these figurines of the Eiffel Tower, the Leaning Tower of…
Drawing Device Color Pastels-Code, Photos, Video
Below I have the code, the pictures, and the video for the drawing device. Thank you for your help Sabrina, and I am sorry about the misunderstanding in getting the other motors to run. I also have the video uploaded to dropbox as well as here. /* * Force Sensitive Resistor Test Code * *…
Photos of The Iron Man Chest Plate/ “Blinkenlights” T-Shirt
Here is photo documentation of my wearables project. I sewed the holes on the corners of the Arduino to the piece of cloth, which was glued to the T-shirt.I had first taped down some the LED component and then sewed them on. The same was done for the switch. Unfortunately, the LEDs did not show…
CODE again.
This is the shiftout code, and a simple flexie force code. Paulina. //**************************************************************// // Name : shiftOutCode, Dual One By One // // Author : Carlyn Maw, Tom Igoe // // Date : 25 Oct, 2006 // // Version : 1.0 // // Notes : Code for using a 74HC595 Shift Register // // :…
wearable code! (purse)Paulina.
/* ——————————————————— * | Arduino Experimentation Kit Example Code | * | CIRC-05 .: 8 More LEDs :. (74HC595 Shift Register) | * ——————————————————— * * We have already controlled 8 LEDs however this does it in a slightly * different manner. Rather than using 8 pins we will use just three * and an additional chip. * * *///Pin Definitions//Pin Definitions//The 74HC595 uses a serial communication //link which has three pinsint data = 2; int clock = 3;int latch = 4;//Used for single LED manipulationint ledState = 0;const int ON = HIGH;const int OFF = LOW; /* * setup() – this function runs once when you turn your Arduino on * We set the three control pins to outputs */void setup(){ pinMode(data, OUTPUT); pinMode(clock, OUTPUT); pinMode(latch, OUTPUT); }/* * loop() – this function will start after setup finishes and then repeat * we set which LEDs we want on then call a routine which sends the states to the 74HC595 */void loop() // run over and over again{ int delayTime = 100; //the number of milliseconds to delay between LED updates for(int i = 0; i < 256; i++){ updateLEDs(i); delay(delayTime); }}/* * updateLEDs() – sends the LED states set in ledStates to the 74HC595 * sequence */void updateLEDs(int value){ digitalWrite(latch, LOW); //Pulls the chips latch low shiftOut(data, clock, MSBFIRST, value); //Shifts out the 8 bits to the shift register digitalWrite(latch, HIGH); //Pulls the latch high displaying the data}/* * updateLEDsLong() – sends the LED states set in ledStates to the 74HC595 * sequence. Same as updateLEDs except the shifting out is done in software * so you can see what is happening. */ void updateLEDsLong(int value){ digitalWrite(latch, LOW); //Pulls the chips latch low for(int i = 0; i < 8; i++){ //Will repeat 8 times (once for each bit) int bit = value & B10000000; //We use a “bitmask” to select only the eighth //bit in our number (the one we are addressing this time thro //ugh value = value << 1; //we move our number up one bit value so next time bit 7 will // be //bit 8 and we will do our math on it if(bit == 128){digitalWrite(data, HIGH);} //if bit 8 is set then set our data pin high else{digitalWrite(data, LOW);} //if bit 8 is unset then set the data pin low digitalWrite(clock, HIGH); //the next three lines pulse the clock pin delay(1); digitalWrite(clock, LOW); } digitalWrite(latch, HIGH); //pulls the latch high shifting our data into being displayed}//These are used in the bitwise math that we use to change individual LEDs//For more details http://en.wikipedia.org/wiki/Bitwise_operationint bits[] = {B00000001, B00000010, B00000100, B00001000, B00010000, B00100000, B01000000, B10000000};int masks[] = {B11111110, B11111101, B11111011, B11110111, B11101111, B11011111, B10111111, B01111111};/* * changeLED(int led, int state) – changes an individual LED * LEDs are 0 to 7 and state is either 0 – OFF or 1 – ON */ void changeLED(int led, int state){ ledState = ledState & masks[led]; //clears ledState of the bit we are addressing if(state == ON){ledState = ledState | bits[led];} //if the bit is on we will add it to le //dState updateLEDs(ledState); //send the new LED state to the shift register }
arduino
// OUTPUT: Use digital pins 9-11, the Pulse-width Modulation (PWM) pins // LED’s cathodes should be connected to digital GND int redPin = 9; // Red LED, connected to digital pin 9 int grnPin = 10; // Green LED, connected to digital pin 10 int bluPin = 11; // Blue LED, connected to…
Generic Push button
This is a turn on/off button I found, that I will be using to run my wearable design with a Reed sensor /* Button Turns on and off a light emitting diode(LED) connected to digital pin 13, when pressing a pushbutton attached to pin 2. The circuit: * LED attached from pin 13 to ground…
Drawing Device Code
In order to make this draw bot functional, I’m going to have to put these two different codes together. Upon a successful run-through I’ll update the code with the final format. Motor Code int motorPin = 3; // define the pin the motor is connected to …
Shining Legging
I have to combine these two code together. microphone to LED value code: #include <inttypes.h> #include <avr/io.h> #include <util/delay.h> #define LED_BIT PD4 /* * get_adc * Return the 10bit value of the selected adc channel. */ uint16_t get_adc() { uint16_t value; // warm up the ADC, discard the first conversion ADCSRA |= (1 << ADSC);…
Blinking Bracelets Code
/* Flex Sensor and LEDs created by ScottC on 23rd May 2011 updated on 16/05/2012. —————————————————–*/ //Flex Sensor Pin (flexPin) //the analog pin the Flex Sensor is connected to int flexPin = 0; void setup() { for (int i=4; i<14; i++){ pinMode(i, OUTPUT); //sets the led pins 4 to 13 to output } } void…
“Iron Man’s Chest Piece” Light Up
//Force Sensor to Light Fade //turn on the serial statements to DEBUG //add in mapping statements to make for a better response int ForceSensePin = A2; int ledPin = 9; int ForceSensorValue; int ForceSensePin2 = A0; int ledPin2 = 8; int ForceSensorValue2; int buzzerPin = 4; // Connect Buzzer to Pin 4 long buzzerFreq; //…