09-03-2011, 15:34
just wanted to post this somewhere, i seen a soap dispencer that i thought would make a nice auto shot dispencer so i got it home and started hacking
hopeing it just had a 555 timer i was just going to change some smd resisters play around till i got 30ml and be done with it , however i found the ic was guled over and was most likey a pic or some avr with fused bitlocks stuff that i thought , then i found a undocumented flow function that just flushed the system out so i busted out a arduino and set to work on makeing this simple shot pourer to help me get pissed as a nit xD and it works great just needs a nice home , will post a video + more pic when its done but PLEASE POST IDEAS!!!!!
*****
-house it a a coffee maker or something nice maybe steampunk style.
-add a skill game to test if your to drunk.
-Dubble shot function "dubble the time simple"
code
hopeing it just had a 555 timer i was just going to change some smd resisters play around till i got 30ml and be done with it , however i found the ic was guled over and was most likey a pic or some avr with fused bitlocks stuff that i thought , then i found a undocumented flow function that just flushed the system out so i busted out a arduino and set to work on makeing this simple shot pourer to help me get pissed as a nit xD and it works great just needs a nice home , will post a video + more pic when its done but PLEASE POST IDEAS!!!!!
Plans
*****
-house it a a coffee maker or something nice maybe steampunk style.
-add a skill game to test if your to drunk.
-Dubble shot function "dubble the time simple"
code
Code:
// +-++-++-++-++-++-++-++-++-++-+
// |A||U||T||O||-||S||H||O||T||S|
// +-++-++-++-++-++-++-++-++-++-+
const int buttonPin = 2; // drink me button
const int shot1 = 11; // hand soap dispencer hack
const int shot2 = 5; // hand soap dispencer hack
const int led1 = 13; // pritty led to tell me my shot is pouring
// variables will change:
int buttonState = 0;
void setup() {
pinMode(buttonPin, INPUT);
digitalWrite (buttonPin, HIGH);
pinMode(shot1, OUTPUT);
digitalWrite (shot1, HIGH); // silly china logic not even a resister on gate :s wtf!, oh well im 2G 4 0.o <-- Wok eye's
pinMode(shot2, OUTPUT); //dido
digitalWrite (shot2, HIGH);
pinMode(led1, OUTPUT);
}
void loop(){
buttonState = digitalRead(buttonPin);
if (buttonState == LOW)
{
digitalWrite (led1, HIGH);
digitalWrite (shot1, LOW);
digitalWrite (shot2, LOW); // flow mode-waiting!
delay(5000);
digitalWrite (shot1, HIGH); // flow mode-GO!!
digitalWrite (shot2, HIGH);
delay(1000);
digitalWrite (shot2, LOW); // woo up thats a shot
delay(300);
digitalWrite (shot2, HIGH); // Happy drinking xD
digitalWrite (led1, LOW);
}
}
Go home IW.... your drunk.
Youtube: http://www.youtube.com/user/TheMrStacie
Twitter: https://twitter.com/#!/rotceh_dnih
Youtube: http://www.youtube.com/user/TheMrStacie
Twitter: https://twitter.com/#!/rotceh_dnih