61
edits
Changes
no edit summary
==Final Project Proposal==
For my final project, I want to createan interactive art piece that allows the viewer to approach several chocolate bars.These chocolate bars are going to be constructed with either sensors or open/closed circuits.I wanted to make these chocolate bars so that when one goes up to lift one up or takes one, a LED display will show the number of child slavery within a specific nation.If I cannot get those specific statistics, i will just try to attain the amount of cocoa exported from the top countries producing cocoa beans. I will hook these pieces to the arduino and then have another wire connected to a stuffed animal where the LED will be displayed. The stuffed animal will wear some sort of band that says "SAVE ME" or "FREE ME" which will represent the children working in these cocoa fields. What I want to portray through this piece is to show the slavery and bondage of children sold into chocolate industries as slaves. Many third world countries have these chocolate industries that enslave children to work in fields, chopping cocoa beans and continuing on this job until adulthood. My project is to propose an awareness of culture and slavery that still exists today. My main concept is to portray a claim about the child slavery industry and to show that when we consume, we don't often think about where it comes from or how it was made. Our perceptions of ourselves and the culture we live in directs us to not question and instead absorb within the spaces that are occupied around us. ==Diagram== [[Image:Diagramchoc.jpg]] My original idea was to include three different switches for three separate chocolate bars indicating different countries, but I did not have enough digital pins for the seven LED displays, and so I had to just use one. Final Diagram: [[Image:Diagram.jpg]] '''Arduino Code''' int LT = 7;int LB = 0;int BB = 1;int RB = 2;int MM = 4;int RT = 12;int TT = 8; int ivorycoastSwitch = 13; // The setup() method runs once, when the sketch starts void setup() { //Serial.begin(9600); // initialize the digital pin as an output: pinMode(RT, OUTPUT); pinMode(RB, OUTPUT); pinMode(BB, OUTPUT); pinMode(LB, OUTPUT); pinMode(MM, OUTPUT); pinMode(LT, OUTPUT); pinMode(TT, OUTPUT); pinMode(ivorycoastSwitch, INPUT); clearer(); } // the loop() method runs over and over again,// as long as the Arduino has power void loop() { while (digitalRead(ivorycoastSwitch) > 0) { one(); delay(1000); clearer(); five(); delay(1000); clearer(); if (digitalRead(ivorycoastSwitch) == 0) { break; } delay(3000); three(); delay(1000); clearer(); seven(); delay(1000); clearer(); eight(); delay(1000); clearer(); if (digitalRead(ivorycoastSwitch) == 0) { break; } delay(3000); one(); delay(1000); clearer(); seven(); delay(1000); clearer(); four(); delay(1000); clearer(); if (digitalRead(ivorycoastSwitch) == 0) { break; } delay(3000); two(); delay(1000); clearer(); zero(); delay(1000); clearer(); four(); delay(1000); clearer(); delay(3000); } } void zero() { digitalWrite(LT, LOW); digitalWrite(TT, LOW); digitalWrite(RT, LOW); digitalWrite(RB, LOW); digitalWrite(BB, LOW); digitalWrite(LB, LOW);} void one() { digitalWrite(RT, LOW); digitalWrite(RB, LOW); } void two() { digitalWrite(LT, LOW); digitalWrite(RT, LOW); digitalWrite(MM, LOW); digitalWrite(LB, LOW); digitalWrite(BB, LOW); } void three() { digitalWrite(LT, LOW); digitalWrite(RT, LOW); digitalWrite(MM, LOW); digitalWrite(RB, LOW); digitalWrite(BB, LOW); } void four() { digitalWrite(TT, LOW); digitalWrite(MM, LOW); digitalWrite(RT, LOW); digitalWrite(RB, LOW);} void five() { digitalWrite(TT, LOW); digitalWrite(LT, LOW); digitalWrite(MM, LOW); digitalWrite(RB, LOW); digitalWrite(BB, LOW); } void six() { digitalWrite(TT, LOW); digitalWrite(LT, LOW); digitalWrite(MM, LOW); digitalWrite(LB, LOW); digitalWrite(BB, LOW); digitalWrite(RB, LOW);} void seven() { digitalWrite(LT, LOW); digitalWrite(RT, LOW); digitalWrite(RB, LOW); } void eight() { digitalWrite(LT, LOW); digitalWrite(TT, LOW); digitalWrite(RT, LOW); digitalWrite(MM, LOW); digitalWrite(RB, LOW); digitalWrite(BB, LOW); digitalWrite(LB, LOW);} void nine() { digitalWrite(LT, LOW); digitalWrite(TT, LOW); digitalWrite(MM, LOW); digitalWrite(RT, LOW); digitalWrite(RB, LOW); digitalWrite(BB, LOW);} void clearer() { digitalWrite(RT, HIGH); digitalWrite(RB, HIGH); digitalWrite(MM, HIGH); digitalWrite(BB, HIGH); digitalWrite(TT, HIGH); digitalWrite(LB, HIGH); digitalWrite(LT, HIGH); } ==Visualization== [[Image: Chocbear.jpg]] [[Image: Bearchocarduino.jpg]]