"Don't worry Mr. President, just know right before you die here in Dallas that we won't let any one know the details of your death for 40 years *whispers* and probably not even then." #JFK 12:10:00 38 018 Miter
Magnetic Experiment 001
Imgur Mouse
Coke Shot
Addictions are absolute. How perverse they are can depend on your character. Alcohol, heroin, feet. We here at TVMiller prefer the unhealthy consumption of Coca~Cola. When delving deeper in to methodology, we all quickly learn two superior qualities; the aluminum can and the short brief intensity (the ahh) of an initial taste. We attempted to confine those elements in to a machine that sources three methods of activation; a button, a remote control and Jacob, our developing artificial intelligence.





// CokeShot
// TVMiller

#include <IRremote.h>

int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;

int red = 8;
int green = 9;
int pour = 10;

int timepour = 10000;
int timeend = 3000;

void setup() {

Serial.begin(9600);

pinMode(red, OUTPUT);
pinMode(green, OUTPUT);
pinMode(pour, OUTPUT);

irrecv.enableIRIn();

}

void loop() {

digitalWrite(red, LOW);
digitalWrite(green, LOW);
digitalWrite(pour, LOW);

// Jacob
if (Serial.available()) {
char ser = Serial.read();
switch (ser) {
case 'C':
coke();
break;
}
}
// Remote (Any)
else if (irrecv.decode(&results)) {
coke();
irrecv.resume();
}

}

void coke() {
digitalWrite(pour, HIGH);
digitalWrite(green, HIGH);
delay(timepour);
digitalWrite(pour, LOW);
digitalWrite(green, LOW);
digitalWrite(red, HIGH);
delay(timeend);
}

Archive
HackADay.io - Coke Shot
Github - Arduino IRRemote Library
TVShow S01E05 eRamen
Resistance Theory - Wave Cube


Miscellaneous > Resistance Theory