Carlos Martin
Published © MIT

Smart-Tender

After building a soda machine for my kids, I decided to create a similar setup but to dispense margaritas and rum and cokes.

BeginnerFull instructions provided5 hours243
Smart-Tender

Things used in this project

Hardware components

Photon
Particle Photon
×1
Solderless Breadboard Half Size
Solderless Breadboard Half Size
×1
Battery, 9 V
Battery, 9 V
×1
Air Pumps
×1
Echo Dot
Amazon Alexa Echo Dot
×1
Google Nest Mini
×1

Software apps and online services

IFTTT Particle
Particle Build Web IDE
Particle Build Web IDE

Story

Read more

Schematics

Smart-Tender

Code

smarttender

Arduino
You can always modify the variables amounts based on the amount of beverage you would like to serve
// RUM AND COKE TIMER
int RUM = 2000;
int COKE = 9000;
int RUM_PIN = D5;
int COKE_PIN = D6;

// MARGARITA
int MARGARITA = 6000;
int MARGARITA_PIN = D7;

int drinkMaker(String command);



void setup() {
    
    // SETUP PINS
    pinMode(RUM_PIN, OUTPUT);
    pinMode(COKE_PIN, OUTPUT);
    pinMode(MARGARITA_PIN, OUTPUT);
    
    Particle.function("drink", drinkMaker);

}

void rumcoke() {
    digitalWrite(RUM_PIN, HIGH);
    delay(RUM);
    digitalWrite(RUM_PIN, LOW);
    digitalWrite(COKE_PIN, HIGH);
    delay(COKE);
    digitalWrite(COKE_PIN, LOW);
}

void margarita() {
    digitalWrite(MARGARITA_PIN, HIGH);
    delay(MARGARITA);
    digitalWrite(MARGARITA_PIN, LOW);
}

int drinkMaker(String command) {
    
    if (command == "rc") {
        rumcoke();
        return 1;
    } else if (command == "m") {
        margarita();
    } else {
        return -1;
    }
    
}

void loop() { }

Credits

Carlos Martin

Carlos Martin

2 projects • 12 followers

Comments

Add projectSign up / Login