<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Microsoft Development on Medium]]></title>
        <description><![CDATA[Stories by Microsoft Development on Medium]]></description>
        <link>https://medium.com/@MDCC?source=rss-4aef0a4422bd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*73hxug5t7xoGUBhYLrAeNA.png</url>
            <title>Stories by Microsoft Development on Medium</title>
            <link>https://medium.com/@MDCC?source=rss-4aef0a4422bd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 02:26:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@MDCC/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[IoT Coffee Machines: first step towards correlating coffee consumption with dev productivity]]></title>
            <link>https://medium.com/@MDCC/written-by-kostas-kastrinogiannis-principal-engineering-manager-at-microsoft-development-56f7d3723881?source=rss-4aef0a4422bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/56f7d3723881</guid>
            <category><![CDATA[coffee]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[dev]]></category>
            <dc:creator><![CDATA[Microsoft Development]]></dc:creator>
            <pubDate>Tue, 30 May 2017 12:52:12 GMT</pubDate>
            <atom:updated>2017-05-30T13:43:30.357Z</atom:updated>
            <content:encoded><![CDATA[<p>Written by Kostas Kastrinogiannis, Principal Engineering Manager at <a href="https://www.microsoft.com/da-dk/mdcc/default.aspx">Microsoft Development, Copenhagen.</a></p><p>Some time ago I suggested a little side-project to my collegues: to IoT enable the coffee machines of our new Lyngby home. That’s mainly an educational project, but it will also enable us to calculate fun KPIs like how coffee consumption correlates to dev productivity. Today, after spending a couple of hours per month, we have a solution ready to be deployed, so I wanted to walk you through all the little challenges we faced.</p><p><strong>Little Challenge No1: How do we connect the coffee machine to Azure?</strong></p><p>I was hoping that our coffee machine had some sort of network card… but it didn’t. Still it’s an easy problem to solve as there are chips that can (1) connect a sensor via Bluetooth to a computer / Ruspberry Pi or (2) connect a sensor to WiFi. I picked the second option as it was cheaper and all coffee machines are within our wireless network. More specifically I started with a <a href="https://www.adafruit.com/product/3032">Huzzah chip</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/145/1*B7eHkTMq_VJqJjgS4YtGkg.png" /></figure><p><strong>Little Challenge No2: How do you collect and process data from hundreds of machines in the cloud?</strong></p><p>That was also a very easy task. Maybe because it’s closer to our knowledge, and because there are so many templates to get you started in <a href="https://www.microsoft.com/en-us/internet-of-things/">Azure IoT</a>. Literally within an hour we were able to follow <a href="https://azure.microsoft.com/en-us/resources/samples/iot-hub-c-huzzah-getstartedkit/">this guide</a> and start sending temperature data to the cloud and present beautiful real time charts like below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*GCHM29Rcp_5piOdByz1Xsw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*CVCgkKx5VcUDu9JFq-yKRQ.jpeg" /></figure><p><strong>Little Challenge No3: How do we know that the coffee machine produces a coffee?</strong></p><p>First idea: Well, these modern machines must have an output port to communicate such data! So we looked around the machine, but nothing.. We called a technician to open it up for us… but unfortunately there was no output port. We didn’t give up, the technician offered to give us the blueprints of the machine so that we could figure out how to hack it’s internal circuits. That didn’t work either..</p><p>Second idea: Well, we can easily measure temperature, let’s detect temperature changes from the cable that brings hot water to the unit producing the coffee. We opened up the machine, connected our tiny temperature sensor to the cable… but we couldn’t get a consistent temperature increase when making coffee.</p><p>Third idea: Well, we can easily detect the sound when the coffee machine is working. This idea was easily hacked by the engineers passing by, who started making funky machine sounds like “brrzzzrrnnrrbrbr”, to trigger our sensor to think that the coffee machine was producing.</p><p>Forth idea: Well, let’s get a vibration sensor, capture the vibration of the engine at the time of brewing! We ordered a very sensitive vibration sensor. It’s actually a tiny metallic tube with a sensitive spiral in it. When the tube is moved, then the spiral touches the tube, the circuit closes and tadaaaa… you just detected the vibration. We connected the vibration sensor to our chip and also put a little green led that can show us when a vibration is detected. Unfortunately, the coffee machine vibrations weren’t strong enough to be picked up by our sensor… We tried mounting it in many different ways in the coffee machine… Nothing worked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/112/1*nRDQs2oflmS4DOeob3E3lg.png" /></figure><p>Other funky ideas were thrown on the table, like “why don’t you put a laser sensor that detects when the machine throws a portion of used coffee to the garbage?” or “why don’t you put a motion detector sensor in the machine that can figure out when the brewing unit is working”. Believe me… just give a beer and 10 minutes to an engineer and he/she will produce 20 of those ideas. In one of these discussions we got to know about the piezo sensors. From wiki: “A piezoelectric sensor is a device that uses the piezoelectric effect, to measure changes in pressure, acceleration, temperature, strain, or force by converting them to an electrical charge. The prefix piezo- is Greek for ‘press’ or ‘squeeze’.” In other words, this little sensor can turn anything into a tiny electricity signal.</p><p>Fifth idea: Well let’s turn a piezo sensor into a super sensitive vibration sensor! We ordered a couple of different piezo sensors but none of them could detect anything! It turned out that the electrical signals were too tiny for our chip to read. It took a little electrical engineering to figure out how to amplify the signal, but not amplify it too much (otherwise our chip would burn)…and then… We saw light at the end of the tunnel! Our new vibration sensor could detect <strong>any</strong> movement: small vibrations, a knock on the table, even myself walking 5 meters away from the table that had the sensor on!!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*wqfl2hMw0uPy5lZNVujkSQ.jpeg" /></figure><p><strong>Ok! Now what??</strong></p><p>(1) We can detect that the coffee machine is working (2) we can signal that to a chip connected to the internet (3) We can process in the cloud signals from thousands of coffee machines</p><p>Next step: deployment project!</p><p>-&gt; connect the coffee machine closest to my desk</p><p>-&gt; connect all the coffee machines of the Microsoft Lyngby office</p><p>-&gt; connect all the coffee machines of all Microsoft offices :P</p><p>-&gt; connect all the coffee machines of Apple, Google, Amazon (…hmmm, maybe we should just stop in one of the previous steps)</p><p>We hope to make it to connect all the coffee machines at our site — and to be able to report on coffee consumptions, based on real facts, in the nearest future. Stay tuned!</p><p>-</p><p>PS. You might be wondering, why did we spend only a couple of hours per month in such a fun project?? Well most of the participants in the team are young parents… so spending two hours per month is really a luxury :);)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56f7d3723881" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>