Tag Archives: Developer Garden

Talk to your vending machine in the cloud

It seems that one of my new year´s intentions comes true: I want to build a ubiquitous computing sample each month (in average). And last Friday we managed to connect a vending machine to our voice control system Tropo to get it´s state via phone and to buy something via voice or DTMF.

Thanks to our M2M partner Cumulocity that was all in all damn easy: They have a sensor cloud including real time administration tools which you can access through the Developer Garden for free. Furthermore Cumulocity, a Nokia Siemens Networks spin off, has a cloud based vending machine telemetry solution (aka VendMe) in its portfolio. So we only had to plug the bricks together.


In this rough video Frank Zimmer and I try out our proof of concept to make sure it will work at the Embedded World fair: Feel free to meet us and the phone controlled vending machine at booth 5-307.

In detail: For our proof of concept we created a PHP application which connects to the API of the Vending Machine via REST with JSON and uses Tropo´s capabilities handling voice calls to tell the user via text-to-speech what´s going on. Once the user has selected a slot (either via phone or keypad) the machine gets the information through the air, the payment is transferred and a confirmation is send back to the user – in this case we again use Tropo to send a text message. As usual the best thing comes at the end: Grab the gummy bears and enjoy!

Upcoming Talks

Note to my self, where and what I will talking about:

December 2012

2012-12-03
Mobile Monday Berlin, Predictions 2013
Next Generation Media / A new era of platforms – how mobile application platforms are driving Change (English/German)
http://www.mobile-monday.de/events/mobile-hits-2013-predictions-and-new-year-s-resolutions?xg_source=activity

2012-12-13
Developer Garden TechTalk Berlin
Voice dialog systems: Communicate with machines and receiving texts from animals (German)
http://www.developergarden.com/events/techtalk/voice-dialog-systems-communicate-with-machines-and-receiving-texts-from-animals/

February 2013

2013-02-05 – 2013-02-06
m-days Frankfurt
Panel discussion on mobile operating systems: Spoilt for Choice (m-days congress)
Developer Garden: Telekommunikation trifft Next Generation Media (m-days fair)
http://m-days.messefrankfurt.com/

2013-02-22 – 2013-02-23
jQuery Europe 2013 Vienna
Next Generation Media made easy thanks to APIs and jQuery (English)
http://events.jquery.org/2013/eu/

2013-02-26 – 2013-02-28
embedded world Nuremberg
http://www.embedded-world.de/en/

March 2013

2013-03-05 – 2013-03-09
CeBIT Hannover
(Not yet confirmed)
http://www.cebit.de/home

June 2013

2013-06-24 – 2013-06-27
Developer Week Nuremberg
(Not yet confirmed)
http://www.developer-week.de/Blog/Developer-Week-2013

The voice controlled coffee machine

I recently had a DiY workshop together with my Developer Garden colleague and firefighter Frank Zimmer and the great guys from Oracle. Oracle is working on M2M devices – obviously based on Java. After some Java experiments with a Cinterion driven embedded device this was my first time playing with the famous Raspberry PI and Java. Raspberry PI is a very small Linux PC similar in size to embedded boards like Arduino or .Net Gadgeteer. Our approach was controlling a coffee machine with a phone to serve George Clooney a coffee (sorry, in this case I was George Clooney´s lame replacement, but the Nespresso is real).


We hacked a Nespresso coffee machine, connected it to a Raspberry Pi and controlled it via phone. Please note, the video is just a rough cut to illustrate our proof of concept.

First of all we start the machine and need to wait until the machine is ready. But you can spend your time for so many things better than waiting: say writing Java. So we hacked the machine and connected it to the Raspberry PI running a small Java program. This program initiates a phone call via the Telekom Tropo API once the coffee machine is heated up. Now we need the way back from the phone to the Raspberry PI to finally start the coffee making. This is handled by Telekom Tropo which translates a phone call into a parameterized request which than writes a token. This token is handled by the Raspberry PI to start or stop the coffee making process.

I hope I can convince my friends from Oracle to publish the hardware specs and the Java code. And if you want to learn more about M2M and IVR-Systems (interactive voice response), feel free to come to our TechTalk at the 13th of December in Berlin.

Update: Some people asked how we did connect the Raspberry Pi and the coffee machine: Therefore we use the GPIOs and the Java library Pi4J.