Introduction: Coffino
Hey people
disclaimer!
this project makes use of voltages higher than 12 volt and can be deadly if not done correctly.
we do not take any responsible for any accidents that may happend during the making of this machine.
if you are gonna attempt to build this machine always consult an expert.
Today where gonna show you how to make a alarm clock turn on your coffee machine using an arduino!
The things you will need are:
- - arduino
- - relais
- - alarm clock with speaker
- - simple coffee machine
- - wires
- - breadbord
- - 2x an screw teminal
- - 8x ferrule
tools:
- -soldering iron
- -mulimeter
- -crimper
- -screwdrivers
Step 1: The Alarm Clock
break open your alarm clock, and solder 2 wires to the positive and negative wires that are connected with the speaker.
Step 2: Connect the Relais to the Arduino
connect the relais to your arduino
as shown in the picture.
Step 3: The Coffee Machine
1. prepare the cables.
you will need 2 long cables
attach the ferrules to both sides of a long cable.
2. cut the brown wire in the coffee machine and connect it screw terminal.
do this with both of your wires
Step 4: Connect the Cables With the Relais
like shown in the picture
Step 5: Arduino Code:
const int wekker = A0;
const int koffie = 2; const int aantalminuten = 1;
void setup() { // put your setup code here, to run once: Serial.begin(9200); pinMode(wekker, INPUT); pinMode(koffie, OUTPUT); }
void loop() {
// put your main code here, to run repeatedly:
int alarm = LOW;
//Serial.println(aantalminuten);
alarm = analogRead(wekker);
Serial.println(alarm); delay(100);
digitalWrite(koffie, alarm ); if (alarm >= HIGH){ delay(60000 * aantalminuten); }
}