Intro: Coffee Maker - GalileoHome
This instructable belongs to a huge project (Galileo Home). This is just one part of it. In case you found this page first, please visit the main project https://www.instructables.com/id/GalileoHome/
If you are lazy as hell or are you too impatient to wait till your coffee is ready we have an invention called the smart coffee machine which makes it possible to order your coffee from your bedroom. Our smart coffee machine twitters the number of made coffees and for your extra comfort there is a simple website where you can simply order your coffee. With the WebApp and the native Android and iOS App of the Galileo Home Project you're able to order a coffee right from your bed.
And this is what you need to make this awesome Project:
- Intel Galileo Gen 2
- Jura/AEG Coffee maker (others should be possible to as long as they have a serial Port; Just check: http://protocol-jura.do.am/)
- Twitter Account
- Water :)
- Coffee beans (Fair Trade of course) :)
Step 1: Prepare the Galileo Board
We decided to use the Intel Galileo Board because it is super easy to configure and you can even run an (almost) fully-featured Linux OS on it, which enables easy scripting with Python! And with Python, we have access to an incredible amount of modules and libraries, including a very simple Twitter-API. Here is how you need to setup your Galileo Board: Get the last Linux image for the Galileo board, put it on a microSD card and boot it.
More instructions can be found on Intel's own website: https://software.intel.com/en-us/creating-bootabl...
Follow those instructions and then connect the Galileo via an Ethernet-Cable to your local Network and make sure that you can connect to it via SSH (https://communities.intel.com/thread/46335). After you're successfully connected to you Galileo it's time to install pip: https://pip.pypa.io/en/latest/installing.html
To let your twitter followers know that you're caffeine-addicted you have to install the python-twitter library with pip: https://pip.pypa.io/en/latest/installing.html To communicate with the Twitter-API it is necessary that you've set the correct time on your Galileo (https://communities.intel.com/thread/47645), otherwise the SSL Certificates will be rejected. You should install a ntp client because the Intel Galileo will forget the date every time you unplug the power source! (https://communities.intel.com/message/253259)
Step 2: Connect Your Coffee Maker
Now its time to connect your coffee maker with the Galileo. We only need connect the RX pin, the TX pin and the ground pin with the corresponding pins of our coffeemaker. But how do I find these pins?
We have a coffee maker with a 5-Port interface. Connect the RX pin of the coffee maker with pin 0 of the Galileo and the TX pin of the coffee maker with pin 1 of the Galileo and finally the GND pin of the coffee maker to one of the GND pins of the Galileo. That's it! You successfully connected your Coffeemaker with the Galileo!
Step 3: Upload Python Tweet Script
A simple python script will tweet for you with the total amount of made coffees every time you order a coffee with the Galileo.In order to use the twitter API you have to register your own application:
After you've created your own app go to the app management, select your app and the tab "Keys and Access Tokens". Here you have to create your own Access Token and Access Token Secret. After you've created the tokens, insert them in the Galileo Home WebApp or one of the Apps.
Finally upload the script to your Galileo into /home/root/Coffee/tweeter.py You can check if the script works with the following command: python /home/root/Coffee/tweeter.py
Step 4: Upload Arduino Sketch
Its time to upload the arduino sketch to your Galileo! That's very simple:
Open the sketch in your arduino studio (the intel version!), select the right port and upload it!
Step 5: Make Your First Coffee!
We're done! It's time to order your first coffee!
Just open the Galileo Home WebApp or one of the native Apps and order your first Coffee!
Enjoy your Coffee!