Arduino Coffee Machine

by WYN soldier in Circuits > Arduino

8784 Views, 10 Favorites, 0 Comments

Arduino Coffee Machine

IMG_4064.JPG
fef.png

I did this project because it was annoying to start the machine, than come back 1 minute later when the coffee machine is warm enough to turn on the switch. Turn on the switch for 10 seconds, then turn it back off so the machine gets warm again. 4 times you have to do this.. So I got tired and made this arduino Servo mottor hack to help me do what I don't want to do.

Materials :

  • Arduino Uno Kit with breadboard
  • A couple of wires
  • 560 Ohm resistors
  • Red and Green LED
  • Servo motor
  • Glue Gun
  • Invisible box tape
  • Coffee machine
  • Medium size Wrench
  • Some wire to attach the wrench to the servo

Before We Begin..

DSC04401.JPG
IMG_4019.JPG
IMG_4020.JPG

Drill a hole in you Servo motor's extension in order to be able to attach the servo to the wrench. We'll attach it later.

The Circuit and the Program

DSC04399.JPG
sacsc.PNG

You can open the Coffee Machine .txt file (with comments detailed explanation) and copy it into the Arduino software or just copy it from here.

#include Servo myservo;           
int  i = 0;              
int ledpins [] = {2,5};   
int end;
int pos = 135;

void setup()  
{ 
myservo.attach(9);    
pinMode(2,1);          
pinMode(5,1);                             
       
       while (i<1){              
       myservo.write(135);         
       delay(200);              
       i++;                    
       }
       
       while (i<20){           
       
       digitalWrite(5, 1);    
       delay(50);              
       digitalWrite(5, 0);    
       delay(50);              
       i++;                    
       }
             
             while(i<21){             
             myservo.write(135);        
             delay(65000);               
             myservo.write(45);        
             delay(11000);             
             i++;                     
             }
             
             while(i<24){             
             myservo.write(135);      
             delay(40000);                  
             myservo.write(45);       
             delay(11000);            
             i++;         
             }  
             
             
             while(i<25){
             myservo.write(135);         
             delay(1000);                  
             i++;         
             }
             
             
             while(i<300){          
             digitalWrite(2, 1);   
             delay(500);              
             digitalWrite(2, 0);    
             delay(500);
             i++; 
             }
              
}
       
void loop() 
{  

Downloads

Fix the Servo on the Coffee Machine and Attach the Wrench

IMG_4024.JPG
IMG_4025.JPG
IMG_4028.JPG
IMG_4032.JPG
IMG_4036.JPG
IMG_4037.JPG

The hot glue is only there to help put the tape on because it can't hold just with glue. I put tape on because the Coffee machine is not mine, otherwise the job would be much cleaner.